From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Enhance word-based commands? Date: 17 Jan 2003 14:53:42 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <5xr8bbyja1.fsf@kfs2.cua.dk> References: <84el7edy18.fsf@lucy.is.informatik.uni-duisburg.de> <84y95km257.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1042808588 13771 80.91.224.249 (17 Jan 2003 13:03:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 17 Jan 2003 13:03:08 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18ZW9J-0003Zw-00 for ; Fri, 17 Jan 2003 14:03:05 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18ZWIk-0005Se-00 for ; Fri, 17 Jan 2003 14:12:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ZW58-0001hH-08 for emacs-devel@quimby.gnus.org; Fri, 17 Jan 2003 07:58:46 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18ZW3w-0000at-00 for emacs-devel@gnu.org; Fri, 17 Jan 2003 07:57:32 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18ZW3V-0008O0-00 for emacs-devel@gnu.org; Fri, 17 Jan 2003 07:57:06 -0500 Original-Received: from mail.filanet.dk ([195.215.206.179]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ZW0p-0005aC-00; Fri, 17 Jan 2003 07:54:19 -0500 Original-Received: from kfs2.cua.dk.cua.dk (kfs2.local.filanet.dk [192.168.1.182]) by mail.filanet.dk (Postfix) with SMTP id 21E737C012; Fri, 17 Jan 2003 13:54:18 +0100 (CET) Original-To: kai.grossjohann@uni-duisburg.de (=?iso-8859-1?q?Kai_Gro=DFjohann?=) In-Reply-To: <84y95km257.fsf@lucy.is.informatik.uni-duisburg.de> Original-Lines: 41 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-cc: rms@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10806 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10806 kai.grossjohann@uni-duisburg.de (Kai Gro=DFjohann) writes: > Richard Stallman writes: >=20 > > You could implement an alternative set of word commands for those who > > want them. >=20 > That's what I meant by it being a user option. >=20 > > I suggest giving these commands different names, and putting them in > > a separate file as a minor mode. That's my intention. >=20 > 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=20 remaps two commands: [remap kill-word] =3D> dynaword-kill-word [remap backward-kill-word] =3D> 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. >=20 > 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 :-) --=20 Kim F. Storm http://www.cua.dk