Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]DOS/Mac/Unix Newlines . . . . . . . . (Re: [tlug] More joy with MMM Mode in XEmacs)
- Date: Tue, 19 Jun 2007 11:14:14 +0900
- From: "Stephen J. Turnbull" <stephen@example.com>
- Subject: DOS/Mac/Unix Newlines . . . . . . . . (Re: [tlug] More joy with MMM Mode in XEmacs)
- References: <d8fcc0800706180213u7686340bof767ab7554cbe640@mail.gmail.com> <20070618134123.624ed8b8.jep200404@columbus.rr.com>
Jim writes: > tr '\015' '\012' Whether this is a good idea depends on whether he's going to send the (modified) file back to the original author. BTW, it occurred to me that there is one situation where Emacs will use CR to separate lines, and that's in leaf-hiding modes like outline-mode and hideif. The CR tells redisplay to ignore the CR itself, and everything up to the next line break. Ie, a buffer containing Header<CR>Line 1<CR>Line2<LF> will appear in the editor window as Header while Header<LF>Line 1<LF>Line2<LF> will appear in the editor window as Header Line 1 Line 2 Normally Emacs will save such a buffer to a file *only after converting the <CR>s to <LF>s*, but in certain circumstances (autosaves, crash recovery) I suppose that might not happen. Of course this is a horrible hack, but I believe it goes way back to the TECO version.
- Follow-Ups:
- References:
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] lesser kernel rpm install
- Next by Date: Re: [tlug] More joy with MMM Mode in XEmacs
- Previous by thread: DOS/Mac/Unix Newlines . . . . . . . . (Re: [tlug] More joy with MMM Mode in XEmacs)
- Next by thread: Re: DOS/Mac/Unix Newlines . . . . . . . . (Re: [tlug] More joy with MMM Mode in XEmacs)
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links