unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Juri Linkov'" <juri@jurta.org>
Cc: 'Chong Yidong' <cyd@gnu.org>, emacs-devel@gnu.org
Subject: RE: M-= in Dired
Date: Sat, 8 Sep 2012 15:52:39 -0700	[thread overview]
Message-ID: <2AAC80EE86E24315AC2C7462DF59BB68@us.oracle.com> (raw)
In-Reply-To: <87bohgdvcw.fsf@mail.jurta.org>

> > 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.




  reply	other threads:[~2012-09-08 22:52 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-07 14:57 M-= in Dired Chong Yidong
2012-09-07 15:01 ` Lars Ingebrigtsen
2012-09-07 15:29   ` up & down keys in Dired [was: M-= in Dired] Drew Adams
2012-09-07 17:05   ` M-= in Dired Philipp Haselwarter
2012-09-07 17:14     ` up & down keys in Dired [was: M-= in Dired] Drew Adams
2012-09-07 19:21       ` Philipp Haselwarter
2012-09-07 20:42         ` Drew Adams
2012-09-08  7:11         ` Eli Zaretskii
2012-09-09  5:16           ` Stephen J. Turnbull
2012-09-08 18:01         ` Richard Stallman
2012-09-07 15:19 ` M-= in Dired Drew Adams
2012-09-07 16:40   ` chad
2012-09-07 16:51     ` Drew Adams
2012-09-08 22:04   ` Juri Linkov
2012-09-08 22:52     ` Drew Adams [this message]
2012-09-09 13:02     ` Jambunathan K
2012-09-09 22:20 ` Juri Linkov
2012-09-14 23:45   ` Juri Linkov
2012-09-19  3:15     ` Chong Yidong
2012-09-19 20:10       ` Juri Linkov
2012-09-20  4:28         ` Chong Yidong
2012-09-20 12:30           ` Stefan Monnier

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=2AAC80EE86E24315AC2C7462DF59BB68@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=cyd@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.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).