From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: M-= in Dired Date: Sat, 8 Sep 2012 15:52:39 -0700 Message-ID: <2AAC80EE86E24315AC2C7462DF59BB68@us.oracle.com> References: <877gs52845.fsf@gnu.org><9DB30378A3D0455C9B0204CF38470D6B@us.oracle.com> <87bohgdvcw.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1347144778 26907 80.91.229.3 (8 Sep 2012 22:52:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Sep 2012 22:52:58 +0000 (UTC) Cc: 'Chong Yidong' , emacs-devel@gnu.org To: "'Juri Linkov'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 09 00:53:01 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TATtb-0001lq-BW for ged-emacs-devel@m.gmane.org; Sun, 09 Sep 2012 00:52:59 +0200 Original-Received: from localhost ([::1]:54228 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TATtY-0008Uk-7u for ged-emacs-devel@m.gmane.org; Sat, 08 Sep 2012 18:52:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TATtV-0008Ue-A5 for emacs-devel@gnu.org; Sat, 08 Sep 2012 18:52:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TATtT-0006B2-VC for emacs-devel@gnu.org; Sat, 08 Sep 2012 18:52:53 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:39930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TATtT-0006Av-OB; Sat, 08 Sep 2012 18:52:51 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q88Mqnt1006833 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 8 Sep 2012 22:52:50 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q88MqnMT002756 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 8 Sep 2012 22:52:49 GMT Original-Received: from abhmt108.oracle.com (abhmt108.oracle.com [141.146.116.60]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q88MqmKu019988; Sat, 8 Sep 2012 17:52:48 -0500 Original-Received: from dradamslap1 (/71.202.147.44) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 08 Sep 2012 15:52:48 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87bohgdvcw.fsf@mail.jurta.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Thread-Index: Ac2ODmR5Nw85zzBdStaD76M1qgeh5gAAq5Aw X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:153186 Archived-At: > > It would be far better to bind `count-words-region' to > > something like `C-x M-=', and thus keep `M-=' free. > > Or make `C-x =' a prefix key > for a keymap with more keybindings for > counting commands like count-words, count-lines-page, > count-lines-region, count-matches, what-cursor-position, > what-page, what-line. Sure, `C-x =' or `C-x M-=' or whatever else doesn't waste a repeatable key. Given the wealth of info that `C-x =' currently returns, even without `C-u', I don't tend to think of it as counting things, but you could certainly make such an argument, especially for purposes of grouping keys. I tend to think of `C-x =' as describing (a character and a position), more than as counting. I put it in a class with `C-h f', `C-h v', `C-h c', `C-h k',... But I also appreciate the `=' mnemonic for the current position. So I second your suggestion to lump `what-cursor-position' with the other commands you mention, on the same prefix key. In general, I'm in favor of that kind of thing. Let's free up a great key like `M-=' for better things to come - and _leave_ it free until we find something that really merits it. > As for finding a key to rebind `M-=' in Dired, I wonder why couldn't > `C-x v =' call `diff-backup' (or `dired-backup-diff' in > Dired) in case when it can't find a VC backend? Maybe; why not? Is there rarely a need to use `diff-backup' when a VC backend is available? Dunno. On the other hand, would it be confusing to a user to not realize which command (`vc-diff' or `diff-backup') is being used here? And `C-x v' is generally for VC stuff - this would present an exception in some contexts.