GNU bug report logs -
#78446
[PATCH] * lisp/emacs-lisp/find-func.el: Fix Eager macro-expansion failure
Previous Next
Full log
View this message in rfc822 format
> From: Sean Whitton <spwhitton <at> spwhitton.name>
> Date: Tue, 20 May 2025 09:55:57 +0100
>
> Hello,
>
> Does this fix it:
>
> > diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el
> > index 6bdfb4bc38b..717bac09c81 100644
> > --- a/lisp/emacs-lisp/find-func.el
> > +++ b/lisp/emacs-lisp/find-func.el
> > @@ -207,7 +207,7 @@ find-function-mode-lower-precedence
> > :set (lambda (symbol value)
> > ;; Toggle the mode off before changing this setting in order to
> > ;; avoid getting into an inconsistent state.
> > - (let ((already-on find-function-mode))
> > + (let ((already-on (bound-and-true-p find-function-mode)))
> > (when already-on (find-function-mode -1))
> > (set-default symbol value)
> > (when already-on (find-function-mode 1)))))
I'd prefer the other solution, to move the setter function before its
first use, or its first use after the function is defined. The
bound-and-true-p use looks strange in a file that defines the
function.
This bug report was last modified 24 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.