unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* In buffer completion: tabkey2.el or hippie-expand and overlays
@ 2008-06-15 18:18 beaubert
  2008-06-16  0:47 ` Lennart Borgman (gmail)
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: beaubert @ 2008-06-15 18:18 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all,

I'm looking for a good way to have in buffer completion for words in already 
opened buffers and/or from a dictionary, code completion, filename 
completion ...

I'm looking for a completion wich show the different choices with
menus (overlays ?) like the completion-ui package found in:
 http://www.dr-qubit.org/emacs.php#completion


I'm looking for a way to use hippie-expand or tabkey2 with overlays, but don't 
know how to do that and wich one is the best (for example I'm not sure if 
hippie-expand  or tabkey2 do the same thing ...!)

Anyway if someone has some tips ...
Thank you very much

Francois
-- 
François BEAUBERT
ENSIAME/LME
Bureau A9
Université de Valenciennes - Le Mont Houy - 59313 Valenciennes Cedex 9
Téléphone: (0/33)3 27 51 19 72
Télécopie: (0/33)3 27 51 19 61
Mel: francois.beaubert@univ-valenciennes.fr




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

* Re: In buffer completion: tabkey2.el or hippie-expand and overlays
  2008-06-15 18:18 In buffer completion: tabkey2.el or hippie-expand and overlays beaubert
@ 2008-06-16  0:47 ` Lennart Borgman (gmail)
  2008-06-16  2:36 ` Joel J. Adamson
  2008-06-16  5:48 ` beaubert
  2 siblings, 0 replies; 6+ messages in thread
From: Lennart Borgman (gmail) @ 2008-06-16  0:47 UTC (permalink / raw)
  To: beaubert; +Cc: help-gnu-emacs

beaubert wrote:
> I'm looking for a way to use hippie-expand or tabkey2 with overlays, but don't 
> know how to do that and wich one is the best (for example I'm not sure if 
> hippie-expand  or tabkey2 do the same thing ...!)


tabkey2 does not do completion. It just tries to give you the 
possibility to always use Tab for completion.

If you are using tabkey2-mode and hit Tab then the first Tab will 
"normally" indent the current line. If you immediately type Tab again a 
completion function will be invoked.

You may wonder which completion function will be invoked. In that case 
you can type Shift-Tab instead of the second Tab. That will show you 
which completion function is the one to use. Typing Shift-Tab again will 
change to the next completion function available.

There are of course some options in tabkey2 that let you choose the 
order of the completion functions.




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

* Re: In buffer completion: tabkey2.el or hippie-expand and overlays
  2008-06-15 18:18 In buffer completion: tabkey2.el or hippie-expand and overlays beaubert
  2008-06-16  0:47 ` Lennart Borgman (gmail)
@ 2008-06-16  2:36 ` Joel J. Adamson
  2008-06-16  5:48 ` beaubert
  2 siblings, 0 replies; 6+ messages in thread
From: Joel J. Adamson @ 2008-06-16  2:36 UTC (permalink / raw)
  To: beaubert; +Cc: help-gnu-emacs

beaubert <francois.beaubert@univ-valenciennes.fr> writes:

> Hi all,
>
> I'm looking for a good way to have in buffer completion for words in already 
> opened buffers and/or from a dictionary, code completion, filename 
> completion ...

Do you want dynamic abbrevs?  In abbrev mode, use M-/ to generate
dynamic abbrevs.

Joel

-- 
Joel J. Adamson
(303) 880-3109
Public key: http://pgp.mit.edu
http://www.unc.edu/~adamsonj
http://trashbird1240.blogspot.com




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

* Re: In buffer completion: tabkey2.el or hippie-expand and overlays
  2008-06-15 18:18 In buffer completion: tabkey2.el or hippie-expand and overlays beaubert
  2008-06-16  0:47 ` Lennart Borgman (gmail)
  2008-06-16  2:36 ` Joel J. Adamson
@ 2008-06-16  5:48 ` beaubert
  2008-06-16 16:03   ` Lennart Borgman (gmail)
  2 siblings, 1 reply; 6+ messages in thread
From: beaubert @ 2008-06-16  5:48 UTC (permalink / raw)
  To: help-gnu-emacs

Thanks for your answers !

joel: indeed dabbrev is a way to go but I prefer hippie-expand already looks 
for dabbrev in is completion candidate. I was looking for something with 
shows the choices with a menu below the cursor.

lennart: Thanks for those informations, it's clearer now ...so I can bind 
hippie-expand as the completion function of tabkey2.

Do you have a idea to have the choices shown a menu just under the cursor (see 
for example yasnippet)? 

Anyway thank you very much for your answers!
Have a nice day

Francois
-- 
François BEAUBERT
ENSIAME/LME
Bureau A9
Université de Valenciennes - Le Mont Houy - 59313 Valenciennes Cedex 9
Téléphone: (0/33)3 27 51 19 72
Télécopie: (0/33)3 27 51 19 61
Mel: francois.beaubert@univ-valenciennes.fr




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

* Re: In buffer completion: tabkey2.el or hippie-expand and overlays
  2008-06-16  5:48 ` beaubert
@ 2008-06-16 16:03   ` Lennart Borgman (gmail)
  0 siblings, 0 replies; 6+ messages in thread
From: Lennart Borgman (gmail) @ 2008-06-16 16:03 UTC (permalink / raw)
  To: beaubert; +Cc: help-gnu-emacs

beaubert wrote:
> Thanks for your answers !
> 
> joel: indeed dabbrev is a way to go but I prefer hippie-expand already looks 
> for dabbrev in is completion candidate. I was looking for something with 
> shows the choices with a menu below the cursor.
> 
> lennart: Thanks for those informations, it's clearer now ...so I can bind 
> hippie-expand as the completion function of tabkey2.
> 
> Do you have a idea to have the choices shown a menu just under the cursor (see 
> for example yasnippet)? 

The choices for tabkey2 itself are few since it is only the available 
completion functions it handles. You can cycle through those with F8 and 
after Tab also Shift-Tab.

> Anyway thank you very much for your answers!
> Have a nice day
> 
> Francois




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

* Re: In buffer completion: tabkey2.el or hippie-expand and overlays
@ 2008-06-16 18:08 beaubert
  0 siblings, 0 replies; 6+ messages in thread
From: beaubert @ 2008-06-16 18:08 UTC (permalink / raw)
  To: Lennart Borgman (gmail); +Cc: help-gnu-emacs

On Monday 16 June 2008 18:03:12 you wrote:
> > Do you have a idea to have the choices shown a menu just under the cursor
> > (see for example yasnippet)?
>
> The choices for tabkey2 itself are few since it is only the available
> completion functions it handles. You can cycle through those with F8 and
> after Tab also Shift-Tab.

Thank you very much Lennart for your kind help ...

I will take time to see what can be done regarding the completion menu ...

If someone has some tips ...

-- 
François BEAUBERT
ENSIAME/LME
Bureau A9
Université de Valenciennes - Le Mont Houy - 59313 Valenciennes Cedex 9
Téléphone: (0/33)3 27 51 19 72
Télécopie: (0/33)3 27 51 19 61
Mel: francois.beaubert@univ-valenciennes.fr




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

end of thread, other threads:[~2008-06-16 18:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-15 18:18 In buffer completion: tabkey2.el or hippie-expand and overlays beaubert
2008-06-16  0:47 ` Lennart Borgman (gmail)
2008-06-16  2:36 ` Joel J. Adamson
2008-06-16  5:48 ` beaubert
2008-06-16 16:03   ` Lennart Borgman (gmail)
  -- strict thread matches above, loose matches on Subject: below --
2008-06-16 18:08 beaubert

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).