unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Chong Yidong'" <cyd@gnu.org>, <emacs-devel@gnu.org>
Subject: RE: M-= in Dired
Date: Fri, 7 Sep 2012 08:19:09 -0700	[thread overview]
Message-ID: <9DB30378A3D0455C9B0204CF38470D6B@us.oracle.com> (raw)
In-Reply-To: <877gs52845.fsf@gnu.org>

> In Dired, M-= is bound to dired-backup-diff.  This is no good; there's
> no good reason for Dired to override the global binding for M-=, which
> is count-words-region.

Actually, there is no good reason for the global binding of `M-=' to
`count-words-region' either.

It is wasteful of a perfectly good repeatable key for `M-=' to be bound to
`count-words-region', which is not a usefully repeatable command.  You won't be
holding down `M-=' to repeat `count-words-region' multiple times.

It would be far better to bind `count-words-region' to something like `C-x M-=',
and thus keep `M-=' free.

It makes sense to use `M-=' for a repeatable action or perhaps as a prefix key
for grouping things that are mnemonic with an equals sign.  I use `C-=', for
example, as a prefix key for various comparisons:

C-= b         ediff-buffers
C-= d         diff
C-= e, C-= f  ediff-files

An equals sign can be suggestive of comparing things or of calculating/printing
a result, and no doubt of other things as well.  (Emacs sometimes uses `:' for
the showing a result, as in `M-:'.)

The point is that we do not have a very good reason for sacrificing `M-=' to a
one-off command like `count-words-region'.  Sure, that's a good command to bind
to some key, but let's bind it to `C-x M-=' or another key that is not so useful
as either a repeatable key or a prefix key.

> If there are no objections, I will simply unbind dired-backup-diff,
> and improve the behavior of = (dired-diff) so that it uses any existing
> backup file as the minibuffer input default, like M-x diff does.

No objection about that from me.  But I would prefer that we find a different
binding for `count-words-region', for the reasons given above.




  parent reply	other threads:[~2012-09-07 15:19 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 ` Drew Adams [this message]
2012-09-07 16:40   ` M-= in Dired chad
2012-09-07 16:51     ` Drew Adams
2012-09-08 22:04   ` Juri Linkov
2012-09-08 22:52     ` Drew Adams
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=9DB30378A3D0455C9B0204CF38470D6B@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=cyd@gnu.org \
    --cc=emacs-devel@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).