Hi the list !

  Using ion3 for a  while, I want my return key to  behave like in the
  iswitchb mode of emacs when doing a completion.

  Example :

  I  want to  go to  the window  called ``Hey  this is  a  long window
  name !'',  I hit the  keystroke associated, then type  `long'.  Now,
  I have one match in my  completion buffer, I just want to hit return
  and have a go to ``Hey this is a long window name !''.

  Fine, this seems easy, just bind Return to complete ++ finish.

  My problem is when I've no match or more than one match :

  * With more than one match, it's okey, let's choose the first match.

  * With no match, err... I want  to force the user (a.k.a. me) to hit
  C-g or correct his entry, but without error message.  The user would
  be stuck until his entry is correct.

  Point is, I don't  know how to know how many matches  we have, or if
  we  have  some  at  all.   If  I'm  not  mistaken,  complete()  call
  set_completion, and return nothing.

  Any idea ?

  Thanks !

-- 
    Michael Cadilhac, a.k.a. Micha [mika] |
                    Epita/LRDE promo 2007 |   )\._.,--....,'``.
  2 rue de la Convention | 08.70.65.13.14 |  /.  _.. \   _\  (` ._,.
94270 Le Kremlin Bicetre | 06.23.20.31.30 | '._.-(,_..'--(,_...`-..'

Attachment: pgpRcW2tOzJhX.pgp
Description: PGP signature

Reply via email to