From: ferhun_caner@yahoo.com (Dr. F.C.Caner)
Subject: Re: Reference for using DDE in emacs.
Date: 18 Jun 2003 23:42:27 -0700 [thread overview]
Message-ID: <65fef11f.0306182242.62458443@posting.google.com> (raw)
In-Reply-To: 3ef05ecb$0$76056$edfadb0f@dread11.news.tele.dk
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
next prev parent reply other threads:[~2003-06-19 6:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-18 12:45 Reference for using DDE in emacs Michael Frandsen
2003-06-19 6:42 ` Dr. F.C.Caner [this message]
2003-06-19 11:43 ` Barman Brakjoller
2003-06-23 13:42 ` Michael Frandsen
2003-06-23 19:45 ` Jason Rumney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=65fef11f.0306182242.62458443@posting.google.com \
--to=ferhun_caner@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).