From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Dired: Improve symmetry in mark/unmark commands bound to keys Date: Sat, 24 Sep 2016 11:53:07 -0700 (PDT) Message-ID: <29510b6b-a38d-4abf-b3b4-f5d6f82fd098@default> References: <> <<83oa3db20a.fsf@gnu.org>> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1474743228 8096 195.159.176.226 (24 Sep 2016 18:53:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 24 Sep 2016 18:53:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii , Tino Calancha Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 24 20:53:43 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bns4n-00007h-My for ged-emacs-devel@m.gmane.org; Sat, 24 Sep 2016 20:53:29 +0200 Original-Received: from localhost ([::1]:35221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bns4l-0005RL-OB for ged-emacs-devel@m.gmane.org; Sat, 24 Sep 2016 14:53:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bns4d-0005R4-Mg for emacs-devel@gnu.org; Sat, 24 Sep 2016 14:53:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bns4c-0002A3-I6 for emacs-devel@gnu.org; Sat, 24 Sep 2016 14:53:19 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:46061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bns4X-00026e-IX; Sat, 24 Sep 2016 14:53:13 -0400 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u8OIrBJ6012094 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 24 Sep 2016 18:53:11 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.13.8) with ESMTP id u8OIrAMp027280 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 24 Sep 2016 18:53:10 GMT Original-Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id u8OIr8NW010346; Sat, 24 Sep 2016 18:53:09 GMT In-Reply-To: <<83oa3db20a.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6753.5000 (x86)] X-Source-IP: userv0022.oracle.com [156.151.31.74] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 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:207757 Archived-At: > > I) Add optional argument in 6) unflag-p to behave as the others. > > II) Add a new command `dired-mark-or-unmark-extension', as > > `dired-mark-extension' but, in interactive calls: > > * A prefix argument _unmark_ files. > > I propose to rebind '* .' to this command instead of the > > `dired-mark-extension'. > > After I) and II) we have an uniform behaviour for all > > commands marking files which are bound to keys. Powerful and easy > > to remember. >=20 > I'm okay with that proposal, but please leave the "* ." key sequence > at its present binding. For the new dired-mark-or-unmark-extension > command, I can propose "* e" or "* x", which are not yet taken, both > of them mnemonically resembling "EXtension". FWIW, I favor Tino's proposal, including having `* .' UNmark with a prefix arg (just like the other `*' commands). I see no special reason why a prefix arg to `* .' would read the character to use for marking, instead of having it unmark as proposed. (FWIW, In Dired+ `* .' has long been bound to a command that does what Tino proposes. I've never heard a complaint.) A prefix arg for `* .' currently is not useful, IMO, and likely never used. It marks the files using a character that you specify. Instead, users can use `* c' to change the mark character for the marked files, however they were marked - very useful. The ability to have a different mark character has nothing special to do with marking files by their extension. There are lots of uses of different mark chars. I've never heard of _anyone_ taking advantage of the vanilla `* .' prefix arg behavior to use a different mark character while marking a given extension. In fact, my impression is that there are very few Emacs users who even know about `* c', or know that you can have different marks and how you can put them to use. See this bug thread, for example: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D21746#8