[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: require-hard-newlines to use newline
From: |
Chong Yidong |
Subject: |
Re: require-hard-newlines to use newline |
Date: |
Fri, 11 Mar 2005 04:10:03 -0500 (EST) |
User-agent: |
SquirrelMail/1.4.4 |
> The idea of the yank-handler text property is that certain kill
> strings are encoded specially, and need to be decoded when they are
> yanked. Maybe longlines could use this instead of a new hook for
> yanking.
It is possible to use the yank-handler property to remove the newlines
from longlines text when copying into other Emacs buffers; however, since
the newlines are copied onto the clipboard and X selection, they will show
up when the user does a paste in another application. So this is not a
good approach.
> Or maybe you could just use after-change-functions.
> Would that work?
The only way I can see for this to work is for the after-change function
to test this-command, which I think is not very robust.
So I guess the best solution is to have an encoding hook for kills, and a
decoding hook for yanks.
I also think we should wait till after the release before implementing
this (which hopefully shouldn't be a long wait...)
- Re: require-hard-newlines to use newline, (continued)
- Re: require-hard-newlines to use newline, Luc Teirlinck, 2005/03/08
- Re: require-hard-newlines to use newline, Chong Yidong, 2005/03/08
- Re: require-hard-newlines to use newline, Stefan Monnier, 2005/03/08
- Re: require-hard-newlines to use newline, Luc Teirlinck, 2005/03/08
- Re: require-hard-newlines to use newline, Stefan Monnier, 2005/03/08
- Re: require-hard-newlines to use newline, Luc Teirlinck, 2005/03/08
- Re: require-hard-newlines to use newline, Richard Stallman, 2005/03/08
- Re: require-hard-newlines to use newline, Chong Yidong, 2005/03/08
- Re: require-hard-newlines to use newline, Chong Yidong, 2005/03/09
- Re: require-hard-newlines to use newline, Richard Stallman, 2005/03/10
- Re: require-hard-newlines to use newline,
Chong Yidong <=
- Re: require-hard-newlines to use newline, Kim F. Storm, 2005/03/11
- Re: require-hard-newlines to use newline, Chong Yidong, 2005/03/11
- Re: require-hard-newlines to use newline, Stefan Monnier, 2005/03/11
- Re: require-hard-newlines to use newline, Kim F. Storm, 2005/03/11
- Re: require-hard-newlines to use newline, Chong Yidong, 2005/03/11
- Re: require-hard-newlines to use newline, Stefan Monnier, 2005/03/11
- Re: require-hard-newlines to use newline, Chong Yidong, 2005/03/11
- Re: require-hard-newlines to use newline, Stefan Monnier, 2005/03/11
- Re: require-hard-newlines to use newline, Chong Yidong, 2005/03/11
- Re: require-hard-newlines to use newline, Stefan Monnier, 2005/03/11