[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"'
From: |
Dan Nicolaescu |
Subject: |
bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"' |
Date: |
Tue, 18 Nov 2008 10:17:43 -0800 (PST) |
Stefan Monnier <monnier@IRO.UMontreal.CA> writes:
> >> 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
I've been using something similar for a long time (even before
--daemon), but it seems that it's more elegant to use a single command
that shell hackery...
- bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"', Dan Nicolaescu, 2008/11/02
- bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"', Dan Nicolaescu, 2008/11/18
- bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"', Stefan Monnier, 2008/11/18
- bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"',
Dan Nicolaescu <=
- bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"', Stefan Monnier, 2008/11/18
- bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"', Dan Nicolaescu, 2008/11/18
- bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"', Andreas Schwab, 2008/11/18
- bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"', Stefan Monnier, 2008/11/18
- bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"', Dan Nicolaescu, 2008/11/18
- bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"', Stefan Monnier, 2008/11/18
bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"', Eli Zaretskii, 2008/11/18