From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Changing key-bindings for icicle-search mode Date: Fri, 25 Dec 2015 10:09:04 -0800 (PST) Message-ID: <395953e4-66b4-45f7-8f0e-a082a5ed7ab8@default> References: <87vb7mkii5.fsf@think.bvr.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1451066984 29650 80.91.229.3 (25 Dec 2015 18:09:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Dec 2015 18:09:44 +0000 (UTC) To: "B.V. Raghav" , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 25 19:09:29 2015 Return-path: Envelope-to: geh-help-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 1aCWnw-0008Jq-Te for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Dec 2015 19:09:29 +0100 Original-Received: from localhost ([::1]:36080 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCWnv-0000NV-SL for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Dec 2015 13:09:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCWnh-0000NM-NW for help-gnu-emacs@gnu.org; Fri, 25 Dec 2015 13:09:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aCWnc-00041r-JM for help-gnu-emacs@gnu.org; Fri, 25 Dec 2015 13:09:13 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:17497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aCWnc-00041m-DP for help-gnu-emacs@gnu.org; Fri, 25 Dec 2015 13:09:08 -0500 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id tBPI94RD007028 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 25 Dec 2015 18:09:04 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.13.8/8.13.8) with ESMTP id tBPI93RJ003401 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 25 Dec 2015 18:09:03 GMT Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id tBPI936t018412; Fri, 25 Dec 2015 18:09:03 GMT In-Reply-To: <87vb7mkii5.fsf@think.bvr.lan> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.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: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108480 Archived-At: > I have come to use icicle, and like it for its less intrusive interface > (well, most of the time.) >=20 > While in icicle-occur (and icicle-search) The search results are shown > in a temporary buffer. Where if I intend to navigate in coordination. > i.e. to say jump locations (next or prior) based on the search results, > I call, interactively, (icicle-previous-apropos-candidate-action > &optional NTH) OR (icicle-next-apropos-candidate-action &optional NTH) >=20 > The key bindings for the respective commands are and > respectively. >=20 > I find these key-bindings a little too cumbersome. ... I want to > change them for the specific mode, i.e. icicle search mode (and I > dont know the name either) TL;DR - Hit `M-g' and then use the arrow keys (up/down). --- You can change the keys you ask about by customizing (`M-x customize-option) options `icicle-apropos-cycle-next-action-keys' and `icicle-apropos-cycle-previous-action-keys'. Their default values are the lists ([C-next]) and ([C-prior]), respectively. You can add keys to those lists or replace the ones that are there by default. Also (if `icicle-default-cycling-mode' is `apropos' or if you have hit `S-TAB') you can just use the keys `C-S-down' and `C-S-up' for this (or use `C-S-' plus the mouse wheel). These keys are defined by options `icicle-modal-cycle-down-alt-action-keys' and `icicle-modal-cycle-up-alt-action-keys' (same option names, but with `-alt'). Customizing any of these keys affects all Icicles cycling actions; they are not specific to search. If you want to change such a key for search only then you will need to advise `icicle-search' (or a specific Icicles search command). Use an `around' advice that binds the key options to whatever values you want. --- The keys for cycling among apropos candidates without acting on them are the same, but without the `C-' prefix, i.e., `next' and `down'. But you can always just use the `down' and `up' arrows for that instead, if the candidates are apropos completions (e.g., if you have used `S-TAB' or if you have customized option `icicle-default-cycling-mode' to `apropos'). You can use `M-g' in the minibuffer to toggle the use of prefix `C-' for this. So to cycle among some search hits (the source targets) you can use `M-g' and then just repeatedly hit `next' or `prior' (or `down' or `up') instead of repeating the same keys using modifier `C-'. Hit `M-g' to toggle back to the usual behavior. IOW, you can hit `M-g' to then use just the down/up arrows, to get the behavior you want. Hitting `M-g' again makes these arrows cycle only among candidates (inserting them one-by-one in the minibuffer), without moving to the corresponding target search hits.