[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reference for using DDE in emacs.
From: |
Dr. F.C.Caner |
Subject: |
Re: Reference for using DDE in emacs. |
Date: |
18 Jun 2003 23:42:27 -0700 |
You can use DDE commands to manipulate a DDE compliant application
from Emacs (if that is what you want). The key function here is
call-process-region. Here is an example, which closes all the
documents in Acrobat when executed from within Emacs. Hope this helps,
FCC.
;;;-------------------------
;;; von Jesper Harder:
(defun acrobat-close-all-docs ()
"Close all open documents in Acrobat."
(save-excursion
(set-buffer (get-buffer-create " *ddeclient*"))
(erase-buffer)
(insert "[CloseAllDocs()]")
(call-process-region (point-min) (point-max)
"ddeclient" t t nil "acroview" "control")
(if (= 0 (string-to-int (buffer-string))) t nil)))
;;;-------------------------
"Michael Frandsen" <mf@cyncrona.dk> wrote in message
news:<3ef05ecb$0$76056$edfadb0f@dread11.news.tele.dk>...
> Hi,
>
> I have an environment where I wish to interface emacs, but the only way is
> to use DDE commands.
> Where can I find information on how to do this?
> Can I do this?
>
> Thanks,
> Michael Frandsen