help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some functions I hope are useful for others to


From: Pascal J. Bourguignon
Subject: Re: Some functions I hope are useful for others to
Date: Thu, 24 Dec 2009 00:34:10 +0100
User-agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.3 (gnu/linux)

Cecil Westerhof <Cecil@decebal.nl> writes:

> pjb@informatimago.com (Pascal J. Bourguignon) writes:
>
>> buffer-delete-lines --> kill-line
>
> Not complete. My buffer-delete-lines delete the complete line from the
> beginning, kill-line does it from the cursor position.
>
>> buffer-to-unix --> universal-coding-system-argument
>>                    set-default-coding-systems
>>                    etc.
>>
>> More precisely, when you load a file with DOS line termination, then
>> you get a (DOS) in the status line, and lines in the buffer (there's
>> no RET in the buffer!).  When you save a buffer (C-x C-s), it's saved
>> with the same line termination.  When you write out the buffer (C-x
>> C-w), the default-coding-systems are used, so if you specify a unix
>> coding system there, it will be saved as a unix text file.
>
> This works also when there are lines of all three types? And with my
> function you get immediately rid of those ^M at the end of the line.

What?  You have files with mixed newlines?  Eeerk!   ;-)

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
You're always typing.
Well, let's see you ignore my
sitting on your hands.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]