aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2020-05-23 07:50:30 -0700
committerGlenn Morris2020-05-23 07:50:30 -0700
commitd436e4840a2a99e9717497a7d7dc7a36dbd0ecc9 (patch)
treefe07bdba2e6249b757d4140d737e204a372a0125 /lisp
parent294495de8e93c094aa25df55905dac61975643b9 (diff)
parentd6a0b66a0cf44389c7474a60dd23cbf666e78537 (diff)
downloademacs-d436e4840a2a99e9717497a7d7dc7a36dbd0ecc9.tar.gz
emacs-d436e4840a2a99e9717497a7d7dc7a36dbd0ecc9.zip
Merge from origin/emacs-27
d6a0b66a0c (origin/emacs-27) * lisp/subr.el (save-match-data): Clarif... 1a6d59eeba Improve the documentation of setting up fontsets c7737d40f2 ; * etc/TODO (Ligatures): Update the entry based on recent... fb2e34cd21 ; * etc/TODO (Ligatures): Update the entry based on recent... 13b6dfd4f7 * doc/emacs/killing.texi (Rectangles): Improve indexing. a10254dd46 Fix accessing files on networked drives on MS-Windows
Diffstat (limited to 'lisp')
-rw-r--r--lisp/subr.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 324c59f13f7..10c37e94134 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -4112,7 +4112,11 @@ MODES is as for `set-default-file-modes'."
4112;; now, but it generates slower code. 4112;; now, but it generates slower code.
4113(defmacro save-match-data (&rest body) 4113(defmacro save-match-data (&rest body)
4114 "Execute the BODY forms, restoring the global value of the match data. 4114 "Execute the BODY forms, restoring the global value of the match data.
4115The value returned is the value of the last form in BODY." 4115The value returned is the value of the last form in BODY.
4116NOTE: The convention in Elisp is that any function, except for a few
4117exceptions like car/assoc/+/goto-char, can clobber the match data,
4118so `save-match-data' should normally be used to save *your* match data
4119rather than your caller's match data."
4116 ;; It is better not to use backquote here, 4120 ;; It is better not to use backquote here,
4117 ;; because that makes a bootstrapping problem 4121 ;; because that makes a bootstrapping problem
4118 ;; if you need to recompile all the Lisp files using interpreted code. 4122 ;; if you need to recompile all the Lisp files using interpreted code.