help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: kill-region defadvice


From: Joe
Subject: Re: kill-region defadvice
Date: Sun, 8 Jun 2008 18:23:24 -0700 (PDT)
User-agent: G2/1.0

On Jun 8, 5:18 pm, Barry Margolin <address@hidden> wrote:

> I assume you only want this special behavior when the command is bound
> to C-w, because the "w" means "word" to you (was this the kill-word
> command in some other editor you've used in the past?).  But if you use
> defadvice, your advice will be obeyed even if the command were on some
> other key.  Or if a function used (call-interactively 'kill-region).
>
> So I think it would be better to write a new function, and bind C-w to
> that.


I like C-w because it's easy to type and works in a bash shell.

Thanks for all the tips, I understand the potential usability
problems, so I think I'll stick with writing an extra function and
binding that to C-w.

Cheers,
Joe


reply via email to

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