GNU bug report logs -
#1152
emacsclient should support the "-nw" flag
Previous Next
Reported by: Dan Nicolaescu <dann <at> ics.uci.edu>
Date: Mon, 13 Oct 2008 01:45:03 UTC
Severity: normal
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
[Message part 1 (text/plain, inline)]
Your message dated Sun, 12 Oct 2008 19:34:35 -0700 (PDT)
with message-id <200810130234.m9D2YZ5c000663 <at> mothra.ics.uci.edu>
and subject line Re: bug#1152: emacsclient should support the "-nw" flag
has caused the Emacs bug report #1152,
regarding emacsclient should support the "-nw" flag
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact don <at> donarmstrong.com
immediately.)
--
1152: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1152
Emacs Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
emacsclient should support the "-nw" flag (as an equivalent to "-t") for
consistency with emacs.
The attached patch implements this.
Index: emacsclient.c
===================================================================
RCS file: /cvsroot/emacs/emacs/lib-src/emacsclient.c,v
retrieving revision 1.132
diff -u -3 -p -u -p -r1.132 emacsclient.c
--- emacsclient.c 19 Sep 2008 16:45:12 -0000 1.132
+++ emacsclient.c 13 Oct 2008 01:34:25 -0000
@@ -156,6 +156,7 @@ struct option longopts[] =
{ "help", no_argument, NULL, 'H' },
{ "version", no_argument, NULL, 'V' },
{ "tty", no_argument, NULL, 't' },
+ { "nw", no_argument, NULL, 't' },
{ "create-frame", no_argument, NULL, 'c' },
{ "alternate-editor", required_argument, NULL, 'a' },
#ifndef NO_SOCKETS_IN_FILE_SYSTEM
@@ -474,7 +475,7 @@ decode_options (argc, argv)
while (1)
{
- int opt = getopt_long (argc, argv,
+ int opt = getopt_long_only (argc, argv,
#ifndef NO_SOCKETS_IN_FILE_SYSTEM
"VHnea:s:f:d:tc",
#else
@@ -601,7 +602,7 @@ Every FILE can be either just a FILENAME
The following OPTIONS are accepted:\n\
-V, --version Just print version info and return\n\
-H, --help Print this usage information message\n\
--t, --tty Open a new Emacs frame on the current terminal\n\
+-nw, -t, --tty Open a new Emacs frame on the current terminal\n\
-c, --create-frame Create a new frame instead of trying to\n\
use the current Emacs frame\n\
-e, --eval Evaluate the FILE arguments as ELisp expressions\n\
[Message part 3 (message/rfc822, inline)]
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
> > emacsclient should support the "-nw" flag (as an equivalent to "-t") for
> > consistency with emacs.
>
> That's good, please install it,
Thanks, checked in.
This bug report was last modified 16 years and 318 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.