From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Arni Magnusson Newsgroups: gmane.emacs.bugs Subject: bug#5519: command-switch-alist Date: Wed, 3 Feb 2010 23:07:26 +0000 (UTC) Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Trace: ger.gmane.org 1265243266 16093 80.91.229.12 (4 Feb 2010 00:27:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Feb 2010 00:27:46 +0000 (UTC) To: 5519@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 04 01:27:43 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.69) (envelope-from ) id 1NcpZN-0005gG-J9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Feb 2010 01:27:41 +0100 Original-Received: from localhost ([127.0.0.1]:43586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcpZM-0005SX-Pa for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Feb 2010 19:27:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcpZH-0005SI-JY for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2010 19:27:35 -0500 Original-Received: from [199.232.76.173] (port=54482 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcpZH-0005S9-0o for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2010 19:27:35 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NcpZF-0006A2-Lt for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2010 19:27:34 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46967) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NcpZF-00069y-F0 for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2010 19:27:33 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NcpP4-0004Ej-Gw; Wed, 03 Feb 2010 19:17:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Arni Magnusson Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Feb 2010 00:17:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5519 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.126524262116275 (code B ref -1); Thu, 04 Feb 2010 00:17:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Feb 2010 00:17:01 +0000 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NcoJz-0003Xh-Bp for submit@debbugs.gnu.org; Wed, 03 Feb 2010 18:07:43 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]:40801) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NcoJv-0004Ls-GK for submit@debbugs.gnu.org; Wed, 03 Feb 2010 18:07:39 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NcoJu-0007iS-LM for submit@debbugs.gnu.org; Wed, 03 Feb 2010 18:07:39 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:59803) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NcoJu-0007iJ-B6 for submit@debbugs.gnu.org; Wed, 03 Feb 2010 18:07:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcoJu-0006SV-5K for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2010 18:07:38 -0500 Original-Received: from [199.232.76.173] (port=52708 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcoJt-0006SN-Rq for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2010 18:07:37 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NcoJs-0007i9-MH for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2010 18:07:37 -0500 Original-Received: from hafgarpur.hafro.is ([130.208.64.48]:38038) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NcoJs-0007hf-5b for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2010 18:07:36 -0500 X-Virus-Scanned: amavisd-new at hafro.is Original-Received: from hafstormur.hafro.is (hafstormur [130.208.66.52]) by hafgarpur.hafro.is (8.14.2/8.14.2/hafro-2.45) with ESMTP id o13N7Rna021851 for ; Wed, 3 Feb 2010 23:07:27 GMT Original-Received: from hafstormur.hafro.is (localhost [127.0.0.1]) by hafstormur.hafro.is (8.14.3/8.14.3/hafro-1.6) with ESMTP id o13N7RoJ029405 for ; Wed, 3 Feb 2010 23:07:27 GMT Original-Received: from localhost (arnima@localhost) by hafstormur.hafro.is (8.14.3/8.14.3/hafro-0.3) with ESMTP id o13N7Rvh029400 for ; Wed, 3 Feb 2010 23:07:27 GMT X-Authentication-Warning: hafstormur.hafro.is: arnima owned process doing -bs User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Wed, 03 Feb 2010 19:17:02 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:34887 Archived-At: The GNU Emacs Lisp Reference Manual (section 39.1.4) describes the variable `command-switch-alist', saying specifically that the CAR should be a string, _not_ including the initial hyphen. My experiments indicate that the CAR string should indeed include the initialy hyphen. I can create a custom option using "-c", (setq command-switch-alist '(("-c" . (lambda (arg)(c-mode))))) $ emacs -c # starts successfully in c-mode but not using "c": (setq command-switch-alist '(("c" . (lambda (arg)(c-mode))))) $ emacs -c # Emacs says: Unknown option `-c' Therefore, it appears that there is a bug either in Emacs or the Lisp manual, since they disagree on whether the CAR string should include the initial hyphen or not. Best regards, Arni