GNU bug report logs - #78715
save-some-buffers cannot deal %-sequences in filenames

Previous Next

Package: emacs;

Reported by: Jonas Bernoulli <jonas <at> bernoul.li>

Date: Sat, 7 Jun 2025 12:57:02 UTC

Severity: normal

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

To reply to this bug, email your comments to 78715 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#78715; Package emacs. (Sat, 07 Jun 2025 12:57:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jonas Bernoulli <jonas <at> bernoul.li>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 07 Jun 2025 12:57:02 GMT) Full text and rfc822 format available.

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

From: Jonas Bernoulli <jonas <at> bernoul.li>
To: bug-gnu-emacs <at> gnu.org
Subject: save-some-buffers cannot deal %-sequences in filenames
Date: Sat, 07 Jun 2025 14:56:13 +0200
Hello

`save-some-buffers' errors when it encounters a filename that
contains a %-sequence:

Debugger entered--Lisp error: (error "Not enough arguments for format string")
  (message #("Save file /tmp/%i;%I? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) " ...))
  (map-y-or-n-p #f(lambda (buffer) [(queried t) (arg nil)] ...))
  ...
  (save-some-buffers nil)

     Cheers,
     Jonas




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78715; Package emacs. (Sat, 07 Jun 2025 13:38:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jonas Bernoulli <jonas <at> bernoul.li>
Cc: 78715 <at> debbugs.gnu.org
Subject: Re: bug#78715: save-some-buffers cannot deal %-sequences in filenames
Date: Sat, 07 Jun 2025 16:36:55 +0300
> Date: Sat, 07 Jun 2025 14:56:13 +0200
> From:  Jonas Bernoulli via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> Hello
> 
> `save-some-buffers' errors when it encounters a filename that
> contains a %-sequence:
> 
> Debugger entered--Lisp error: (error "Not enough arguments for format string")
>   (message #("Save file /tmp/%i;%I? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) " ...))
>   (map-y-or-n-p #f(lambda (buffer) [(queried t) (arg nil)] ...))
>   ...
>   (save-some-buffers nil)

Thanks, should be fixed now on the master branch.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78715; Package emacs. (Sat, 07 Jun 2025 23:21:01 GMT) Full text and rfc822 format available.

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

From: Jonas Bernoulli <jonas <at> bernoul.li>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 78715 <at> debbugs.gnu.org
Subject: Re: bug#78715: save-some-buffers cannot deal %-sequences in filenames
Date: Sun, 08 Jun 2025 01:20:36 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> Date: Sat, 07 Jun 2025 14:56:13 +0200
>> From:  Jonas Bernoulli via "Bug reports for GNU Emacs,
>>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>> 
>> Hello
>> 
>> `save-some-buffers' errors when it encounters a filename that
>> contains a %-sequence:
>> 
>> Debugger entered--Lisp error: (error "Not enough arguments for format string")
>>   (message #("Save file /tmp/%i;%I? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) " ...))
>>   (map-y-or-n-p #f(lambda (buffer) [(queried t) (arg nil)] ...))
>>   ...
>>   (save-some-buffers nil)
>
> Thanks, should be fixed now on the master branch.

I can confirm that this is fixed.

(And by using % in the subject of a mail, I discovered that I had to fix
the same defect in one of own packages and also in my personal value for
frame-title-format. ;P )




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sun, 08 Jun 2025 04:44:03 GMT) Full text and rfc822 format available.

Notification sent to Jonas Bernoulli <jonas <at> bernoul.li>:
bug acknowledged by developer. (Sun, 08 Jun 2025 04:44:03 GMT) Full text and rfc822 format available.

Message #16 received at 78715-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jonas Bernoulli <jonas <at> bernoul.li>
Cc: 78715-done <at> debbugs.gnu.org
Subject: Re: bug#78715: save-some-buffers cannot deal %-sequences in filenames
Date: Sun, 08 Jun 2025 07:43:09 +0300
> From: Jonas Bernoulli <jonas <at> bernoul.li>
> Cc: 78715 <at> debbugs.gnu.org
> Date: Sun, 08 Jun 2025 01:20:36 +0200
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> Date: Sat, 07 Jun 2025 14:56:13 +0200
> >> From:  Jonas Bernoulli via "Bug reports for GNU Emacs,
> >>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> >> 
> >> Hello
> >> 
> >> `save-some-buffers' errors when it encounters a filename that
> >> contains a %-sequence:
> >> 
> >> Debugger entered--Lisp error: (error "Not enough arguments for format string")
> >>   (message #("Save file /tmp/%i;%I? (y, n, !, ., q, M-~, C-r, C-f, d or C-h) " ...))
> >>   (map-y-or-n-p #f(lambda (buffer) [(queried t) (arg nil)] ...))
> >>   ...
> >>   (save-some-buffers nil)
> >
> > Thanks, should be fixed now on the master branch.
> 
> I can confirm that this is fixed.

Thanks, I'm therefore closing this bug.

> (And by using % in the subject of a mail, I discovered that I had to fix
> the same defect in one of own packages and also in my personal value for
> frame-title-format. ;P )

;-)




This bug report was last modified 7 days ago.

Previous Next


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