[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `mouse-save-then-kill' changes

From: Stefan Monnier
Subject: Re: `mouse-save-then-kill' changes
Date: Sun, 07 Nov 2010 22:38:54 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>> > Now (Emacs 24) I have to (a) duplicate all of the code of
>> > `mouse-save-then-kill', (b) replace the 3 lines that delete or kill
>> > the region by a call to `foobar', and (c) change references to
>> > `mouse-save-then-kill' within the new command to the new command
>> > name - e.g. places where the code checks `(eq last-command
>> > 'mouse-save-then-kill)'.
>> Maybe you can use buffer-substring-filters instead?
> Thanks for suggesting something.  But I don't really see how that var
> might fit in here.  Can you elaborate?

I obviously can't, since I don't know what you're actually doing.
This said, rather than ask us to write the code differently so that you
can override an internal function (which is likely to get
renamed/inlined/changed at some point in the future), I recommend you
ask for a hook instead.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]