unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* revert-buffer and changes in encoding
@ 2004-11-29  6:12 Richard Stallman
  2005-05-17 14:02 ` Evil Boris
  0 siblings, 1 reply; 11+ messages in thread
From: Richard Stallman @ 2004-11-29  6:12 UTC (permalink / raw)


We have had discussions in the past about how revert-buffer
should deal with encoding.  I think this statement, by Stefan,
is the right thing to do:

    Looks like we should remember whether the current coding-system was
    automatically inferred or whether it was explicitly specified.
    Of course, we need to remember it separatly for the line-ending part
    of the coding-system.

If the file was originally visited with a specified coding system,
revert-buffer should keep on using that specified coding system.  If
the file coding system was autodetected before, revert-buffer should
autodetect it again, and it should set buffer-file-coding-system again
so that saving the buffer uses the most recent coding system.

Setting this flag to record whether the coding system was explicitly
specified is easy to do in Finsert_buffer.  It should only set this
flag when the VISIT argument specifies visiting a file.

Can someone please implement this, and ack to me?

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-05-17 14:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <E1Cgi5j-0007hF-AI@fencepost.gnu.org>
2004-12-30 12:44 ` revert-buffer and changes in encoding Kenichi Handa
2004-12-30 20:59   ` Richard Stallman
2004-12-30 23:52     ` Kenichi Handa
2005-01-01  5:24       ` Richard Stallman
2005-01-01 21:28       ` Stefan
2005-01-05  1:18         ` Kenichi Handa
2005-01-05  1:34           ` Miles Bader
2005-01-05  4:23             ` Kenichi Handa
2005-01-05 20:07           ` Richard Stallman
2004-11-29  6:12 Richard Stallman
2005-05-17 14:02 ` Evil Boris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).