From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Michael Frandsen" Newsgroups: gmane.emacs.help Subject: Re: Reference for using DDE in emacs. Date: Mon, 23 Jun 2003 15:42:18 +0200 Organization: TDC Internet Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3ef703a2$0$76047$edfadb0f@dread11.news.tele.dk> References: <3ef05ecb$0$76056$edfadb0f@dread11.news.tele.dk> <65fef11f.0306182242.62458443@posting.google.com> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1056376682 6809 80.91.224.249 (23 Jun 2003 13:58:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 23 Jun 2003 13:58:02 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 23 15:58:01 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19URoG-0001eI-00 for ; Mon, 23 Jun 2003 15:56:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19URdW-00070J-8I for gnu-help-gnu-emacs@m.gmane.org; Mon, 23 Jun 2003 09:45:34 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!not-for-mail Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Original-Lines: 46 Original-NNTP-Posting-Host: 194.192.117.178 Original-X-Trace: 1056375714 dread11.news.tele.dk 76047 194.192.117.178 Original-X-Complaints-To: abuse@post.tele.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:114629 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11123 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11123 Hi FCC, Actually I want to use it the other way arround. I have an environment which uses DDE commands to start an external editor. I would like that editor to be emacs, however I have to know the DDE commands to do different stuff. Thanks, Michael "Dr. F.C.Caner" skrev i en meddelelse news:65fef11f.0306182242.62458443@posting.google.com... > 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" 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