From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#11482: 24.0.96; Keep `M-s' as a prefix key for search (conflict with Gnus) Date: Wed, 16 May 2012 21:44:50 -0700 Message-ID: <13DA3910F36D4757A1E991A5FC9632CE@us.oracle.com> References: <703E3EF0C68345F2BC8A537EDBB42E54@us.oracle.com><873971gqxa.fsf@mail.jurta.org> <87r4ujwtns.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1337229959 25723 80.91.229.3 (17 May 2012 04:45:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 17 May 2012 04:45:59 +0000 (UTC) Cc: 11482@debbugs.gnu.org To: "'Juri Linkov'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 17 06:45:58 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1SUsb6-0003Es-Qq for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 May 2012 06:45:57 +0200 Original-Received: from localhost ([::1]:53691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUsb6-0000fn-Ae for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 May 2012 00:45:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUsb2-0000fb-V9 for bug-gnu-emacs@gnu.org; Thu, 17 May 2012 00:45:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUsb0-00067W-TN for bug-gnu-emacs@gnu.org; Thu, 17 May 2012 00:45:52 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUsb0-00065o-IA for bug-gnu-emacs@gnu.org; Thu, 17 May 2012 00:45:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SUsbC-0001A6-D8 for bug-gnu-emacs@gnu.org; Thu, 17 May 2012 00:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 May 2012 04:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11482 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11482-submit@debbugs.gnu.org id=B11482.13372299184412 (code B ref 11482); Thu, 17 May 2012 04:46:02 +0000 Original-Received: (at 11482) by debbugs.gnu.org; 17 May 2012 04:45:18 +0000 Original-Received: from localhost ([127.0.0.1]:58476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SUsaT-000197-BU for submit@debbugs.gnu.org; Thu, 17 May 2012 00:45:17 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:27355) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SUsaP-00018r-Uy for 11482@debbugs.gnu.org; Thu, 17 May 2012 00:45:15 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q4H4is6N004525 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 17 May 2012 04:44:54 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q4H4irCl027958 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 17 May 2012 04:44:53 GMT Original-Received: from abhmt105.oracle.com (abhmt105.oracle.com [141.146.116.57]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q4H4ir91026115; Wed, 16 May 2012 23:44:53 -0500 Original-Received: from dradamslap1 (/10.159.173.230) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 16 May 2012 21:44:53 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87r4ujwtns.fsf@mail.jurta.org> Thread-Index: Ac0zwh3JgINJheVSRyWpvI55rZ+LQgAIMBgw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:60106 Archived-At: > >> Gnus could bind `gnus-summary-search-article-forward' to `M-s M-s'. > >> It is still easy to type. > > > > Obviously not what I was hoping for, since, as I say, > > Icicles uses `M-s M-s' as a prefix key for all of its many > > (Icicles) search commands. > > For Icicles you could use a key prefix with Icicles specific > mnemonics like `M-s I'. Certainly I could. But `M-s M-s' is a _lot_ more convenient for a prefix key than is fiddling around with first Meta then Shift (then...). Which is why I chose it. As I said, there are a lot of Icicles search keys on that prefix. Here's a taste: M-s M-s C-l icicle-search-pages M-s M-s , icicle-tags-search M-s M-s D icicle-search-defs-full M-s M-s I icicle-imenu-full M-s M-s J icicle-search-bookmarks-together M-s M-s O icicle-search-overlay-property M-s M-s T icicle-search-text-property M-s M-s X icicle-search-xml-element-text-node M-s M-s b icicle-search-buffer M-s M-s c icicle-search-char-property M-s M-s d icicle-search-defs M-s M-s f icicle-search-file M-s M-s i icicle-imenu M-s M-s j icicle-search-bookmark M-s M-s k icicle-search-keywords M-s M-s l icicle-search-lines M-s M-s o icicle-occur M-s M-s p icicle-search-paragraphs M-s M-s s icicle-search-sentences M-s M-s t icicle-search-thing M-s M-s w icicle-search-word M-s M-s x icicle-search-xml-element M-s M-s M-s icicle-search-generic Plus `M-s M-s m', which is a mode-specific Icicles search. For example, in Dired mode it searches the marked files, including those (marked in other Dired buffers) in the marked subdirs, recursively. In the `*Bookmark List*' it searches the targets of the marked bookmarks. In Ibuffer mode it searches the marked buffers. And so on. That's a pretty good use of `M-s M-s' as a prefix key, I think. IOW, there are not just one or two keys on the prefix. And Icicles was first! ;-) Certainly there is nothing special about Gnus, that it should get awarded the `M-s M-s' prize... Anyway, I'd probably sooner keep `M-s M-s' as the default value of the prefix key for Icicles users. As I said, it's very easy for a user to customize the existing option to change the prefix key if need be. And it's not clear that most Icicles users will use Gnus anyway. ;-) > > But it does satisfy the bug report, at least: it does not > > make `M-s' a simple command binding. > > There are more currently conflicting modes listed in > admin/FOR-RELEASE: > > ** Check for modes which bind M-s that conflicts with a new > global binding M-s and change key bindings where necessary. > The current list of modes: > > 2. Minibuffer binds `M-s' to `next-matching-history-element' > (not useful any more since C-s can now search in the history). I don't see #2 as a problem at all. We're talking top-level bindings, or should be. The only possible conflict for #2 is wrt Isearch in the minibuffer. I don't think that should be a criterion here. The others you mention are all conflicts of the same sort as Gnus, and should, IMO, be changed from `M-s' to something else. > Like the proposed keybinding `M-s M-s' for Gnus, Which I am not in favor of... I mention it as an existing conflict and suddenly it's a proposal for Gnus? > the minibuffer could rebind `next-matching-history-element' > to `M-s M-s'. There is no need to rebind the minibuffer's current use of `M-s', IMO. > And perhaps Shell could bind `comint-history-isearch-forward-regexp' to `M-s > M-s' as well. So now you want to completely appropriate the key I complained about Gnus conflicting with, creating even more conflicts for Icicles? Gee, thanks. I suppose I should take comfort in the adage that imitation is a form of flattery. But I would prefer that Emacs just leave `M-s M-s' well enough alone. > However, I have doubts about rebinding `rmail-search' to `M-s M-s'... I suggest to leave `M-s M-s' alone - no default binding, and just take care of this bug, which is about NOT binding commands to `M-s', now that it is a prefix key for search.