From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Opening typescript file in DOS mode?
Date: Mon, 14 Mar 2005 14:26:51 -0700 [thread overview]
Message-ID: <39mdstF638otdU2@individual.net> (raw)
In-Reply-To: <roy-99281B.09503013032005@reader1.panix.com>
Roy Smith wrote:
> 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?
,----[ C-h v auto-coding-regexp-alist RET ]
| auto-coding-regexp-alist's value is
| (("^BABYL OPTIONS:[ ]*-\\*-[ ]*rmail[ ]*-\\*-" . no-conversion))
|
|
| Documentation:
| Alist of patterns vs corresponding coding systems.
| Each element looks like (REGEXP . CODING-SYSTEM).
| A file whose first bytes match REGEXP is decoded by CODING-SYSTEM on
reading.
|
| The settings in this alist take priority over `coding:' tags
| in the file (see the function `set-auto-coding')
| and the contents of `file-coding-system-alist'.
|
| You can customize this variable.
|
| Defined in `international/mule'.
`----
--
Kevin Rodgers
prev parent reply other threads:[~2005-03-14 21:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-13 14:50 Opening typescript file in DOS mode? Roy Smith
2005-03-14 21:26 ` Kevin Rodgers [this message]
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=39mdstF638otdU2@individual.net \
--to=ihs_4664@yahoo.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.