emacs-devel
[Top][All Lists]
Advanced

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

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


From: tomas
Subject: Re: `mouse-save-then-kill' changes
Date: Mon, 8 Nov 2010 10:11:02 +0100
User-agent: Mutt/1.5.15+20070412 (2007-04-11)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, Nov 07, 2010 at 08:42:01PM -0800, Drew Adams wrote:
> > I obviously can't, since I don't know what you're actually doing.

[...]

> I don't see how a hook would help, since I want to do something other than, 
> not
> something in addition to, deleting/killing the region.

I can see how a hook would help here: to the programmers of the "layer
below" it signals. "careful, the user is supposed to change
functionality here". Whereas your approach of flet-binding a function,
while cute, would prevent changing any innards of Emacs for the fear of
breaking some hack as this. I can understand that that does not fly.

A hook -- why not? When the hook is there, don't run those three lines
of code. Or more flexible: use an "abnormal hook" and decide depending
on the return value of the hook function(s) (they tell the lower layer
"I've taken care of this" vs. "Do your own default thing").

Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFM176lBcgs9XrR2kYRArrfAJoDPC9JzUp6WFE8VAAEm4Z2dFgNbgCcCmG2
3qgI7uTy+VyPSNC+7UNmT+U=
=N48m
-----END PGP SIGNATURE-----



reply via email to

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