From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: Keybinding nit Date: Tue, 24 Oct 2006 16:11:55 -0600 Organization: IHS Message-ID: References: <85d58p7hyu.fsf@lola.goethe.zz> <87zmbti4zh.fsf@catnip.gol.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1161728515 7347 80.91.229.2 (24 Oct 2006 22:21:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Oct 2006 22:21:55 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 25 00:21:54 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GcUeP-0001cR-7c for ged-emacs-devel@m.gmane.org; Wed, 25 Oct 2006 00:21:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GcUeO-00012c-Kw for ged-emacs-devel@m.gmane.org; Tue, 24 Oct 2006 18:21:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GcUXW-0007PK-Nr for emacs-devel@gnu.org; Tue, 24 Oct 2006 18:14:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GcUXP-0007IZ-05 for emacs-devel@gnu.org; Tue, 24 Oct 2006 18:14:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GcUXL-0007IN-Vh for emacs-devel@gnu.org; Tue, 24 Oct 2006 18:14:20 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GcUXK-00007D-9U for emacs-devel@gnu.org; Tue, 24 Oct 2006 18:14:18 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GcUWe-0008Dn-Gm for emacs-devel@gnu.org; Wed, 25 Oct 2006 00:13:36 +0200 Original-Received: from 207.167.42.206 ([207.167.42.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Oct 2006 00:13:36 +0200 Original-Received: from ihs_4664 by 207.167.42.206 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Oct 2006 00:13:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 46 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.206 User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:61127 Archived-At: Miles Bader wrote: > Kevin Rodgers writes: >>> Well at least historically, I suppose one reason is because such >>> combinations (control + shift) don't work on ttys. >> But that's not what Peter wrote; he's using the same `C-x' prefix >> in all cases, just varying the case of the final key: > > Hmmm, good point... :-) > > In that case I'd just offer a weaker reason: It's annoying to type key > sequences where the two components use _different_ modifier keys. > > Indeed, even MOD + NO-MOD sequences can be a problem, as it's quite easy > to mis-time releasing the modifier key when typing quickly (I very often > mistype "C-x b" as "C-x C-b"); MOD + DIFFERENT-MOD would be even worse. That all makes perfect sense, but in actual practice I find that there are commands I use frequently use that aren't bound to keys, and that the most mnemonic, available keys are C- Shift- sequences. Here are some real examples I've had in my .emacs for years: (global-set-key "\C-hA" 'apropos) (global-set-key "\C-xB" 'bury-buffer) (global-set-key "\C-xI" 'insert-buffer) And before Emacs 22 (which binds `C-x C-k r' to apply-macro-to-region-lines), I had: (global-set-key "\C-xE" 'apply-macro-to-region-lines)) I guess you would find those far too annoying to use, but for me they are just fine. > [It might be tempting to answer "Well, just don't type those sequences > quickly!" but I find such admonitions simply don't work well in practice > -- people will slow down eventually because they'll get annoyed at all > the times they mistype, but then they'll be annoyed too, and I think > inherently annoying key-sequences should be avoided. :-] I learned to touch type in 9th or 10th grade, but I guess I don't type as quickly as you! -- Kevin