aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorGlenn Morris2020-05-16 10:29:14 -0700
committerGlenn Morris2020-05-16 10:29:14 -0700
commit788c2480f448e97773172f3e840976dbcdc3e6c8 (patch)
tree60d3425a657e682da7790fc5f0d2548995721ef2 /doc/lispref
parenta67415a71a1be5419547ac5e2abe51bc6bb37f1d (diff)
parentb4937f64cd97ff6bf93538987c014f8ea8ff9d34 (diff)
downloademacs-788c2480f448e97773172f3e840976dbcdc3e6c8.tar.gz
emacs-788c2480f448e97773172f3e840976dbcdc3e6c8.zip
Merge from origin/emacs-27
b4937f64cd (origin/emacs-27) Improve documentation of manually instal... efd4e973a4 Reflect the emacs-devel ELPA/MELPA dispute in FAQ 28541674cd Consider face inheritance when checking region face backgr... e75f6be6cc Fix dired default file operation (bug#41261) 406fb0746c Fix documentation related to 'command-switch-alist'. 747e0a2523 Improve ediff readability in misterioso theme (Bug#41221) 48830c73e7 Fix a crash in handle_display_spec a37290a6f9 In x_hide_tip reset tip_last_frame for GTK+ tooltips only ... 3d81995692 Fix docstring of flymake-make-diagnostic (bug#40351) 632aa9d57a Go back to “Bahá’í” e2406ff60f * lisp/dired.el (dired-toggle-marks): Doc fix. (Bug#41097) # Conflicts: # doc/emacs/building.texi
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/os.texi10
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi
index 8bf48b1dbba..8f2c7439d9f 100644
--- a/doc/lispref/os.texi
+++ b/doc/lispref/os.texi
@@ -613,7 +613,7 @@ The elements of the @code{command-switch-alist} look like this:
613@end example 613@end example
614 614
615The @sc{car}, @var{option}, is a string, the name of a command-line 615The @sc{car}, @var{option}, is a string, the name of a command-line
616option (not including the initial hyphen). The @var{handler-function} 616option (including the initial hyphen). The @var{handler-function}
617is called to handle @var{option}, and receives the option name as its 617is called to handle @var{option}, and receives the option name as its
618sole argument. 618sole argument.
619 619
@@ -623,6 +623,14 @@ remaining command-line arguments in the variable
623@code{command-line-args-left} (see below). (The entire list of 623@code{command-line-args-left} (see below). (The entire list of
624command-line arguments is in @code{command-line-args}.) 624command-line arguments is in @code{command-line-args}.)
625 625
626Note that the handling of @code{command-switch-alist} doesn't treat
627equals signs in @var{option} specially. That is, if there's an option
628like @code{--name=value} on the command line, then only a
629@code{command-switch-alist} member whose @code{car} is literally
630@code{--name=value} will match this option. If you want to parse such
631options, you need to use @code{command-line-functions} instead (see
632below).
633
626The command-line arguments are parsed by the @code{command-line-1} 634The command-line arguments are parsed by the @code{command-line-1}
627function in the @file{startup.el} file. See also @ref{Emacs 635function in the @file{startup.el} file. See also @ref{Emacs
628Invocation, , Command Line Arguments for Emacs Invocation, emacs, The 636Invocation, , Command Line Arguments for Emacs Invocation, emacs, The