GNU bug report logs - #5392
23.1.91; -Q becomes unknown if -displat is given.

Previous Next

Package: emacs;

Reported by: jan.h.d <at> swipnet.se (Jan Djärv)

Date: Fri, 15 Jan 2010 18:19:01 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 5392 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: jan.h.d <at> swipnet.se ()
Cc: 5392 <at> debbugs.gnu.org
Subject: Re: 23.1.91; -Q becomes unknown if -displat is given.
Date: Sat, 16 Jan 2010 14:30:50 -0500
> % emacs -Q -display :0
>
> A message appears in the minibuffer: Unknown option -Q.
> This is from command-line-1.  -Q has not been handeled since
> sort_args seems to always put -display before -Q (and others) handled
> in startup.el.  Thus the handling of option stops when -display is seen
> and -Q gets passed to command-line-1, which chould not happen.
>
> I don't understand the comment in emacs.c:
>   /* -d must come last before the options handled in startup.el.  */
>   { "-d", "--display", 60, 1 },
>   { "-display", 0, 60, 1 },
>
> Changing the prio to 6 cures this bug, but the comment seems to indicate
> this is the wrong thing to do.

The --display arg is a little funny, because it is handled partly in C
and partly in Lisp.  That's why it needs to have high priority.  I've
tweaked `command-line' to handle it specially.  Thanks for noticing
this.




This bug report was last modified 15 years and 129 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.