From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.devel Subject: Re: Duplicate bindings? Ref: Ibuffer: Mark buffers by content Date: Wed, 6 Jul 2016 00:31:53 +0900 (JST) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-1612510361-1467732715=:2580" X-Trace: ger.gmane.org 1467735250 5389 80.91.229.3 (5 Jul 2016 16:14:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Jul 2016 16:14:10 +0000 (UTC) Cc: Emacs developers , tino.calancha@gmail.com To: Kaushal Modi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 05 18:14:06 2016 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 1bKSz6-0001v1-EK for ged-emacs-devel@m.gmane.org; Tue, 05 Jul 2016 18:14:04 +0200 Original-Received: from localhost ([::1]:56092 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKSz5-0001Y3-IY for ged-emacs-devel@m.gmane.org; Tue, 05 Jul 2016 12:14:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKSKQ-0007mP-4r for emacs-devel@gnu.org; Tue, 05 Jul 2016 11:32:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKSKL-0001dZ-Sz for emacs-devel@gnu.org; Tue, 05 Jul 2016 11:32:01 -0400 Original-Received: from mail-pf0-x232.google.com ([2607:f8b0:400e:c00::232]:33426) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKSKL-0001dV-L8 for emacs-devel@gnu.org; Tue, 05 Jul 2016 11:31:57 -0400 Original-Received: by mail-pf0-x232.google.com with SMTP id i123so71075167pfg.0 for ; Tue, 05 Jul 2016 08:31:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=xQ0OQLfJLf4gngI2XysLMpvufxeaDuA66XLE42snvLU=; b=ASucvwfO5z4xb42rWfVMuLmpHrA1T6BY1E+o5i/Spw+JkOrlfj7m/AF3DtBEV4MBwJ X1In/wG7iBRPus00AgADP1BIK7edSJxYUl0smB7VQetQBHp1e82Nw5c4RKeCB9ovaTVF 0zn+9YAbvMEPezTHZNP4foLxxD4RXpZjTG2j+zxYri3zVb0I9Tj+AXsljtje6beXn21g tzsi1oQRo6bOUovMOnmF2vXo/O5gPnBevyoYY5M+E5bYVemttEfs3hQaX65hDwyymNyf 3ZOTZepBSw21sA/WJab7Gu6nbSYnNoVJXJqlr90G3HbJlFMFJAgXl+X3q4wEi6PMgrOW mwKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=xQ0OQLfJLf4gngI2XysLMpvufxeaDuA66XLE42snvLU=; b=E1OwI3GFvmQE2a3+qs8uEOT6wyZzJ2Bnm8cLI8VlAJsfi8Uijd2qZgnP1AJ09qEllz 7B7+P5r0IKawkCT0UUXoz0SwzcMh/iqjiMT5WENgBgfHvRpyyENSxXqPOQtRGcbVq651 cMV0fjIuk9dQ1F3ynKab22n5L7vkgjRL7Rm0MIRy2B8O2i/l8xlMc7g5s61bRc1pGfBR ZhX9eheSqhbodCRjQV1iJ56zVMAgUFJfQzBAzhaLA8ADYhMXUOzYuaaSBo5pi5WSPf2y BqqfOKhiFLVZoVFw3tNytJSVd/6hUQkyH+2M3L6P8R/VkeeIgP0Dp8LysICLCcSRvHHS Jn/g== X-Gm-Message-State: ALyK8tIlbjqprz+g8i4ZQQMULRrNgT2oUGLQyTPnG+lEyx4vTMMsrB8ZdQFHErU6+DOXBg== X-Received: by 10.98.40.4 with SMTP id o4mr32921293pfo.165.1467732716735; Tue, 05 Jul 2016 08:31:56 -0700 (PDT) Original-Received: from calancha-pc (softbank126103139048.bbtec.net. [126.103.139.48]) by smtp.gmail.com with ESMTPSA id i187sm5762421pfc.62.2016.07.05.08.31.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Jul 2016 08:31:55 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:205183 Archived-At: --8323329-1612510361-1467732715=:2580 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT 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 --8323329-1612510361-1467732715=:2580--