bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"'


From: Stefan Monnier
Subject: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"'
Date: Tue, 18 Nov 2008 11:36:43 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>> It would be nice if some equivalent of: 
>> 'emacsclient -a "emacs --daemon && emacsclient -c"
>> would work.
>> That would allow one to ALWAYS use emacsclient. 

> Here's a quick hack that allows:
> emacsclient -a "emacs --daemon && emacsclient -c" FILENAME
> to work.  It is not complete yet, FILENAME does not get passed to the
> "&& emacsclient"

Here's an alternative:

   [ "$(emacsclient -e "'up" 2>/dev/null)" = "up" ] || emacs --daemon
   emacsclient -c FILENAME


-- Stefan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]