GNU bug report logs - #75775
30.0.93; [PATCH] Restore the old behavior of `bookmark-write-file'

Previous Next

Package: emacs;

Reported by: Zhengyi Fu <i <at> fuzy.me>

Date: Thu, 23 Jan 2025 05:47:02 UTC

Severity: wishlist

Tags: patch

Found in version 30.0.93

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 75775 in the body.
You can then email your comments to 75775 AT debbugs.gnu.org in the normal way.

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#75775; Package emacs. (Thu, 23 Jan 2025 05:47:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Zhengyi Fu <i <at> fuzy.me>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 23 Jan 2025 05:47:02 GMT) Full text and rfc822 format available.

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

From: Zhengyi Fu  <i <at> fuzy.me>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.93; [PATCH] Restore the old behavior of `bookmark-write-file'
Date: Thu, 23 Jan 2025 13:45:11 +0800
[Message part 1 (text/plain, inline)]
`pp' now defaults to fill the code to fit in `fill-column', which is
great.  However, this changed the bookmark format and made it less
human-readable and unfriendly to version control.   This small patch
restores the old behavior of `bookmark-write-file'.

[0001-Restore-the-old-behavior-of-bookmark-write-file.patch (text/x-diff, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#75775; Package emacs. (Thu, 23 Jan 2025 17:53:03 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: Zhengyi Fu <i <at> fuzy.me>, "75775 <at> debbugs.gnu.org" <75775 <at> debbugs.gnu.org>
Subject: RE: [External] : bug#75775: 30.0.93; [PATCH] Restore the old behavior
 of `bookmark-write-file'
Date: Thu, 23 Jan 2025 17:52:24 +0000
> `pp' now defaults to fill the code to fit in `fill-column', which is
> great.  However, this changed the bookmark format and made it less
> human-readable and unfriendly to version control.   This small patch
> restores the old behavior of `bookmark-write-file'.

1. Thanks for reporting this.

2. Seriously?  pp.el now has a function named
"pp-28"?  And the (only? best?) way to prevent
filling and obtain the longstanding behavior is
to bind `pp-default-function' to `pp-28'?  What
kind of progress is this?

What happened to adding new behavior as optional?

PP _defaults_ to filling now?  Since when does
pretty-printing, in general, imply filling?




Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Sat, 25 Jan 2025 00:19:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#75775; Package emacs. (Sat, 25 Jan 2025 11:01:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Zhengyi Fu <i <at> fuzy.me>, Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 75775 <at> debbugs.gnu.org
Subject: Re: bug#75775: 30.0.93;
 [PATCH] Restore the old behavior of `bookmark-write-file'
Date: Sat, 25 Jan 2025 13:00:03 +0200
> From: Zhengyi Fu  <i <at> fuzy.me>
> Date: Thu, 23 Jan 2025 13:45:11 +0800
> 
> `pp' now defaults to fill the code to fit in `fill-column', which is
> great.  However, this changed the bookmark format and made it less
> human-readable and unfriendly to version control.   This small patch
> restores the old behavior of `bookmark-write-file'.

I'm not sure we should use such kludges just because the new default
changes the whitespace.  But if we do make any changes, we should do
it ASAP, since the change in pp's behavior was introduced in Emacs 30.

Stefan, WDYT?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#75775; Package emacs. (Sat, 25 Jan 2025 11:46:02 GMT) Full text and rfc822 format available.

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

From: Ship Mints <shipmints <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Zhengyi Fu <i <at> fuzy.me>, 75775 <at> debbugs.gnu.org,
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#75775: 30.0.93;
 [PATCH] Restore the old behavior of `bookmark-write-file'
Date: Sat, 25 Jan 2025 06:43:51 -0500
[Message part 1 (text/plain, inline)]
On Sat, Jan 25, 2025 at 6:01 AM Eli Zaretskii <eliz <at> gnu.org> wrote:

> > From: Zhengyi Fu  <i <at> fuzy.me>
> > Date: Thu, 23 Jan 2025 13:45:11 +0800
> >
> > `pp' now defaults to fill the code to fit in `fill-column', which is
> > great.  However, this changed the bookmark format and made it less
> > human-readable and unfriendly to version control.   This small patch
> > restores the old behavior of `bookmark-write-file'.
>
> I'm not sure we should use such kludges just because the new default
> changes the whitespace.  But if we do make any changes, we should do
> it ASAP, since the change in pp's behavior was introduced in Emacs 30.
>
> Stefan, WDYT?
>

(I know you meant one of the other 200 Stefans Stevens Stephans Stephanes)

I often hand edit my bookmark files due to one of the packages I help
maintain that relies on bookmarks.

I prefer easier to harder and I prefer the original format.

-Stephane
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#75775; Package emacs. (Sat, 25 Jan 2025 12:15:02 GMT) Full text and rfc822 format available.

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

From: Ship Mints <shipmints <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Zhengyi Fu <i <at> fuzy.me>, 75775 <at> debbugs.gnu.org,
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#75775: 30.0.93;
 [PATCH] Restore the old behavior of `bookmark-write-file'
Date: Sat, 25 Jan 2025 07:13:04 -0500
[Message part 1 (text/plain, inline)]
Aha, I spoke to soon about Tramp. Looks like someone put in (non-essential
t) so that takes care of that.

In any case, it seems would be better would be to defer the translation
work rather than do it in the defcustom.

On Sat, Jan 25, 2025 at 6:43 AM Ship Mints <shipmints <at> gmail.com> wrote:

> On Sat, Jan 25, 2025 at 6:01 AM Eli Zaretskii <eliz <at> gnu.org> wrote:
>
>> > From: Zhengyi Fu  <i <at> fuzy.me>
>> > Date: Thu, 23 Jan 2025 13:45:11 +0800
>> >
>> > `pp' now defaults to fill the code to fit in `fill-column', which is
>> > great.  However, this changed the bookmark format and made it less
>> > human-readable and unfriendly to version control.   This small patch
>> > restores the old behavior of `bookmark-write-file'.
>>
>> I'm not sure we should use such kludges just because the new default
>> changes the whitespace.  But if we do make any changes, we should do
>> it ASAP, since the change in pp's behavior was introduced in Emacs 30.
>>
>> Stefan, WDYT?
>>
>
> (I know you meant one of the other 200 Stefans Stevens Stephans Stephanes)
>
> I often hand edit my bookmark files due to one of the packages I help
> maintain that relies on bookmarks.
>
> I prefer easier to harder and I prefer the original format.
>
> -Stephane
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#75775; Package emacs. (Sat, 25 Jan 2025 12:19:01 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Zhengyi Fu <i <at> fuzy.me>, 75775 <at> debbugs.gnu.org
Subject: Re: bug#75775: 30.0.93; [PATCH] Restore the old behavior of
 `bookmark-write-file'
Date: Sat, 25 Jan 2025 07:18:43 -0500
> I'm not sure we should use such kludges just because the new default
> changes the whitespace.  But if we do make any changes, we should do
> it ASAP, since the change in pp's behavior was introduced in Emacs 30.
>
> Stefan, WDYT?

No specific opinion.  My understanding is that we should introduce some
kind of `pp-fast` function, but in the mean time hacks like this patch
seem fine to me.


        Stefan





Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 25 Jan 2025 14:00:02 GMT) Full text and rfc822 format available.

Notification sent to Zhengyi Fu <i <at> fuzy.me>:
bug acknowledged by developer. (Sat, 25 Jan 2025 14:00:03 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: i <at> fuzy.me, 75775-done <at> debbugs.gnu.org
Subject: Re: bug#75775: 30.0.93; [PATCH] Restore the old behavior of
 `bookmark-write-file'
Date: Sat, 25 Jan 2025 15:59:13 +0200
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: Zhengyi Fu <i <at> fuzy.me>,  75775 <at> debbugs.gnu.org
> Date: Sat, 25 Jan 2025 07:18:43 -0500
> 
> > I'm not sure we should use such kludges just because the new default
> > changes the whitespace.  But if we do make any changes, we should do
> > it ASAP, since the change in pp's behavior was introduced in Emacs 30.
> >
> > Stefan, WDYT?
> 
> No specific opinion.  My understanding is that we should introduce some
> kind of `pp-fast` function, but in the mean time hacks like this patch
> seem fine to me.

Thanks, installed on the emacs-30 branch, and closing the bug.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#75775; Package emacs. (Sat, 25 Jan 2025 23:11:02 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: Ship Mints <shipmints <at> gmail.com>, Eli Zaretskii <eliz <at> gnu.org>
Cc: Zhengyi Fu <i <at> fuzy.me>, "75775 <at> debbugs.gnu.org" <75775 <at> debbugs.gnu.org>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: RE: [External] : bug#75775: 30.0.93; [PATCH] Restore the old behavior
 of `bookmark-write-file'
Date: Sat, 25 Jan 2025 23:10:30 +0000
> I often hand edit my bookmark files due to one of
> the packages I help maintain that relies on bookmarks.
>
> I prefer easier to harder and I prefer the original format.

+1.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 23 Feb 2025 12:24:17 GMT) Full text and rfc822 format available.

This bug report was last modified 18 days ago.

Previous Next


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