help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Two questions about icicles


From: Drew Adams
Subject: RE: Two questions about icicles
Date: Fri, 2 Nov 2007 07:49:23 -0700

> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]