bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62413: 29.0.60; [PATCH] save-place-mode cannot restore saved positio


From: Eli Zaretskii
Subject: bug#62413: 29.0.60; [PATCH] save-place-mode cannot restore saved position
Date: Tue, 28 Mar 2023 15:03:20 +0300

> From: Liu Hui <liuhui1610@gmail.com>
> Date: Tue, 28 Mar 2023 13:56:05 +0800
> Cc: 62413@debbugs.gnu.org
> 
> Eli Zaretskii <eliz@gnu.org> 于2023年3月26日周日 13:20写道:
> 
> > Ugh!  This feature was not thought out well enough when it was
> > introduced: if the user changes the value half-way through a session,
> > the history will record visited files twice, under 2 different
> > file-name formats and with different places recorded.  I think
> > changing the value of save-place-abbreviate-file-names should rewrite
> > the entire alist in the selected format.
> 
> I agree that it is better to avoid mixed file name formats, and then
> save-place-find-file-hook can be fixed simply. The difficult part is
> how to rewrite save-place-alist automatically.

Isn't it just a matter of going through the list and calling
abbreviate-file-name on each file name there?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]