From 882dc5802083553c0517b7c1b2aae868c59ee6f7 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sun, 16 Mar 2025 22:26:09 +0100 Subject: [PATCH] ; * lisp/follow.el (follow-mode-prefix-key): Improve. (cherry picked from commit 49e019fbbc61e22167f0a15a3b1983d98bce7be6) --- lisp/follow.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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") -- 2.39.5