[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Longlines and insert
From: |
Ryan Yeske |
Subject: |
Re: Longlines and insert |
Date: |
Tue, 15 Nov 2005 15:33:31 -0800 |
> 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))
I think (and as far as I understood, Chong Yidong does too) that this is
a welcoming message for future problems. You patch up a piece of code,
while there are hundreds other lisp files, many of which insert newlines,
some of which need to be hard. We probably need something generic. At
the very least we need a convenience function to create a newline-string
with the necessary properties already set, so we don't have to go over
the lines above each time.
Doesn't (newline) insert the right kind of newline based on the value
of `use-hard-newlines'?
Ryan
- Re: Longlines and insert, (continued)
- 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
- Re: Longlines and insert, Kevin Rodgers, 2005/11/17
- Re: Longlines and insert, Paul Pogonyshev, 2005/11/18
- Re: Longlines and insert, Richard M. Stallman, 2005/11/18
- Re: Longlines and insert,
Ryan Yeske <=
- Re: Longlines and insert, Chong Yidong, 2005/11/15
Re: Longlines and insert, Chong Yidong, 2005/11/15