GNU bug report logs - #71406
30.0.50; string-edit signals error when user aborts and :abort-callback parameter nil

Previous Next

Package: emacs;

Reported by: Nicholas Vollmer <nv <at> parenthetic.dev>

Date: Fri, 7 Jun 2024 03:51:03 UTC

Severity: normal

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#71406: closed (30.0.50; string-edit signals error when user
 aborts and :abort-callback parameter nil)
Date: Sat, 15 Jun 2024 11:01:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 15 Jun 2024 13:42:34 +0300
with message-id <868qz6v65h.fsf <at> gnu.org>
and subject line Re: bug#71406: 30.0.50; string-edit signals error when user aborts and :abort-callback parameter nil
has caused the debbugs.gnu.org bug report #71406,
regarding 30.0.50; string-edit signals error when user aborts and :abort-callback parameter nil
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
71406: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=71406
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Nicholas Vollmer <nv <at> parenthetic.dev>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; string-edit signals error when user aborts and
 :abort-callback parameter nil
Date: Thu, 06 Jun 2024 12:03:34 -0400
1. emacs -q
2. eval (string-edit "test" "" #'ignore)
3. In the "*edit string*" buffer eval string-edit-abort.

The following error is signaled:

Debugger entered--Lisp error: (void-variable 
string-edit--abort-callback)
 string-edit-abort()
 funcall-interactively(string-edit-abort)
 command-execute(string-edit-abort)

Seeing as string-edit specifies this parameter as a &key, it 
should either provide a default (#'ignore?) or error if the caller 
does not provide an abort function (Though why specify it as a 
keyword arg if it's mandatory?).



[Message part 3 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Nicholas Vollmer <nv <at> parenthetic.dev>
Cc: 71406-done <at> debbugs.gnu.org
Subject: Re: bug#71406: 30.0.50; string-edit signals error when user aborts
 and :abort-callback parameter nil
Date: Sat, 15 Jun 2024 13:42:34 +0300
> From: Nicholas Vollmer <nv <at> parenthetic.dev>
> Cc: 71406 <at> debbugs.gnu.org
> Date: Mon, 10 Jun 2024 16:50:29 -0400
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > Thanks, I fixed this with the patch below.
> 
> Makes sense. Works on my end, too.

Thanks, I'm therefore closing this bug.


This bug report was last modified 342 days ago.

Previous Next


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