From 38ad404ba58e83292b3b566a64d8c655aa126cf7 Mon Sep 17 00:00:00 2001 From: "Basil L. Contovounesios" Date: Wed, 5 Aug 2020 11:40:27 +0100 Subject: [PATCH] ; Silence recent byte-compiler warning in subr.el * lisp/subr.el (save-match-data-internal): Declare before first use. --- lisp/subr.el | 6 ++++-- 1 file 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 -- 2.39.2