[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#5519: command-switch-alist

From: Arni Magnusson
Subject: bug#5519: command-switch-alist
Date: Wed, 3 Feb 2010 23:07:26 +0000 (UTC)
User-agent: Alpine 2.00 (LFD 1167 2008-08-23)

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,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]