unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: jan.h.d@swipnet.se ()
Cc: 5392@debbugs.gnu.org
Subject: bug#5392: 23.1.91; -Q becomes unknown if -displat is given.
Date: Sat, 16 Jan 2010 14:30:50 -0500	[thread overview]
Message-ID: <8763717sph.fsf@stupidchicken.com> (raw)
In-Reply-To: <m2pr5but8m.fsf@swipnet.se>

> % 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.






      reply	other threads:[~2010-01-16 19:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-15 18:18 bug#5392: 23.1.91; -Q becomes unknown if -displat is given Jan =?UTF-8?Q?Dj=C3=A4rv
2010-01-16 19:30 ` Chong Yidong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8763717sph.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=5392@debbugs.gnu.org \
    --cc=jan.h.d@swipnet.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).