GNU bug report logs - #1298
allow 'emacsclient -a "emacs --daemon && emacsclient -c"'

Previous Next

Package: emacs;

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


Message #16 received at 1298 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Dan Nicolaescu <dann <at> ics.uci.edu>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: 1298 <at> debbugs.gnu.org
Subject: Re: bug#1298: allow 'emacsclient -a "emacs --daemon && emacsclient -c"'
Date: Tue, 18 Nov 2008 10:17:43 -0800 (PST)
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...




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.