From: martin rudalics <rudalics@gmx.at>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: 1039@emacsbugs.donarmstrong.com, Peter De Wachter <pdewacht@gmail.com>
Subject: bug#1039: 23.0.60; emacs forgets EOL convention after revert-buffer
Date: Wed, 08 Oct 2008 20:03:09 +0200 [thread overview]
Message-ID: <48ECF5DD.7020104@gmx.at> (raw)
In-Reply-To: <87iqs3oyg5.fsf@cyd.mit.edu>
> I don't understand the need for the revert-buffer-file-coding-system
> variable. Why doesn't last-coding-system-used work here?
I suppose it's because of the intelligent point preserving behavior of
`revert-buffer'. When buffer and file don't differ (modulo decoding)
nothing gets inserted. OTOH Handa kills `buffer-file-coding-system' in
`revert-buffer' since 2002 so the old value is lost and Emacs goes for
the default value instead. I don't understand though why the problem
became virulent only lately.
In any case it would be helpful if the OP tested whether my patch works
for him ;-)
martin
next prev parent reply other threads:[~2008-10-08 18:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-08 16:15 bug#1039: 23.0.60; emacs forgets EOL convention after revert-buffer Chong Yidong
2008-10-08 18:03 ` martin rudalics [this message]
2008-10-11 22:10 ` Peter De Wachter
2008-10-12 18:48 ` martin rudalics
2008-10-13 19:53 ` Peter De Wachter
-- strict thread matches above, loose matches on Subject: below --
2009-01-29 4:20 Kenichi Handa
2008-09-27 21:15 Peter De Wachter
2008-09-27 22:12 ` martin rudalics
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48ECF5DD.7020104@gmx.at \
--to=rudalics@gmx.at \
--cc=1039@emacsbugs.donarmstrong.com \
--cc=cyd@stupidchicken.com \
--cc=pdewacht@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).