unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: Miles Bader <miles@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Interactive hat.
Date: Fri, 27 Mar 2009 02:43:26 +0900	[thread overview]
Message-ID: <87fxh0xjr5.fsf@xemacs.org> (raw)
In-Reply-To: <87skl0mhoq.fsf@catnip.gol.com>

Miles Bader writes:
 > "Stephen J. Turnbull" <stephen@xemacs.org> writes:

 > > In XEmacs [...] "shifted motion selects" is a property of the
 > > key, not of the command nor of its name.
 > 
 > Er, so if I rebind "C-f" to some command in my mode which is completely
 > unrelated to the default binding, does it still inherit the default
 > shifted-select feature?!

No, because by default C-f isn't in the list.  The default list
contains the arrow keys and the motion keys on the keypad, along with
certain combinations of those keys with other modifiers.

So let's talk about rebinding 'right instead.  If by "unrelated" you
mean "not a motion command", then the answer is "yes, but you'll never
know the difference."  If by "unrelated" you mean something else
(what?), the answer is "yes, and the difference is observable if and
only if the new binding is a motion command".

 > What if I rebind some other key to "forward-char"?  Does that new
 > binding then lack shifted-select?

Yes.  In fact, if (as is most probably the case) you have both 'right
and C-f bound to `forward-char', then (by default) 'right has the
property and C-f does not.

 > [If so -- wacky...]

Only because you buy in to Stefan's notion that this is a property of
the command rather than of the key binding.  But talk about wacky
hacks! if it's a property of the command, why does the command need to
inspect the key binding to figure out what to do?  If taken seriously,
that implies Alan's right about defining a separate motion command
with shift-motion-selects behavior.

BTW, this was a key[sic] strategy to get shifted-motion-selects past
Ye Olde Guard who detested CUA.  Ye Olde Guard don't use no steenkin'
arrows (IIRC some versions of the Happy Hacker keyboard don't have
arrows at all).  It doesn't bother the Windows Volk either, since they
are usually a bit upset that C-f doesn't invoke Find. ;-)

Cheers!




  reply	other threads:[~2009-03-26 17:43 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20090323223703.GA5650@muc.de>
     [not found] ` <jwvfxh392k9.fsf-monnier+emacsbugreports@gnu.org>
     [not found]   ` <20090324135210.GA4657@muc.de>
     [not found]     ` <jwvzlfacrk0.fsf-monnier+emacsbugreports@gnu.org>
2009-03-25 10:16       ` Interactive hat. [Was: CUA-like stuff spuriously enables transient-mark-mode] Alan Mackenzie
2009-03-25 10:30         ` Interactive hat Miles Bader
2009-03-25 10:53           ` Alan Mackenzie
2009-03-25 11:03             ` Lennart Borgman
2009-03-25 14:24               ` Alan Mackenzie
2009-03-26 11:29               ` Alan Mackenzie
2009-03-25 14:59             ` Miles Bader
2009-03-26 11:51               ` Alan Mackenzie
2009-03-26 12:14                 ` David Kastrup
2009-03-26 12:51                   ` Alan Mackenzie
2009-03-26 13:48                 ` Stefan Monnier
2009-03-26 14:33                   ` Alan Mackenzie
2009-03-26 16:30                     ` Stefan Monnier
2009-03-26 16:45                       ` Alan Mackenzie
2009-03-26 18:57                         ` Stefan Monnier
2009-03-29  0:44                           ` Kim F. Storm
2009-03-29  1:40                             ` Miles Bader
2009-03-29  2:02                               ` Lennart Borgman
2009-03-26 14:47                   ` Stephen J. Turnbull
2009-03-26 15:23                     ` Miles Bader
2009-03-26 17:43                       ` Stephen J. Turnbull [this message]
2009-03-25 16:18           ` Stefan Monnier
2009-03-25 11:26         ` Interactive hat. [Was: CUA-like stuff spuriously enables transient-mark-mode] Juanma Barranquero
2009-03-25 13:20           ` Interactive hat Chong Yidong
2009-03-25 14:19           ` Interactive hat. [Was: CUA-like stuff spuriously enables transient-mark-mode] Alan Mackenzie
2009-03-25 16:41             ` Juanma Barranquero
2009-03-26 12:44               ` Alan Mackenzie
2009-03-26 13:50                 ` Interactive hat Stefan Monnier
2009-03-26 15:27                   ` Alan Mackenzie
2009-03-26 17:09                     ` Stefan Monnier
2009-03-26 19:06                       ` Alan Mackenzie
2009-03-26 21:18                         ` Stefan Monnier
2009-03-26 22:32                           ` Johan Bockgård
2009-03-26 23:34                             ` Alan Mackenzie
2009-03-26 23:32                           ` Alan Mackenzie
2009-03-27  2:50                             ` Stefan Monnier
2009-03-27 11:15                               ` Alan Mackenzie
2009-04-13 19:32                               ` Interactive hat. (Patch) Alan Mackenzie
2009-04-13 20:47                                 ` Eli Zaretskii
2009-04-14 20:15                                   ` Alan Mackenzie
2009-04-14 20:47                                     ` Eli Zaretskii
     [not found]                                   ` <20090423205030.GA2723@muc.de>
2009-04-24 13:38                                     ` Interactive hat. (Patch V2) Eli Zaretskii
2009-04-27 11:46                                       ` Alan Mackenzie
2009-04-27 18:39                                         ` Eli Zaretskii
2009-04-28 22:33                                           ` Alan Mackenzie
2009-04-29  7:22                                             ` Eli Zaretskii
2009-04-29 11:36                                               ` Alan Mackenzie
2009-04-29 13:13                                                 ` Eli Zaretskii
2009-05-07 19:14                                                   ` Stefan Monnier
2009-04-28  0:14                                         ` Karl Berry
2009-04-28  1:12                                           ` Miles Bader
2009-04-28  7:55                                             ` Eli Zaretskii
2009-04-28 21:44                                             ` Alan Mackenzie
2009-04-28 21:39                                           ` Alan Mackenzie
2009-04-13 22:50                                 ` Interactive hat. (Patch) Miles Bader
2009-04-14 20:22                                   ` Alan Mackenzie
2009-04-14 20:49                                     ` Eli Zaretskii
2009-04-15  8:29                                       ` Stephen J. Turnbull
2009-03-27  0:20 Interactive hat naesten

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87fxh0xjr5.fsf@xemacs.org \
    --to=stephen@xemacs.org \
    --cc=emacs-devel@gnu.org \
    --cc=miles@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).