all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: Enhance word-based commands?
Date: 17 Jan 2003 14:53:42 +0100	[thread overview]
Message-ID: <5xr8bbyja1.fsf@kfs2.cua.dk> (raw)
In-Reply-To: <84y95km257.fsf@lucy.is.informatik.uni-duisburg.de>

kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes:

> Richard Stallman <rms@gnu.org> writes:
> 
> > You could implement an alternative set of word commands for those who
> > want them.
> 
> That's what I meant by it being a user option.
> 
> > I suggest giving these commands different names, and putting them in
> > a separate file as a minor mode.

That's my intention.

> 
> I was thinking about using the nifty remap feature that Kim has
> implemented for CUA mode.  Then interactively invoking word-based
> commands would exhibit the new behavior, whereas Lisp code would
> still see the same old behavior.

I definitely think this should be a minor mode -- even if it only 
remaps two commands:
  [remap kill-word]          => dynaword-kill-word
  [remap backward-kill-word] => dynaword-backward-kill-word

It can then be selectively turned on using mode hooks (or some modes
may turn it on unconditionally).

The fun thing about my "yank-function" functionality is that using
dynaword-kill-word can (silently) arrange for C-y to insert the killed
word(s) in a certain "non-trivial" way.

> 
> But let's wait for Kim's yank-word feature.  I think it might be
> better than what I had in mind (at least for part of the
> functionality).

Let's see :-)

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

  reply	other threads:[~2003-01-17 13:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-15 19:16 Enhance word-based commands? Kai Großjohann
2003-01-16  7:42 ` Kai Großjohann
2003-01-16 23:54 ` Kim F. Storm
2003-01-17 11:48   ` Kai Großjohann
2003-01-17 15:31     ` Andreas Schwab
2003-01-17  2:56 ` Miles Bader
2003-01-17 11:45   ` Kai Großjohann
2003-01-17  9:22 ` Richard Stallman
2003-01-17 11:44   ` Kai Großjohann
2003-01-17 13:53     ` Kim F. Storm [this message]
2003-01-19  2:18       ` Kim F. Storm
2003-01-19  1:35     ` Richard Stallman

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=5xr8bbyja1.fsf@kfs2.cua.dk \
    --to=storm@cua.dk \
    --cc=emacs-devel@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.