From: Glenn Morris <rgm@gnu.org>
To: Jack Tanner <ihok@hotmail.com>
Cc: 4533@emacsbugs.donarmstrong.com
Subject: bug#4533: i can reproduce this
Date: Mon, 02 Nov 2009 03:11:16 -0500 [thread overview]
Message-ID: <nnskcxcpnf.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <BLU129-W14BCD575C7299DC571B593CAB40@phx.gbl> (Jack Tanner's message of "Sun, 1 Nov 2009 12:07:36 -0500")
tags 4533 =
stop
Jack Tanner wrote:
> - Start emacs -Q .
> - C-x C-f ~/foo.txt, creating a new file.
> - Enter text:
> Line 1
> Line 2
>
> - C-x C-s.
> - dos2unix ~/foo.txt
> - M-x revert-buffer
Thanks for the recipe. Saving the file was the missing step.
The issue seems to be that saving a file causes basic-save-buffer-1 to
set buffer-file-coding-system-explicit. Eg for me on GNU/Linux, it is
set to (iso-latin-1-unix). revert-buffer uses this to set
coding-system-for-read before it inserts the file contents. So the
change in line ending is ignored. If I manually set
buffer-file-coding-system-explicit to nil before reverting the buffer,
the change in line ending is noticed.
I don't know what the right fix is though.
next prev parent reply other threads:[~2009-11-02 8:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-01 17:07 bug#4533: i can reproduce this Jack Tanner
2009-11-02 8:11 ` Glenn Morris [this message]
2009-11-02 8:20 ` Processed: " Emacs bug Tracking System
2009-11-02 8:57 ` bug#4533: reverting fails to update line ending mode line Glenn Morris
2009-11-05 3:28 ` Glenn Morris
2009-11-05 4:18 ` Kenichi Handa
2009-11-05 18:47 ` Glenn Morris
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=nnskcxcpnf.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=4533@emacsbugs.donarmstrong.com \
--cc=ihok@hotmail.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).