all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to get "emacsclient --eval x" to DWIM when Emacs is not started
@ 2008-03-30 20:09 Mathias Dahl
  2008-03-30 20:21 ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 11+ messages in thread
From: Mathias Dahl @ 2008-03-30 20:09 UTC (permalink / raw)
  To: emacs-devel

How can I get "emacsclient --eval x" to DWIM when Emacs is not
started? I have tried the following:

emacsclient -e '(message "Hello!")' -a emacs

But that does not work. What happens is that Emacs, when started as
the alternate editor, tries to open a file with the name ''(message
"Hello!").

For normal operation, i.e. not using --eval but just for opening a
file, -a emacs works well and does what I expect. Why does not --eval
do the same? I have, of course, (server-start) in my .emacs file.

As far as I can see, the manual does not mention this case.




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

end of thread, other threads:[~2008-03-31  7:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-30 20:09 How to get "emacsclient --eval x" to DWIM when Emacs is not started Mathias Dahl
2008-03-30 20:21 ` Lennart Borgman (gmail)
2008-03-30 21:45   ` Mathias Dahl
2008-03-30 21:52     ` Lennart Borgman (gmail)
2008-03-30 22:06       ` Mathias Dahl
2008-03-30 22:33         ` Lennart Borgman (gmail)
2008-03-30 22:49   ` Stefan Monnier
2008-03-30 22:55     ` Lennart Borgman (gmail)
2008-03-30 23:24       ` Juanma Barranquero
2008-03-31  7:44     ` Mathias Dahl
2008-03-31  7:49       ` Lennart Borgman (gmail)

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.