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: [patch] Run occur command restricted to a region Date: Thu, 29 Dec 2016 12:52:21 -0800 (PST) Message-ID: <0452a0fa-c678-4b89-83d8-014bf65ac2db@default> References: <87vau3jl6f.fsf@gmail.com> <8337h6vhr7.fsf@gnu.org> <87shp665hf.fsf@gmail.com> 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 1483044810 24011 195.159.176.226 (29 Dec 2016 20:53:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Dec 2016 20:53:30 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kaushal Modi , Tino Calancha , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 29 21:53:21 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 1cMhhM-0004mR-VJ for ged-emacs-devel@m.gmane.org; Thu, 29 Dec 2016 21:53:17 +0100 Original-Received: from localhost ([::1]:37279 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMhhS-0001qP-0u for ged-emacs-devel@m.gmane.org; Thu, 29 Dec 2016 15:53:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMhgp-0001pd-IP for emacs-devel@gnu.org; Thu, 29 Dec 2016 15:52:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMhgo-0000sw-Ow for emacs-devel@gnu.org; Thu, 29 Dec 2016 15:52:43 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:28413) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cMhgi-0000mC-Sp; Thu, 29 Dec 2016 15:52:37 -0500 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id uBTKqYrp026726 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 29 Dec 2016 20:52:34 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id uBTKqYmb024148 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 29 Dec 2016 20:52:34 GMT Original-Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id uBTKqX7h009886; Thu, 29 Dec 2016 20:52:33 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6753.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] 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:210975 Archived-At: > I agree with Drew's reasoning behind not using up the M-s b/f > bindings for occur-backward/forward. But I don't like the idea > of having M-s o as a submap binding. M-s o is super useful as > it is now. It is simple to hit `o o' instead of `o'. And it has the advantage of reminding you of the fact that there are also `o f' and `o b'. `M-s o o' is no less "super useful" than `M-s o'. > Here's a suggestion for bindings that might work out. > I am not at a computer, so cannot verify if M-s M-o is > already taken,.. but if not then how about M-s M-o f > for occur-forward, and M-s M-o b for occur-backward?? > > The above bindings are easy to press and also easy to remember. Those are horrible, IMO. Instead of sacrificing `M-s b' and `M-s f' you are sacrificing `M-s M-o'. So you've saved only one key. And at the cost of introducing more complexity. And inconsistency, unless you also move `occur' to `M-s M-o o'. If you do that, then I'm in favor. The point is to group all of the occur commands wrt keys: have them use the same prefix. Prefix `M-s M-o' is at least as easy to use as prefix `M-s o'.