aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGlenn Morris2020-02-16 07:50:36 -0800
committerGlenn Morris2020-02-16 07:50:36 -0800
commitf633e014aca727b9ccecaf8e6d69386f93c5073f (patch)
tree8db3ca5c8726fe382033559ec6a3bdf2cf28b74a /doc
parent3480071dfab30eaca7f1d014600b864d2ea22f62 (diff)
parent7ceb45f61f91d99c045966d8463c8ae30add8930 (diff)
downloademacs-f633e014aca727b9ccecaf8e6d69386f93c5073f.tar.gz
emacs-f633e014aca727b9ccecaf8e6d69386f93c5073f.zip
Merge from origin/emacs-27
7ceb45f61f (origin/emacs-27) Reformulate c-end-of-macro, handling mul... 888ffd960c Fix unexec failure on macOS 10.15.4 b392c9f365 Fix 'reverse-region' when less than one line is in region 7448834f73 Correct default regexp in 'package-menu-hide-package' faada7ca42 Remove obsolete menu entry "Redisplay buffer" 78d76cd93c Remove redundant 'msft' compilation error rule (bug#39595) 75a9eee8b8 ; * src/editfns.c (Fbuffer_size): Tiny clarification. 4d8d25d641 * doc/lispref/variables.texi (special-variable-p): Clarify... 9f6a4bbcc9 Remove the optional KEEP-ORDER argument to regexp-opt d1e8ce8bb6 Make after-change-functions called from call-process get t... # Conflicts: # etc/NEWS
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/searching.texi9
-rw-r--r--doc/lispref/variables.texi4
2 files changed, 7 insertions, 6 deletions
diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi
index 5f4509a8b43..1f6db0643e8 100644
--- a/doc/lispref/searching.texi
+++ b/doc/lispref/searching.texi
@@ -1745,7 +1745,7 @@ any special characters.
1745@end defun 1745@end defun
1746 1746
1747@cindex optimize regexp 1747@cindex optimize regexp
1748@defun regexp-opt strings &optional paren keep-order 1748@defun regexp-opt strings &optional paren
1749This function returns an efficient regular expression that will match 1749This function returns an efficient regular expression that will match
1750any of the strings in the list @var{strings}. This is useful when you 1750any of the strings in the list @var{strings}. This is useful when you
1751need to make matching or searching as fast as possible---for example, 1751need to make matching or searching as fast as possible---for example,
@@ -1783,11 +1783,8 @@ if it is necessary to ensure that a postfix operator appended to
1783it will apply to the whole expression. 1783it will apply to the whole expression.
1784@end table 1784@end table
1785 1785
1786The optional argument @var{keep-order}, if non-@code{nil}, forces the 1786The returned regexp is ordered in such a way that it will always match
1787match to be performed in the order given, as if the strings were made 1787the longest string possible.
1788into a regexp by joining them with the @samp{\|} operator. If nil or
1789omitted, the returned regexp will always match the longest string
1790possible.
1791 1788
1792Up to reordering, the resulting regexp of @code{regexp-opt} is 1789Up to reordering, the resulting regexp of @code{regexp-opt} is
1793equivalent to but usually more efficient than that of a simplified 1790equivalent to but usually more efficient than that of a simplified
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi
index 1e357754abe..35eb4d59fb0 100644
--- a/doc/lispref/variables.texi
+++ b/doc/lispref/variables.texi
@@ -1229,6 +1229,10 @@ This function returns non-@code{nil} if @var{symbol} is a special
1229variable (i.e., it has a @code{defvar}, @code{defcustom}, or 1229variable (i.e., it has a @code{defvar}, @code{defcustom}, or
1230@code{defconst} variable definition). Otherwise, the return value is 1230@code{defconst} variable definition). Otherwise, the return value is
1231@code{nil}. 1231@code{nil}.
1232
1233Note that since this is a function, it can only return
1234non-@code{nil} for variables which are permanently special, but not
1235for those that are only special in the current lexical scope.
1232@end defun 1236@end defun
1233 1237
1234 The use of a special variable as a formal argument in a function is 1238 The use of a special variable as a formal argument in a function is