From: Basil L. Contovounesios Date: Wed, 5 Aug 2020 10:40:27 +0000 (+0100) Subject: ; Silence recent byte-compiler warning in subr.el X-Git-Tag: emacs-28.0.90~6808 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=38ad404ba58e83292b3b566a64d8c655aa126cf7;p=emacs.git ; Silence recent byte-compiler warning in subr.el * lisp/subr.el (save-match-data-internal): Declare before first use. --- 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