From: Stefan Kangas Date: Sun, 16 Mar 2025 21:26:09 +0000 (+0100) Subject: ; * lisp/follow.el (follow-mode-prefix-key): Improve. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=882dc5802083553c0517b7c1b2aae868c59ee6f7;p=emacs.git ; * lisp/follow.el (follow-mode-prefix-key): Improve. (cherry picked from commit 49e019fbbc61e22167f0a15a3b1983d98bce7be6) --- diff --git a/lisp/follow.el b/lisp/follow.el index ddf72845eed..087d3139556 100644 --- a/lisp/follow.el +++ b/lisp/follow.el @@ -231,12 +231,12 @@ After that, changing the prefix key requires manipulating keymaps." (defcustom follow-mode-prefix-key (key-description follow-mode-prefix) "Prefix key to use for follow commands in Follow mode." - :type 'string + :type 'key + :initialize 'custom-initialize-default :set (lambda (symbol value) (defvar follow-mode-map) (defvar follow-mode-submap) - (when (boundp 'follow-mode-map) - (keymap-unset follow-mode-map (symbol-value symbol)) - (keymap-set follow-mode-map value follow-mode-submap)) + (keymap-unset follow-mode-map (symbol-value symbol)) + (keymap-set follow-mode-map value follow-mode-submap) (set-default symbol value)) :group 'follow :version "31.1")