From: Miguel Frasson <frasson@math.leidenuniv.nl>
Subject: revert buffer does not change text file format (DOS, UNIX, etc)
Date: Wed, 6 Aug 2003 12:23:25 +0200 (MEST) [thread overview]
Message-ID: <20030806102325.8EEAD2F86@enquist.math.leidenuniv.nl> (raw)
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
next reply other threads:[~2003-08-06 10:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-06 10:23 Miguel Frasson [this message]
2003-08-06 19:51 ` revert buffer does not change text file format (DOS, UNIX, etc) Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030806102325.8EEAD2F86@enquist.math.leidenuniv.nl \
--to=frasson@math.leidenuniv.nl \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.