From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#5392: 23.1.91; -Q becomes unknown if -displat is given. Date: Sat, 16 Jan 2010 14:30:50 -0500 Message-ID: <8763717sph.fsf@stupidchicken.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1263670787 3942 80.91.229.12 (16 Jan 2010 19:39:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Jan 2010 19:39:47 +0000 (UTC) Cc: 5392@debbugs.gnu.org To: jan.h.d@swipnet.se () Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 16 20:39:40 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NWEUk-0003MR-UK for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jan 2010 20:39:39 +0100 Original-Received: from localhost ([127.0.0.1]:48779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWEUl-0005cM-Fn for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jan 2010 14:39:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NWEUV-0005QU-AL for bug-gnu-emacs@gnu.org; Sat, 16 Jan 2010 14:39:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NWEUQ-0005PC-Li for bug-gnu-emacs@gnu.org; Sat, 16 Jan 2010 14:39:22 -0500 Original-Received: from [199.232.76.173] (port=33572 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWEUQ-0005P9-Fh for bug-gnu-emacs@gnu.org; Sat, 16 Jan 2010 14:39:18 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36713) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NWEUQ-0003rb-6E for bug-gnu-emacs@gnu.org; Sat, 16 Jan 2010 14:39:18 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NWEMR-0007qX-Id; Sat, 16 Jan 2010 14:31:03 -0500 X-Loop: bug-gnu-emacs@gnu.org In-Reply-To: Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Jan 2010 19:31:03 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5392 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5392-submit@debbugs.gnu.org id=B5392.126367025930148 (code B ref 5392); Sat, 16 Jan 2010 19:31:03 +0000 Original-Received: (at 5392) by debbugs.gnu.org; 16 Jan 2010 19:30:59 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NWEMM-0007qD-BX for submit@debbugs.gnu.org; Sat, 16 Jan 2010 14:30:58 -0500 Original-Received: from pantheon-po43.its.yale.edu ([130.132.50.104]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NWEMI-0007q3-Iw for 5392@debbugs.gnu.org; Sat, 16 Jan 2010 14:30:56 -0500 Original-Received: from furry (173-14-147-246-NewEngland.hfc.comcastbusiness.net [173.14.147.246]) (authenticated bits=0) by pantheon-po43.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o0GJUo4j012647 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 16 Jan 2010 14:30:50 -0500 Original-Received: by furry (Postfix, from userid 1000) id 11A98C05D; Sat, 16 Jan 2010 12:30:50 -0700 (MST) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -3.5 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -3.5 (---) Resent-Date: Sat, 16 Jan 2010 14:31:03 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:34391 Archived-At: > % 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.