From: "Drew Adams" <drew.adams@oracle.com>
To: "Seweryn Kokot" <s.kokot@po.opole.pl>, <help-gnu-emacs@gnu.org>
Subject: RE: Two questions about icicles
Date: Fri, 2 Nov 2007 07:49:23 -0700 [thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICKEBAEBAA.drew.adams@oracle.com> (raw)
In-Reply-To: <87ve8l852n.fsf@poczta.po.opole.pl>
> 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
next prev parent reply other threads:[~2007-11-02 14:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-02 7:44 Two questions about icicles Seweryn Kokot
2007-11-02 14:49 ` Drew Adams [this message]
2007-11-02 16:18 ` Seweryn Kokot
2007-11-02 16:31 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DNEMKBNJBGPAOPIJOOICKEBAEBAA.drew.adams@oracle.com \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=s.kokot@po.opole.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.