Discussion:
Opening files in an existing instance of emacs
(too old to reply)
Big Bad Dave
2007-06-15 06:09:48 UTC
Permalink
Hi. I'm sure this has been asked before, but I couldn't find anything in
the archives.

Is it possible to open new files in an existing instance of emacs. I know
about running emacs in server mode and using emacsclient, and although that
does work, it means that the client task is left waiting for emacs to close
it (including the popped up cmd.exe window). Also, when you try to close
the file in emacs, it warns you that there is a client waiting.

What I want is just to be able to double-click on a file, either in a
browser or a CVS client, and have it appear in my already running emacs.

I'm sure that I've missed something obvious. Any insights would be
appreciated.

Dave

Gnu Emacs 22.1 on Windows XP SP2
John Sullivan
2007-06-24 16:31:20 UTC
Permalink
Post by Big Bad Dave
Hi. I'm sure this has been asked before, but I couldn't find anything in
the archives.
Is it possible to open new files in an existing instance of emacs. I know
about running emacs in server mode and using emacsclient, and although that
does work, it means that the client task is left waiting for emacs to close
it (including the popped up cmd.exe window). Also, when you try to close
the file in emacs, it warns you that there is a client waiting.
Have you tried using C-x # to close the file?
--
John Sullivan
Emacs Planner maintainer
http://www.wjsullivan.net/PlannerMode.html
GPG Key: AE8600B6
David R
2007-06-25 08:24:40 UTC
Permalink
Post by John Sullivan
Post by Big Bad Dave
Hi. I'm sure this has been asked before, but I couldn't find anything in
the archives.
Is it possible to open new files in an existing instance of emacs. I know
about running emacs in server mode and using emacsclient, and although that
does work, it means that the client task is left waiting for emacs to close
it (including the popped up cmd.exe window). Also, when you try to close
the file in emacs, it warns you that there is a client waiting.
Have you tried using C-x # to close the file?
shortcut should have -n option
link all desired files to the shortcut
Post by John Sullivan
"C:\Program Files\Emacs\emacs\bin\emacsclientw.exe" -n
if this fails use the windows installer provided at
http://ourcomments.org/cgi-bin/emacsw32-dl-latest.pl
the version is patched for winxp and is very stable and reliable.
David R

Loading...