all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joe <joesmoe10@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: kill-region defadvice
Date: Sun, 8 Jun 2008 18:23:24 -0700 (PDT)	[thread overview]
Message-ID: <298c594c-9af1-4456-b113-5ec715387c80@26g2000hsk.googlegroups.com> (raw)
In-Reply-To: barmar-9A2551.17185608062008@newsgroups.comcast.net

On Jun 8, 5:18 pm, Barry Margolin <barmar@alum.mit.edu> 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	other threads:[~2008-06-09  1:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-08  3:47 kill-region defadvice Joe
2008-06-08  9:10 ` Nikolaj Schumacher
2008-06-08 16:45   ` Kevin Rodgers
2008-06-08 19:56     ` Nikolaj Schumacher
2008-06-08 20:51       ` Kevin Rodgers
2008-06-09  8:25         ` Nikolaj Schumacher
2008-06-08 21:18 ` Barry Margolin
2008-06-09  1:23   ` Joe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=298c594c-9af1-4456-b113-5ec715387c80@26g2000hsk.googlegroups.com \
    --to=joesmoe10@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.