[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Longlines and insert
From: |
Chong Yidong |
Subject: |
Re: Longlines and insert |
Date: |
Tue, 15 Nov 2005 21:55:54 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
> Maybe longlines-mode could provide a variable
> "longlines-inserted-LF-are-hard" and then use it in an
> after-change-functions hook to mark all inserted LF as hard when that
> variable is non-nil.
>
> I'd guess that the variable should be non-nil by default and only bound to
> nil at a few specific spots, hopefully all of them in longlines.el.
The problem with using an after-change-function is that the function
is only told that the text was changed in a particular region, not
what the change was. There is no way to tell whether a soft newline
encountered in that region is a legit soft newline, or one produced by
an (insert "foo\n") call.
- 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 <=
- 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, 2005/11/15
- Re: Longlines and insert, Chong Yidong, 2005/11/15