unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: Arni Magnusson <arnima@hafro.is>
Cc: 5519@debbugs.gnu.org
Subject: bug#5519: command-switch-alist
Date: Thu, 04 Feb 2010 23:50:35 -0500	[thread overview]
Message-ID: <871vh0s2uc.fsf@stupidchicken.com> (raw)
In-Reply-To: <alpine.LFD.2.00.1002032248370.29290@hafstormur.hafro.is>

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

Thanks for the bug report.  This was a bug in Emacs 23 (Emacs 22 worked
according to the description in the Elisp manual).  I've checked in a
fix.






      reply	other threads:[~2010-02-05  4:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-03 23:07 bug#5519: command-switch-alist Arni Magnusson
2010-02-05  4:50 ` 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=871vh0s2uc.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=5519@debbugs.gnu.org \
    --cc=arnima@hafro.is \
    /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).