[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
revert-buffer doesn't retest used line endings and simply keeps using th
From: |
Dirk Dierckx |
Subject: |
revert-buffer doesn't retest used line endings and simply keeps using the originally loaded one |
Date: |
Sat, 20 Nov 2004 13:33:20 +0100 |
User-agent: |
Mutt/1.5.6i |
Details:
i have a text file with DOS (CR/LF) line endings, when opening it in emacs,
emacs correctly detects the DOS line endings and saves of that buffer will
contain DOS line endings, but ...
if i convert the file (using dos2unix for example) to unix line endings and
afterwards do a revert-buffer in emacs it still assumes the file uses DOS line
endings, if i save this buffer, it will be saved using DOS line endings
(effectively undoing my dos2unix conversion)
Reproducible: Always
Steps to Reproduce:
see details
Actual Results:
see details
Expected Results:
revert-buffer should recheck the used line endings and don't assume the line
ending style didn't change
In GNU Emacs 21.3.50.1 (i686-pc-linux-gnu, GTK+ Version 2.4.9)
of 2004-11-11 on hypercube
Distributor `Gentoo Linux (The X.Org Foundation 6.8.0, revision r1-0.2.2.1)',
version 11.0.60800000
configured using `configure '--host=i686-pc-linux-gnu' '--prefix=/usr'
'--libexecdir=/usr/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info'
'--enable-debug' '--with-x' '--with-xpm' '--with-jpeg' '--with-tiff'
'--with-gif' '--with-png' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars'
'CC=gcc' 'host_alias=i686-pc-linux-gnu''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: nil
locale-coding-system: nil
default-enable-multibyte-characters: t
Major mode: Fundamental
Minor modes in effect:
show-paren-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
global-font-lock-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
<menu-bar> <help-menu> <report-emacs-bug>
Recent messages:
Loading emacsbug...done
pgpnQQ2UD2gmk.pgp
Description: PGP signature
- revert-buffer doesn't retest used line endings and simply keeps using the originally loaded one,
Dirk Dierckx <=