summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBasil L. Contovounesios <contovob@tcd.ie>2020-08-05 11:40:27 +0100
committerBasil L. Contovounesios <contovob@tcd.ie>2020-08-05 11:40:27 +0100
commit38ad404ba58e83292b3b566a64d8c655aa126cf7 (patch)
tree514e253e496aa4764f98892962565650e7ccb474
parent1b7eb828644a13259ff072e3464c6e8493571e6e (diff)
downloademacs-38ad404ba58e83292b3b566a64d8c655aa126cf7.tar.gz
; Silence recent byte-compiler warning in subr.el
* lisp/subr.el (save-match-data-internal): Declare before first use.
-rw-r--r--lisp/subr.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 3c8dbd16146..6bd06a0b82c 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -883,6 +883,10 @@ side-effects, and the argument LIST is not modified."
;;;; Keymap support.
+;; Declare before first use of `save-match-data',
+;; where it is used internally.
+(defvar save-match-data-internal)
+
(defun kbd (keys)
"Convert KEYS to the internal Emacs key representation.
KEYS should be a string in the format returned by commands such
@@ -4105,8 +4109,6 @@ MODES is as for `set-default-file-modes'."
;;; Matching and match data.
-(defvar save-match-data-internal)
-
;; We use save-match-data-internal as the local variable because
;; that works ok in practice (people should not use that variable elsewhere).
;; We used to use an uninterned symbol; the compiler handles that properly