From: Roy Smith <roy@panix.com>
Subject: Opening typescript file in DOS mode?
Date: Sun, 13 Mar 2005 09:50:30 -0500 [thread overview]
Message-ID: <roy-99281B.09503013032005@reader1.panix.com> (raw)
On unix, files normally have newlines as line terminators. But, if you run
the "script" command, you end up with CR-NL pairs, because it's grabbing
the raw terminal output.
If I open the resulting typescript file in emacs, I see all the ^M's at the
ends of lines (not fatal, but annoying). Emacs will automatically open
CR-NL files in DOS mode, but the first line ("Script started on Sun Mar 13
08:59:06 2005") only has the raw newline, which seems to make emacs think
it's a normal unix text file.
I can force emacs to open the file in DOS mode interactively (C-X RET c dos
RET C-X C-F typescript RET), but that's a pain. Is there any way to get
emacs to read past the first line when deciding which mode to open the file
with?
next reply other threads:[~2005-03-13 14:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-13 14:50 Roy Smith [this message]
2005-03-14 21:26 ` Opening typescript file in DOS mode? Kevin Rodgers
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=roy-99281B.09503013032005@reader1.panix.com \
--to=roy@panix.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 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.