unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Annoying ^M in text files
@ 2002-09-05 22:56 Boyan
  2002-09-06 14:06 ` kgold
  0 siblings, 1 reply; 4+ messages in thread
From: Boyan @ 2002-09-05 22:56 UTC (permalink / raw)


Hello,

could someone help me get rid off the end of line signs ^M that I see
when I open many text files? Is there an automatic configuration
line/command that could help me for a particular editing mode? I use
gnu-emacs 21.1.1 on linux. The same files seem to open right in xemacs
21.4 that I also have.

Regards,
Boyan.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Annoying ^M in text files
       [not found] <mailman.1031297345.15469.help-gnu-emacs@gnu.org>
@ 2002-09-06  7:56 ` Miles Bader
  0 siblings, 0 replies; 4+ messages in thread
From: Miles Bader @ 2002-09-06  7:56 UTC (permalink / raw)


Dmitri.Minaev@Samara.BritishCouncil.RU writes:
> Those files use ms-dog-style CR-LF line breaks. ... or open those
> files with a *-dos coding system (if your emacs is compiled with MULE
> support).

GNU Emacs is always compiled with Mule support, and it's supposed to
auto-detect MSDOS-style line-endings.

Either the files are screwed up in some way (a common reason is
_mixed_ MSDOS- and unix-style line-endings), or he found a bug.

The best thing to do is to post a file that exhibits this problem (being
careful to preserve the line-endings in the post, e.g use a mime-attachment.

-Miles
-- 
"I distrust a research person who is always obviously busy on a task."
   --Robert Frosch, VP, GM Research

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Annoying ^M in text files
@ 2002-09-06  8:31 Dmitri.Minaev
  0 siblings, 0 replies; 4+ messages in thread
From: Dmitri.Minaev @ 2002-09-06  8:31 UTC (permalink / raw)


Those files use ms-dog-style CR-LF line breaks. You can either use
'dos2unix' program to convert the line breaks to unix-style, or open those
files with a *-dos coding system (if your emacs is compiled with MULE
support).

--
With best regards,
Dmitri Minaev


> -----Original Message-----
> From: Boyan [mailto:bt@stw-bonn.de]
> Sent: Thursday, September 05, 2002 11:57 PM
> To: help-gnu-emacs@gnu.org
> Subject: Annoying ^M in text files
> 
> 
> Hello,
> 
> could someone help me get rid off the end of line signs ^M that I see
> when I open many text files? Is there an automatic configuration
> line/command that could help me for a particular editing mode? I use
> gnu-emacs 21.1.1 on linux. The same files seem to open right in xemacs
> 21.4 that I also have.
> 
> Regards,
> Boyan.
> 
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Annoying ^M in text files
  2002-09-05 22:56 Annoying ^M in text files Boyan
@ 2002-09-06 14:06 ` kgold
  0 siblings, 0 replies; 4+ messages in thread
From: kgold @ 2002-09-06 14:06 UTC (permalink / raw)



The ^M is part of a DOS style end-of-line.  Probably, the file was
originally created on a DOS system.

Typically, emacs detects a DOS end-of-line and doesn't show the ^M.
Perhaps there is something in your .emacs which is turning off this
feature.

If you want to actually remove the ^M (not just hide them), I
recommend eol-conversion.el.

Boyan <bt@stw-bonn.de> writes:
> 
> could someone help me get rid off the end of line signs ^M that I see
> when I open many text files? Is there an automatic configuration
> line/command that could help me for a particular editing mode? I use
> gnu-emacs 21.1.1 on linux. The same files seem to open right in xemacs
> 21.4 that I also have.

-- 
-- 
Ken Goldman   kgold@watson.ibm.com   914-784-7646

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-09-06 14:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-05 22:56 Annoying ^M in text files Boyan
2002-09-06 14:06 ` kgold
     [not found] <mailman.1031297345.15469.help-gnu-emacs@gnu.org>
2002-09-06  7:56 ` Miles Bader
  -- strict thread matches above, loose matches on Subject: below --
2002-09-06  8:31 Dmitri.Minaev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).