From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Seweryn Kokot Newsgroups: gmane.emacs.help Subject: Re: Two questions about icicles Date: Fri, 02 Nov 2007 17:18:57 +0100 Message-ID: <87lk9gsjri.fsf@poczta.po.opole.pl> References: <87ve8l852n.fsf@poczta.po.opole.pl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1194020278 547 80.91.229.12 (2 Nov 2007 16:17:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Nov 2007 16:17:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 02 17:18:01 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 1InzDc-0007Oc-1o for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Nov 2007 17:18:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1InzDS-00087O-05 for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Nov 2007 12:17:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1InzDC-000878-H7 for help-gnu-emacs@gnu.org; Fri, 02 Nov 2007 12:17:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1InzDA-00086w-N2 for help-gnu-emacs@gnu.org; Fri, 02 Nov 2007 12:17:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1InzDA-00086t-Gw for help-gnu-emacs@gnu.org; Fri, 02 Nov 2007 12:17:32 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1InzD9-0007U9-AT for help-gnu-emacs@gnu.org; Fri, 02 Nov 2007 12:17:31 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1InzCd-0006dd-RB for help-gnu-emacs@gnu.org; Fri, 02 Nov 2007 16:16:59 +0000 Original-Received: from nat-warynskiego.po.opole.pl ([217.173.199.132]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Nov 2007 16:16:59 +0000 Original-Received: from s.kokot by nat-warynskiego.po.opole.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Nov 2007 16:16:59 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 77 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: nat-warynskiego.po.opole.pl X-PGP-FP: BF2E 7101 B6C4 CE71 527E 1A06 9B17 0C43 20EC 5AC1 X-PGP: 20EC5AC1 X-Operating-System: Debian GNU/Linux X-Homepage: http://www.skokot.po.opole.pl User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:45GvOfIRZ1w7b/slmd6Dd5BG1nI= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:48990 Archived-At: "Drew Adams" writes: >> 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. I installed icicles with get_icicles.sh script. 1. emacs -Q -l .emacs_test where .emacs_test file is: (setq load-path (append (list "~/elisp/icicles") load-path)) (require 'icicles) (icy-mode 1) 2. "C-h f char S-TAB" gives no completion, while typing "C-h f delete S-TAB" gives completion list where there are functions containing "char" substring. I use emacs22 in Debian GNU Emacs 22.1.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2007-08-22 on raven, modified by Debian and 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 - Drews thanks for this elisp code, I'll try it. -- Seweryn Kokot