bug-gnu-emacs
[Top][All Lists]
Advanced

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

command-switch-alist doc string


From: Kevin Rodgers
Subject: command-switch-alist doc string
Date: Tue, 03 Feb 2004 12:00:16 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

The doc string for command-switch-alist says "HANDLER-FUNCTION receives
switch name as sole arg" when it really means "HANDLER-FUNCTION receives
SWITCH-STRING as its sole arg", which can lead to confusion (see
gnu.emacs.help message <401FDE6C.2010600@yahoo.com>).  Here's a patch:

*** emacs-21.3/lisp/startup.el.orig     Sun Mar 16 15:05:59 2003
--- emacs-21.3/lisp/startup.el  Tue Feb  3 11:52:30 2004
***************
*** 158,165 ****
  (defvar command-switch-alist nil
    "Alist of command-line switches.
  Elements look like (SWITCH-STRING . HANDLER-FUNCTION).
! HANDLER-FUNCTION receives switch name as sole arg;
! remaining command-line args are in the variable `command-line-args-left'.")

  (defvar command-line-args-left nil
    "List of command-line args not yet processed.")
--- 158,165 ----
  (defvar command-switch-alist nil
    "Alist of command-line switches.
  Elements look like (SWITCH-STRING . HANDLER-FUNCTION).
! HANDLER-FUNCTION receives SWITCH-STRING as its sole arg;
! the remaining command-line args are in the variable 
`command-line-args-left'.")

  (defvar command-line-args-left nil
    "List of command-line args not yet processed.")

--
Kevin Rodgers





reply via email to

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