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

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

bug#51740: 27.2; find-file-literally doesn't respect saveplace-mode


From: Eli Zaretskii
Subject: bug#51740: 27.2; find-file-literally doesn't respect saveplace-mode
Date: Wed, 10 Nov 2021 15:27:52 +0200

> From: Scott Otterson <scotto@sharpleaf.org>
> Date: Tue, 9 Nov 2021 19:06:52 -0800
> 
> The simplest way to make this better is to not allow find-file-literally to 
> change the save-place-mode state.

I think this is the only solution.

> Better would be if it opened the file at the same cursor position as would 
> find-file, and upon exit, appropriately
> set the save-place-mode state.

That's not really possible, since find-file-literally reads the file
into a buffer in a way that can completely change the relation between
the buffer position and the corresponding file byte offset -- due to
decoding of text and other transformations that affect this.





reply via email to

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