bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

revert buffer does not change text file format (DOS, UNIX, etc)


From: Miguel Frasson
Subject: revert buffer does not change text file format (DOS, UNIX, etc)
Date: Wed, 6 Aug 2003 12:23:25 +0200 (MEST)

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.2.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2002-08-29 on astest
configured using `configure  --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu 
--target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr 
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc 
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib 
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com 
--mandir=/usr/share/man --infodir=/usr/share/info --with-gcc --with-pop 
--with-sound'
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: en_US
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

I had a (.tex) text file that was in DOS format (EOL is CRLF). When I open
the file in emacs, I saw (DOS) in the status bar. On the terminal, I
converted the file with program dos2unix (I wanted the file in this
format). Back in emacs, I reverted the buffer, but the (DOS) status
stayed. I exited emacs and opened the same file again, now *without* the
(DOS) on the status bar.

TO provide complete bug report, if I open file with DOS format on emacs,
convert to unix, revert (status line does not change), convert again to
DOS, revert again, then there is no change on status line in the whole
process. 

Even more weird if I do the other way around. If I open with emacs a text
file in unix format, then on terminal I convert it to dos format and I
revert buffer, then the extra "..." (problably the carriage return
character) appear in every end-of-line. Converting to unix again and
reverting brings the file to "normal" state (no (DOS) on status line and
without "..." on every EOL).


Recent input:
<down-mouse-1> <mouse-1> C-x C-f l a <backspace> <backspace> 
m a t h / l a r g e . t e x <return> <down-mouse-1> 
<mouse-1> <f9> y e s <return> <down-mouse-1> <mouse-1> 
<f9> y e s <return> C-x k <return> <down-mouse-1> <mouse-1> 
C-x C-f m a t h / l a r g e . t e x <return> <down-mouse-1> 
<mouse-1> <f9> y e s <return> <down-mouse-1> <mouse-1> 
<f9> y e s <return> <down-mouse-3> <mouse-3> C-x 1 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar> 
<help-menu> <report-emacs-bug>

Recent messages:
Updating environment menu...
Sorting 
Removing duplicates... done
Updating modify environment menu...
Updating...done
Loading mule-diag...
Loading codepage...done
Loading mule-diag...done
Loading view...done
Loading emacsbug...done




reply via email to

[Prev in Thread] Current Thread [Next in Thread]