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: Two questions about icicles Date: Fri, 2 Nov 2007 07:49:23 -0700 Message-ID: References: <87ve8l852n.fsf@poczta.po.opole.pl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1194015019 13504 80.91.229.12 (2 Nov 2007 14:50:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Nov 2007 14:50:19 +0000 (UTC) To: "Seweryn Kokot" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 02 15:50:20 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Inxqg-0007ST-OU for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Nov 2007 15:50:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1InxqW-0001NV-Pw for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Nov 2007 10:50:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1InxqI-0001NP-UR for help-gnu-emacs@gnu.org; Fri, 02 Nov 2007 10:49:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1InxqG-0001ND-CL for help-gnu-emacs@gnu.org; Fri, 02 Nov 2007 10:49:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1InxqG-0001NA-7D for help-gnu-emacs@gnu.org; Fri, 02 Nov 2007 10:49:48 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1InxqF-0001qA-Mz for help-gnu-emacs@gnu.org; Fri, 02 Nov 2007 10:49:47 -0400 Original-Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id lA2Eni2l009800; Fri, 2 Nov 2007 09:49:44 -0500 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id lA29sB9F004264; Fri, 2 Nov 2007 08:49:43 -0600 Original-Received: from 141.144.89.107 by acsmt350.oracle.com with ESMTP id 3339563761194014960; Fri, 02 Nov 2007 07:49:20 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <87ve8l852n.fsf@poczta.po.opole.pl> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:48989 Archived-At: > I'm trying to start using icicles and these are two things which bother > me > > 1. when I type C-h f char S-TAB M-* delete > I can find functions which contain "char" and "delete" in them, however > if I start to type C-h f delete S-TAB then I get that there are no > completions. Any idea what's wrong? No idea. It works for me. Please use `M-x icicle-send-bug-report', providing a step-by-step recipe to reproduce the problem, starting with "emacs -Q" (to inhibit loading init files). Let me know what Emacs version you use, and please use the latest Icicles files. > 2. how to swap keys TAB and S-TAB in icicles-mode? I mean if I use S-TAB > more frequently than TAB then why not make life easier. It's not simple > since S-TAB means 'icicle-complete-keys' and 'icicle-apropos-complete' > depending on context. It would be nice to have a snippet of code to yank > it into .emacs file. See http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Customizing_Key_Bindings. I'm afraid that the key used for key completion is hard-coded to `S-TAB', so far. I'll think about making that easier to change. For now, you can change it in the code (file icicle-mode.el): (defun icicle-bind-S-TAB-in-keymaps-from (map) "Bind `S-TAB' to `icicle-complete-keys' in keymaps accessible from MAP." (dolist (key+map (accessible-keymaps map)) (let ((map (cdr key+map))) (when (and (keymapp map) ; Try to exclude menu maps. (not (stringp (car-safe (last map))))) (unless (lookup-key map [S-tab]) (condition-case nil (define-key map [S-tab] 'icicle-complete-keys) (error nil))) (unless (lookup-key map [S-iso-lefttab]) (condition-case nil (define-key map [S-iso-lefttab] 'icicle-complete-keys) (error nil))))))) Change [S-tab] to [(control ?i)] - that's TAB. You can either leave the rest as is or remove the last `unless' sexp - it is needed only because some keyboards use a different Shift TAB key. HTH - Drew