emacs-devel
[Top][All Lists]
Advanced

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

Re: Longlines and insert


From: Kim F. Storm
Subject: Re: Longlines and insert
Date: Tue, 15 Nov 2005 23:24:38 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Paul Pogonyshev <address@hidden> writes:

>> Which I think could be fixed like this:
>> 
>> (let ((hard-newline "\n"))
>>    ;; see set-hard-newline-properties:
>>    (put-text-property 0 1 'hard t hard-newline)
>>    (put-text-property 0 1 'rear-nonsticky '(hard) hard-newline)
>>    ...
>>    (insert header hard-newline))

We could put a generic definition into subr.el
which could then be used by any code needing a hard newline.

(defconst hard-newline
          (propertize "\n"
          'hard t 'rear-nonsticky '(hard)))

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

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