From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: ferhun_caner@yahoo.com (Dr. F.C.Caner) Newsgroups: gmane.emacs.help Subject: Re: Reference for using DDE in emacs. Date: 18 Jun 2003 23:42:27 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <65fef11f.0306182242.62458443@posting.google.com> References: <3ef05ecb$0$76056$edfadb0f@dread11.news.tele.dk> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1056005246 30536 80.91.224.249 (19 Jun 2003 06:47:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 19 Jun 2003 06:47:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 19 08:47:25 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 19StCf-0007wO-00 for ; Thu, 19 Jun 2003 08:47:25 +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 19StAg-0006cf-4P for gnu-help-gnu-emacs@m.gmane.org; Thu, 19 Jun 2003 02:45:22 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: 194.27.207.25 Original-X-Trace: posting.google.com 1056004948 12178 127.0.0.1 (19 Jun 2003 06:42:28 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 19 Jun 2003 06:42:28 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:114574 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:11066 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11066 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