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


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 78916 <at> debbugs.gnu.org, kupfer <at> rawbw.com
Subject: bug#78916: 31.0.50; C-g fails to exit loop
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))) ?


        Stefan





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.