aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGlenn Morris2020-02-06 07:50:29 -0800
committerGlenn Morris2020-02-06 07:50:29 -0800
commit68d43392a65186a944c839dc576b2b01deafbb0d (patch)
tree2392fb385569e10ad9d4d0ab2a48a1771131bf4e /doc
parentcf14fa0427d6f490972521f7a55134e7139117c6 (diff)
parent09eed01afb4968a93247fb8eb7b5301a5bfb6342 (diff)
downloademacs-68d43392a65186a944c839dc576b2b01deafbb0d.tar.gz
emacs-68d43392a65186a944c839dc576b2b01deafbb0d.zip
Merge from origin/emacs-27
09eed01afb Wrap some set-auto-mode calls with delay-mode-hooks (bug#3... 4a0a114505 Support ido-vertical-mode better ef5fba9f40 Fix faces tab-bar and tab-line. 831508422e Cater for 3-argument version of pthread_setname_np f27187f963 Clarify lexvar restrictions for add-to-ordered-list, add-t... 32763dac46 Replace add-to-list to lexical variable with push (bug#39373) d07f177382 Clarify add-to-list documentation (bug#39373) d3d2ea927c MH-E: alter content in mh-display-msg, not mh-show-mode db7fa2546f Update documentation for mh-show-mode-hook d10be6bf28 Example goto-addr hook: MH-E already uses goto-address # Conflicts: # etc/NEWS
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/misc.texi5
-rw-r--r--doc/lispref/lists.texi9
-rw-r--r--doc/lispref/minibuf.texi1
-rw-r--r--doc/misc/mh-e.texi6
4 files changed, 13 insertions, 8 deletions
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi
index 6b95b12a846..d097f4ee7d8 100644
--- a/doc/emacs/misc.texi
+++ b/doc/emacs/misc.texi
@@ -2939,9 +2939,8 @@ done by calling @code{browse-url} as a subroutine
2939 2939
2940 It can be useful to add @code{goto-address-mode} to mode hooks and 2940 It can be useful to add @code{goto-address-mode} to mode hooks and
2941hooks for displaying an incoming message 2941hooks for displaying an incoming message
2942(e.g., @code{rmail-show-message-hook} for Rmail, and 2942(e.g., @code{rmail-show-message-hook} for Rmail). This is not needed
2943@code{mh-show-mode-hook} for MH-E). This is not needed for Gnus, 2943for Gnus or MH-E, which have similar features of their own.
2944which has a similar feature of its own.
2945 2944
2946@node FFAP 2945@node FFAP
2947@subsection Finding Files and URLs at Point 2946@subsection Finding Files and URLs at Point
diff --git a/doc/lispref/lists.texi b/doc/lispref/lists.texi
index 5ef21d06710..27fa5385e35 100644
--- a/doc/lispref/lists.texi
+++ b/doc/lispref/lists.texi
@@ -777,6 +777,9 @@ non-@code{nil}, it is added at the end.
777The argument @var{symbol} is not implicitly quoted; @code{add-to-list} 777The argument @var{symbol} is not implicitly quoted; @code{add-to-list}
778is an ordinary function, like @code{set} and unlike @code{setq}. Quote 778is an ordinary function, like @code{set} and unlike @code{setq}. Quote
779the argument yourself if that is what you want. 779the argument yourself if that is what you want.
780
781Do not use this function when @var{symbol} refers to a lexical
782variable.
780@end defun 783@end defun
781 784
782Here's a scenario showing how to use @code{add-to-list}: 785Here's a scenario showing how to use @code{add-to-list}:
@@ -799,8 +802,9 @@ foo ;; @r{@code{foo} was changed.}
799@var{value})} is this: 802@var{value})} is this:
800 803
801@example 804@example
802(or (member @var{value} @var{var}) 805(if (member @var{value} @var{var})
803 (setq @var{var} (cons @var{value} @var{var}))) 806 @var{var}
807 (setq @var{var} (cons @var{value} @var{var})))
804@end example 808@end example
805 809
806@defun add-to-ordered-list symbol element &optional order 810@defun add-to-ordered-list symbol element &optional order
@@ -828,6 +832,7 @@ and unlike @code{setq}. Quote the argument yourself if necessary.
828 832
829The ordering information is stored in a hash table on @var{symbol}'s 833The ordering information is stored in a hash table on @var{symbol}'s
830@code{list-order} property. 834@code{list-order} property.
835@var{symbol} cannot refer to a lexical variable.
831@end defun 836@end defun
832 837
833Here's a scenario showing how to use @code{add-to-ordered-list}: 838Here's a scenario showing how to use @code{add-to-ordered-list}:
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi
index 0f60b3fd00d..ac38b9d390d 100644
--- a/doc/lispref/minibuf.texi
+++ b/doc/lispref/minibuf.texi
@@ -572,6 +572,7 @@ and returns the updated history list. It limits the list length to
572the value of @var{maxelt} (if non-@code{nil}) or @code{history-length} 572the value of @var{maxelt} (if non-@code{nil}) or @code{history-length}
573(described below). The possible values of @var{maxelt} have the same 573(described below). The possible values of @var{maxelt} have the same
574meaning as the values of @code{history-length}. 574meaning as the values of @code{history-length}.
575@var{history-var} cannot refer to a lexical variable.
575 576
576Normally, @code{add-to-history} removes duplicate members from the 577Normally, @code{add-to-history} removes duplicate members from the
577history list if @code{history-delete-duplicates} is non-@code{nil}. 578history list if @code{history-delete-duplicates} is non-@code{nil}.
diff --git a/doc/misc/mh-e.texi b/doc/misc/mh-e.texi
index 0630b60ca6f..962f22af5d2 100644
--- a/doc/misc/mh-e.texi
+++ b/doc/misc/mh-e.texi
@@ -2256,10 +2256,10 @@ signature block is more to your liking.
2256Two hooks can be used to control how messages are displayed. The first 2256Two hooks can be used to control how messages are displayed. The first
2257hook, @code{mh-show-mode-hook}, is called early on in the process of 2257hook, @code{mh-show-mode-hook}, is called early on in the process of
2258the message display. It is usually used to perform some action on the 2258the message display. It is usually used to perform some action on the
2259message's content. The second hook, @code{mh-show-hook}, is the last 2259message's buffer. The second hook, @code{mh-show-hook}, is the last
2260thing called after messages are displayed. It's used to affect the 2260thing called after messages are displayed. It's used to affect the
2261behavior of MH-E in general or when @code{mh-show-mode-hook} is too 2261message's content, the behavior of MH-E in general, or when
2262early. 2262@code{mh-show-mode-hook} is too early.
2263 2263
2264@cindex MH-Show mode 2264@cindex MH-Show mode
2265@cindex modes, MH-Show 2265@cindex modes, MH-Show