all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Reference for using DDE in emacs.
@ 2003-06-18 12:45 Michael Frandsen
  2003-06-19  6:42 ` Dr. F.C.Caner
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Frandsen @ 2003-06-18 12:45 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Reference for using DDE in emacs.
  2003-06-18 12:45 Reference for using DDE in emacs Michael Frandsen
@ 2003-06-19  6:42 ` Dr. F.C.Caner
  2003-06-19 11:43   ` Barman Brakjoller
  2003-06-23 13:42   ` Michael Frandsen
  0 siblings, 2 replies; 5+ messages in thread
From: Dr. F.C.Caner @ 2003-06-19  6:42 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Reference for using DDE in emacs.
  2003-06-19  6:42 ` Dr. F.C.Caner
@ 2003-06-19 11:43   ` Barman Brakjoller
  2003-06-23 13:42   ` Michael Frandsen
  1 sibling, 0 replies; 5+ messages in thread
From: Barman Brakjoller @ 2003-06-19 11:43 UTC (permalink / raw)


> 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,

This is a little bit off-topic, but can you still do cool stuff using
DDE? Seems like COM/DCOM, OLE and bla bla has replaced it, or is stuff
still going on in the background using DDE? I know that Internet
Explorer uses it for some things for example. Any good sources? It is
always nice to be able to control things from emacs.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Reference for using DDE in emacs.
  2003-06-19  6:42 ` Dr. F.C.Caner
  2003-06-19 11:43   ` Barman Brakjoller
@ 2003-06-23 13:42   ` Michael Frandsen
  2003-06-23 19:45     ` Jason Rumney
  1 sibling, 1 reply; 5+ messages in thread
From: Michael Frandsen @ 2003-06-23 13:42 UTC (permalink / raw)


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" <ferhun_caner@yahoo.com> 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" <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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Reference for using DDE in emacs.
  2003-06-23 13:42   ` Michael Frandsen
@ 2003-06-23 19:45     ` Jason Rumney
  0 siblings, 0 replies; 5+ messages in thread
From: Jason Rumney @ 2003-06-23 19:45 UTC (permalink / raw)


"Michael Frandsen" <mf@cyncrona.dk> writes:

> 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.

There are none. You could use gnuserv as a starting point for writing
one.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-06-23 19:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-18 12:45 Reference for using DDE in emacs Michael Frandsen
2003-06-19  6:42 ` Dr. F.C.Caner
2003-06-19 11:43   ` Barman Brakjoller
2003-06-23 13:42   ` Michael Frandsen
2003-06-23 19:45     ` Jason Rumney

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.