[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Re: Completing with anything
From: |
Tassilo Horn |
Subject: |
Re: [O] Re: Completing with anything |
Date: |
Tue, 22 Mar 2011 12:57:52 +0100 |
User-agent: |
Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) |
Aankhen <address@hidden> writes:
Hi Aankhen,
>> Or maybe an upper layer mixing abbrev and completion? Trying one at
>> first, the other one after. This could be useful for message-mode for
>> example, since you probably wants to use both.
>
> Isn’t this what hippie-expand does?
Oh, yes, it seems so. For example, there is the possible expansion (not
completion) function:
,----[ C-h f try-expand-all-abbrevs RET ]
| try-expand-all-abbrevs is a compiled Lisp function in `hippie-exp.el'.
|
| (try-expand-all-abbrevs OLD)
|
| Try to expand word before point according to all abbrev tables.
| The argument OLD has to be nil the first call of this function, and t
| for subsequent calls (for further possible expansions of the same
| string). It returns t if a new expansion is found, nil otherwise.
`----
The OLD arg in hippie-expansion functions also handles the case of
cycling thru possible expansions, where an expansion erases the text
that was expanded.
So Julien, maybe you want a `try-expand-org-contact' function, and add
that to `hippie-expand-try-functions-list', and bind `hippie-expand' to
some key.
Bye,
Tassilo
- [O] Re: Completing with anything, (continued)
- [O] Re: Completing with anything, Eric Abrahamsen, 2011/03/22
- Re: [O] Re: Completing with anything, Julien Danjou, 2011/03/23
- Re: [O] Re: Completing with anything, Eric S Fraga, 2011/03/23
- Re: [O] Re: Completing with anything, Julien Danjou, 2011/03/23
- Re: [O] Re: Completing with anything, Eric S Fraga, 2011/03/23
- Re: [O] Re: Completing with anything, Cian, 2011/03/24
- Re: [O] Re: Completing with anything, Julien Danjou, 2011/03/25
- Re: [O] Re: Completing with anything, Michael Markert, 2011/03/26
- Re: [O] Re: Completing with anything, Michael Markert, 2011/03/26
- Re: [O] Re: Completing with anything, Aankhen, 2011/03/22
- Re: [O] Re: Completing with anything,
Tassilo Horn <=
- Re: [O] Re: Completing with anything, Julien Danjou, 2011/03/22
- Re: [O] Re: Completing with anything, Tassilo Horn, 2011/03/22
- [O] Re: Completing with anything, Dimitri Fontaine, 2011/03/22
- [O] Re: Completing with anything, Stefan Monnier, 2011/03/21
- [O] Re: Completing with anything, Julien Danjou, 2011/03/21