From: Arni Magnusson <arnima@hafro.is>
To: 5519@debbugs.gnu.org
Subject: bug#5519: command-switch-alist
Date: Wed, 3 Feb 2010 23:07:26 +0000 (UTC) [thread overview]
Message-ID: <alpine.LFD.2.00.1002032248370.29290@hafstormur.hafro.is> (raw)
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
next reply other threads:[~2010-02-03 23:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-03 23:07 Arni Magnusson [this message]
2010-02-05 4:50 ` bug#5519: command-switch-alist Chong Yidong
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=alpine.LFD.2.00.1002032248370.29290@hafstormur.hafro.is \
--to=arnima@hafro.is \
--cc=5519@debbugs.gnu.org \
/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).