[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 11:11:03 -0500 (EST) |
User-agent: |
SquirrelMail/1.4.3a |
>> I like the idea, but returning a value from a hook is rather
>> inconvenient -- if there are multiple functions on the hook, which
>> value should you use eventually?
>
>> Perhaps before-kill-functions should get START, END and STRING
>> as arguments where STRING is the result of buffer-substring.
>
>> Each hook could then modify that string as they please.
>
> Fair enough.
Sorry, I'm probably missing something, but I don't understand how this
would work. Since each function would only be modifying their own local
STRING variable, not the one that will actually be killed... Unless it's
something like
[in kill-region]:
(let ((string (delete-and-extract-region beg end)))
(run-hook-with-args 'before-kill-functions beg end #'string)
...
Then the hook function would have to set the string by
(defun foo-function (symbol)
(set symbol "replacement string"))
But that would be ridiculously arcane.
- Re: require-hard-newlines to use newline, (continued)
- Re: require-hard-newlines to use newline, Richard Stallman, 2005/03/10
- Re: require-hard-newlines to use newline, Chong Yidong, 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, 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 <=
- 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, 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, Richard Stallman, 2005/03/12
- Re: require-hard-newlines to use newline, Stefan Monnier, 2005/03/12
- Re: require-hard-newlines to use newline, Richard Stallman, 2005/03/13
- Re: require-hard-newlines to use newline, Chong Yidong, 2005/03/13
- Re: require-hard-newlines to use newline, Richard Stallman, 2005/03/13
- Re: require-hard-newlines to use newline, Chong Yidong, 2005/03/13