Subject: Re: bug#76977: 31.0.50; Symbol's value as variable is void: follow-mode-map

From: Eli Zaretskii <[email-masked]>
Date: Wed, 12 Mar 2025 17:56:35 +0200

> Date: Wed, 12 Mar 2025 09:40:39 -0300
> From: German Pacenza <[email-masked]>
> 
> *****
> 
> Emacs -Q:
> Running follow-mode displays:
> Symbol's value as variable is void: follow-mode-map

Stefan, this is due to your recent changes in follow.el.  Here's the
backtrace:

  Debugger entered--Lisp error: (void-variable follow-mode-map)
    (keymap-unset follow-mode-map (symbol-value symbol))
    #f(lambda (symbol value) [t] (defvar follow-mode-map) (defvar follow-mode-submap) (keymap-unset follow-mode-map (symbol-value symbol)) (keymap-set follow-mode-map value follow-mode-submap) (set-default symbol value))(follow-mode-prefix-key "C-c .")
    custom-initialize-reset(follow-mode-prefix-key (funcall #'#f(lambda () [t] "" (key-description follow-mode-prefix))))
    custom-declare-variable(follow-mode-prefix-key (funcall #'#f(lambda () [t] "" (key-description follow-mode-prefix))) "Prefix key to use for follow commands in Follow mode." :type string :set #f(lambda (symbol value) [t] (defvar follow-mode-map) (defvar 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")
    eval-buffer(#<buffer  *load*> nil "d:/gnu/git/emacs/trunk/lisp/follow.el" nil t)  ; Reading at buffer position 8812
    load-with-code-conversion("d:/gnu/git/emacs/trunk/lisp/follow.el" "d:/gnu/git/emacs/trunk/lisp/follow.el" nil t)
    autoload-do-load((autoload "follow" ("loaddefs.elc" . 516102) t nil) follow-mode)
    command-execute(follow-mode record)
    execute-extended-command(nil "follow-mode" "follow-mod")
    funcall-interactively(execute-extended-command nil "follow-mode" "follow-mod")
    call-interactively(execute-extended-command nil nil)
    command-execute(execute-extended-command)