GNU bug report logs - #51740
27.2; find-file-literally doesn't respect saveplace-mode

Previous Next

Package: emacs;

Reported by: Scott Otterson <scotto <at> sharpleaf.org>

Date: Wed, 10 Nov 2021 04:00:01 UTC

Severity: normal

Found in version 27.2

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Scott Otterson <scotto <at> sharpleaf.org>
Cc: 51740 <at> debbugs.gnu.org
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 <at> 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.




This bug report was last modified 3 years and 189 days ago.

Previous Next


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