unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tino Calancha <tino.calancha@gmail.com>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>, tino.calancha@gmail.com
Subject: Re: Duplicate bindings? Ref: Ibuffer: Mark buffers by content
Date: Wed, 6 Jul 2016 00:31:53 +0900 (JST)	[thread overview]
Message-ID: <alpine.DEB.2.20.1607060009020.2580@calancha-pc> (raw)
In-Reply-To: <CAFyQvY05C3=dG_inFiAfPPeritv3EEqjGzC=-N0WWzeZTanYuw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1474 bytes --]



On Tue, 5 Jul 2016, Kaushal Modi wrote:

> In this commit ( http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=08974112ae68aefba658a8516c8faa3374edc924 ), I am wondering
> why we have two bindings "%c" and "%g" call the same command?
> Why not have just one binding? That way, the user's get used to the same binding; we won't have a split where some prefer %c and
> some prefer %g. Then there are no bad feelings when/if one of the bindings might need to be sacrificed in future for some reason.
It was a compromise solution:
I)

My preference is '%g', which is the same as 
`dired-mark-files-containing-regexp'.
That is consistent with the design of Ibuffer, as stated in the
first line of ibuffer.el:
;;; ibuffer.el --- operate on buffers like dired

There are several equivalent commands Dired-Ibuffer with the same
key bindings, for instance:
dired-mark-directories
ibuffer-mark-dired-buffers
both are bound to '*/'

That very much helps to remember then.

Unfortunatelly, this symmetry Dired-Ibuffer is not perfect:
there are Ibuffer commands with the Dired 'partner' having
a different binding. For instance:
`dired-mark-files-regexp' bound to '%m'
`ibuffer-mark-by-name-regexp' bound to '%n'.

II)
Ibuffer has the command:
`ibuffer-filter-by-content' bound to '/c'

So i think one Ibuffer user may find easier to remember the
binding '%c' for `ibuffer-mark-by-content-regexp'.

If people agree to keep just one binding then i would suggest '%g'.
Regards,
Tino

  reply	other threads:[~2016-07-05 15:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-05 15:03 Duplicate bindings? Ref: Ibuffer: Mark buffers by content Kaushal Modi
2016-07-05 15:31 ` Tino Calancha [this message]
2016-07-05 15:41   ` Kaushal Modi
2016-07-06  2:18     ` John Wiegley
2016-07-07 14:49       ` Kaushal Modi
2016-07-07 14:52         ` Tino Calancha
2016-07-07 15:19           ` Kaushal Modi
2016-07-05 16:36   ` Noam Postavsky

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=alpine.DEB.2.20.1607060009020.2580@calancha-pc \
    --to=tino.calancha@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=kaushal.modi@gmail.com \
    /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).