GNU bug report logs -
#1298
allow 'emacsclient -a "emacs --daemon && emacsclient -c"'
Previous Next
Reported by: Dan Nicolaescu <dann <at> ics.uci.edu>
Date: Sun, 2 Nov 2008 18:25:04 UTC
Severity: wishlist
Done: Dan Nicolaescu <dann <at> ics.uci.edu>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Stefan Monnier <monnier <at> 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...
>
> I think both are hacks, where my hack has the advantage of requiring no
> changes to the code. If you want to change the code, than I'd rather we
> do it Right.
Well, now please don't tease, say what you mean by "do it Right"...
This bug report was last modified 16 years and 168 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.