[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to make dabbrev expand to 2nd/3rd/... last occurence?
From: |
Holger Sparr |
Subject: |
Re: how to make dabbrev expand to 2nd/3rd/... last occurence? |
Date: |
Fri, 13 Oct 2006 08:20:12 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
On 12 Oct 2006, Florian Kaufmann wrote:
> Is there an extension to the dabbrev mode so that I can also have
> ´printed´ the 2nd/3rd... last occurence of a word? For example
> something like this. Say I have dabbrev-expand bound to C-; .Pressing
> C-; would behave normaly, another ; would replace the just found
> occurence with the 2nd last occurence, another ; would replace it with
> the 3rd last occurence and so on.
there is
,----[ C-h f dabbrev-expand RET ]
| dabbrev-expand is an interactive autoloaded Lisp function in `dabbrev'.
| It is bound to M-/.
| (dabbrev-expand arg)
|
| Expand previous word "dynamically".
|
| Expands to the most recent, preceding word for which this is a prefix.
| If no suitable preceding word is found, words following point are
| considered. If still no suitable word is found, then look in the
| buffers accepted by the function pointed out by variable
| `dabbrev-friend-buffer-function'.
|
| A positive prefix argument, N, says to take the Nth backward *distinct*
| possibility. A negative argument says search forward.
|
| If the cursor has not moved from the end of the previous expansion and
| no argument is given, replace the previously-made expansion
| with the next possible expansion not yet tried.
|
| The variable `dabbrev-backward-only' may be used to limit the
| direction of search to backward if set non-nil.
|
| See also `dabbrev-abbrev-char-regexp' and C-M-/.
|
| [back]
`----
Holger