all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'rusi'" <rustompmody@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: Icicles [was: shell command completion gone]
Date: Fri, 21 Jan 2011 07:33:02 -0800	[thread overview]
Message-ID: <D9E23DEBCB7943039ECE898AC53830B0@us.oracle.com> (raw)
In-Reply-To: <ec89c5ce-ffac-48f7-b785-ab17ac15fbc0@v17g2000yqv.googlegroups.com>

> vanilla gives history icicles gives all possible completions
> Trying to answer my own question:

You didn't ask a question. ;-)

> Does (setq icicle-default-cycling-mode 'history)
> do what I want?

Dunno.  What do you want?

> [Well it seems to as far as I can tell.  Just dunno
> about odd/corner cases]

If you want up/down to _always_ cycle the history, then customize these options
accordingly: `icicle-modal-cycle-up-keys', `icicle-modal-cycle-down-keys'.
Replace `up' and `down' in the key lists with keys of your choice.

(If you do that, you might also want to change the similar options for keys that
cycle per-mode actions, alternate actions, and help, `C-down', `C-S-down',
`C-M-down', etc. for consistency.)


Option `icicle-default-cycling-mode' determines only the _default_ cycling mode:
the mode in effect if you do not specify the mode (i.e., before you specify it),
by hitting `TAB' (for prefix completion) or `S-TAB' (for apropos completion).
This option has no effect once you have specified the current cycling mode.

If you leave the default bindings for `icicle-modal-cycle-(up|down)-keys' as
`up' and `down', those two keys reflect the current completion mode.  They do
not cycle history once you have specified the current completion mode explicitly
(`TAB' or `S-TAB').

E.g., if you type `foo TAB', then `up' and `down' perform prefix-mode cycling,
not history cycling, regardless of the value of `icicle-default-cycling-mode'.
It is only before you hit either `TAB' or `S-TAB' that a default setting of
`icicle-default-cycling-mode' other than `prefix', `apropos', and `nil' cycles
the history.

,----
| icicle-default-cycling-mode is a variable defined in `icicles-opt.el'.
| Its value is prefix
| 
| Documentation:
| *Default completion mode for per-mode cycling.
| When you hit a completion key (`TAB' or `S-TAB'), it sets the current
| completion mode (prefix or apropos, respectively).  That determines
| the kind of completion to be used by the per-mode cycling keys.
| 
| This option controls which completion mode to use if you cycle using a
| per-mode key (e.g. `down') *before* hitting a completion key.
| 
|  - `prefix'  means cycle prefix completions
|  - `apropos' means cycle apropos completions
|  - Any other non-nil value means cycle inputs from the input history
|  - nil means do not cycle - you must first hit a completion key
| 
| The per-mode cycling keys are the values of
| `icicle-modal-cycle-up-keys' (backward) and
| `icicle-modal-cycle-down-keys' (forward).  By default, these are keys
| `up' and `down' as well as the mouse wheel.
| 
| For example, if the value is `prefix' (the default) then you can
| immediately cycle prefix completions using `up', `down', or the mouse
| wheel, without first hitting `TAB'.
| 
| Once you have used `TAB' or `S-TAB', the only way to traverse the
| history is using `M-p' and `M-n' (they always traverse the history).
| 
| This option affects only cycling with the per-mode keys.  You can
| always use the mode-specific cycling keys instead to cycle according
| to a particular mode.  The mode-specific keys are (by default):
| 
|  - `end'  and `home'  for prefix completion
|  - `next' and `prior' for apropos completion
| 
| (By default there is no conflict between the cycling keys that are
| mode-specific and those that are per-mode.  But if you customize them
| in such a way that you set a key to both, the mode-specific use takes
| priority.)
| 
| After you change the value of this option, toggle Icicle mode off,
| then on again, for the change to take effect in the same session.
| 
| You can customize this variable.
`----




      parent reply	other threads:[~2011-01-21 15:33 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-07  6:45 shell command completion gone prad
2011-01-07 16:14 ` Drew Adams
2011-01-08  4:02   ` prad
     [not found]   ` <mailman.0.1294459339.1472.help-gnu-emacs@gnu.org>
2011-01-08 17:37     ` rusi
2011-01-08 22:11       ` prad
2011-01-11  4:54         ` Le Wang
2011-01-11 23:21           ` Icicles [was: shell command completion gone] Drew Adams
2011-01-12  7:17             ` Icicles prad
2011-01-12 15:45               ` Icicles Drew Adams
     [not found]           ` <mailman.2.1294788149.12535.help-gnu-emacs@gnu.org>
2011-01-12  5:10             ` Icicles [was: shell command completion gone] rusi
2011-01-12 15:45               ` Drew Adams
2011-01-14  7:30                 ` Rustom Mody
2011-01-14  9:04                   ` Drew Adams
     [not found]                   ` <mailman.16.1294995951.15276.help-gnu-emacs@gnu.org>
2011-01-14  9:34                     ` rusi
2011-01-14 16:48                       ` Drew Adams
2011-01-15  1:32                         ` Darth Emacs
2011-01-16 19:56                           ` Drew Adams
2011-01-19  0:29                             ` Darth Emacs
2011-01-17  3:59                     ` rusi
2011-01-17 17:35                       ` Drew Adams
     [not found]                 ` <mailman.13.1294990220.15276.help-gnu-emacs@gnu.org>
2011-01-14  7:33                   ` rusi
2011-01-21  4:12                   ` rusi
2011-01-21  5:18                     ` Le Wang
2011-01-21 15:48                       ` Drew Adams
     [not found]                     ` <mailman.10.1295587091.21031.help-gnu-emacs@gnu.org>
2011-01-21  5:24                       ` rusi
2011-01-21 15:33                     ` Drew Adams [this message]

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=D9E23DEBCB7943039ECE898AC53830B0@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=rustompmody@gmail.com \
    /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.