unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* icicles, cua, and C-RET
@ 2006-03-01 20:13 Peter Lee
  2006-03-03 17:11 ` Drew Adams
  2006-03-03 21:07 ` Peter Dyballa
  0 siblings, 2 replies; 5+ messages in thread
From: Peter Lee @ 2006-03-01 20:13 UTC (permalink / raw)


version: "GNU Emacs 22.0.50.1 (i386-mingw-nt5.1.2600) of 2006-02-24 on xxxx"

I've recently switched to using icicles & icomplete+ instead of mcomplete &
iswitchb.  One thing that bothers me is if I do 'C-x b' and enter a few letters
and get a single-match I can't just hit enter and bring that buffer up... I must
fully complete it.  According to the docs I should be able to do what I want by
using C-RET instead... but this binding is being eaten by 
cua-set-rectangle-mark.  The icicles docs say to make sure it's loaded last in
.emacs and it is in this case.

Any ideas what I can do to correct this?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: icicles, cua, and C-RET
  2006-03-01 20:13 icicles, cua, and C-RET Peter Lee
@ 2006-03-03 17:11 ` Drew Adams
  2006-03-03 21:07 ` Peter Dyballa
  1 sibling, 0 replies; 5+ messages in thread
From: Drew Adams @ 2006-03-03 17:11 UTC (permalink / raw)


    I've recently switched to using icicles & icomplete+ instead of
    mcomplete & iswitchb.

    One thing that bothers me is if I do 'C-x b' and enter a few letters
    and get a single-match I can't just hit enter and bring that
    buffer up... I must fully complete it.  According to the docs I
    should be able to do what I want by using C-RET instead...

It is the command that you have bound to `C-x b' that decides whether `RET'
first completes your input before exiting the minibuffer. By default,
standard Emacs command `switch-to-buffer' is bound to `C-x b', and it does
not exit upon partial match. This lets you create a new buffer, instead of
requiring you to switch to an existing buffer. Icicles does not bind any
command to `C-x b' - `switch-to-buffer' is the binding, unless you change
it. So, what bothers you is in fact, standard Emacs buffer switching ;-).

You can obtain iswitchb-like behavior with Icicles by binding command
`icicle-buffer' to `C-x b' and setting option
`icicle-buffer-require-match-flag' to `partial-match-ok'. See
http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_S-RET ("Exiting the
Minibuffer without Confirmation: `S-RET'").

Further, since Icicles provides two kinds of completion matching: standard
prefix completion and apropos (regexp) completion, you can use `S-RET' (not
`C-RET') in the minibuffer to complete-and-exit using apropos completion and
use `RET' (like iswitchb) to complete-and-exit using prefix completion.

BTW (1) - You mentioned `C-RET'. There is no connection with `C-RET' and
exiting upon a partial match. In Icicles, `C-RET' in the minibuffer is for
choosing multiple completion candidates (or, by default, for help on each
candidate).

BTW (2) - You can use iswitchb for buffer switching and still use Icicles
for other completion. Some people do that. As I mentioned above, you can get
the iswitchb immediate-exit behavior within Icicles itself, but if you
really like other features of iswitchb then you can stick with it and still
take advantage of Icicles more generally. Icicles itself does not bind `C-x
b' (it does not change any global bindings), so it plays well with other
libraries like iswitchb.

    The icicles docs say to make sure it's loaded last in .emacs and it is
    in this case.

That's not necessary. It is recommended, however, because Icicles picks up
existing bindings that you (or, say, cua-mode) have created, and remaps them
to similar Icicles commands. For example, Icicle mode remaps (in the
minibuffer completion maps only) command `kill-region' to
`icicle-kill-region', which first does `kill-region' and then updates the
list of `*Completions*' (to provide icompletion in *Completions*). If your
.emacs binds `kill-region' to, say, <f3>, then Icicles will pick up this
binding and use it for `icicle-kill-region' in the minibuffer. That way,
Icicles will recognize that you expect <f3> to kill the region.

HTH.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: icicles, cua, and C-RET
  2006-03-01 20:13 icicles, cua, and C-RET Peter Lee
  2006-03-03 17:11 ` Drew Adams
@ 2006-03-03 21:07 ` Peter Dyballa
  2006-03-03 22:24   ` Drew Adams
  1 sibling, 1 reply; 5+ messages in thread
From: Peter Dyballa @ 2006-03-03 21:07 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 01.03.2006 um 20:13 schrieb Peter Lee:

> Any ideas what I can do to correct this?

Yes, three!

Switch off cua-mode!
Bind cua's cua-set-rectangle-mark to something else, Shift-C-RET?
Bind icicles' completion to another key.

--
Greetings

   Pete

Claiming that the Macintosh is inferior to Windows because most people
use Windows, is like saying that all other restaurants serve food  
that is
inferior to McDonald's.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: icicles, cua, and C-RET
  2006-03-03 21:07 ` Peter Dyballa
@ 2006-03-03 22:24   ` Drew Adams
  0 siblings, 0 replies; 5+ messages in thread
From: Drew Adams @ 2006-03-03 22:24 UTC (permalink / raw)


    > Any ideas what I can do to correct this?
    
    Yes, three!
    Switch off cua-mode!
    Bind cua's cua-set-rectangle-mark to something else, Shift-C-RET?
    Bind icicles' completion to another key.

No need for any of those, as I mentioned in a previous mail. 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: icicles, cua, and C-RET
       [not found] <mailman.507.1141478602.5838.help-gnu-emacs@gnu.org>
@ 2006-03-05  4:27 ` Peter Lee
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Lee @ 2006-03-05  4:27 UTC (permalink / raw)


>>>> Drew Adams writes:

    > You can obtain iswitchb-like behavior with Icicles by binding command
    > `icicle-buffer' to `C-x b' and setting option
    > `icicle-buffer-require-match-flag' to `partial-match-ok'. See
    > http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_S-RET ("Exiting the
    > Minibuffer without Confirmation: `S-RET'").

Thanks Drew, icicle-buffer-require-match-flag is what I was missing.  I had C-x b
set to icicle-buffer.

Great package btw.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-03-05  4:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-01 20:13 icicles, cua, and C-RET Peter Lee
2006-03-03 17:11 ` Drew Adams
2006-03-03 21:07 ` Peter Dyballa
2006-03-03 22:24   ` Drew Adams
     [not found] <mailman.507.1141478602.5838.help-gnu-emacs@gnu.org>
2006-03-05  4:27 ` Peter Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).