GNU bug report logs - #78916
31.0.50; C-g fails to exit loop

Previous Next

Package: emacs;

Reported by: Mike Kupfer <kupfer <at> rawbw.com>

Date: Fri, 27 Jun 2025 21:37:02 UTC

Severity: normal

Found in version 31.0.50

Full log


Message #92 received at 78916 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 78916 <at> debbugs.gnu.org, kupfer <at> rawbw.com
Subject: Re: bug#78916: 31.0.50; C-g fails to exit loop
Date: Fri, 04 Jul 2025 09:59:16 +0300
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: 78916 <at> debbugs.gnu.org,  kupfer <at> rawbw.com
> Date: Thu, 03 Jul 2025 15:23:30 -0400
> 
> >> -             ((eq answer 'scroll-other-window)
> >> -              (ignore-errors (scroll-other-window)) t)
> >> -             ((eq answer 'scroll-other-window-down)
> >> -              (ignore-errors (scroll-other-window-down)) t)
> >> +             ((functionp answer)
> >> +              (call-interactively answer) t)
> >
> > Why not 'commandp'?
> 
> No strong reason:
> 
> - `call-interactively` doesn't work on vectors and strings, only
>   on functions.
> - I prefer an error about a function failing to be interactive than just
>   ignoring the binding.
> 
> But yeah, the second point also applies to strings and vectors, so maybe
> it should be (or (functionp answer) (commandp answer)) or even
> (or (functionp answer) (not (symbolp answer))) ?

Something like that, yes.




This bug report was last modified 25 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.