[Top][All Lists]
[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
- Longlines and insert, Chong Yidong, 2005/11/14
- Re: Longlines and insert, Kevin Rodgers, 2005/11/15
- Re: Longlines and insert, Paul Pogonyshev, 2005/11/15
- Re: Longlines and insert, Kevin Rodgers, 2005/11/15
- Re: Longlines and insert, Stefan Monnier, 2005/11/15
- Re: Longlines and insert, Chong Yidong, 2005/11/15
- Re: Longlines and insert, Stefan Monnier, 2005/11/15
- Re: Longlines and insert, Richard M. Stallman, 2005/11/16
- Re: Longlines and insert, Chong Yidong, 2005/11/16
- Re: Longlines and insert, Kevin Rodgers, 2005/11/17
- Re: Longlines and insert, Paul Pogonyshev, 2005/11/17