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

From: Eli Zaretskii <[email-masked]>
Date: Wed, 10 Nov 2021 15:27:52 +0200

> From: Scott Otterson <[email-masked]>
> 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.