bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dabbrev-expand in readline?


From: Martin Pool
Subject: Re: dabbrev-expand in readline?
Date: Sat, 13 Apr 2002 13:31:30 +1000
User-agent: Mutt/1.3.27i

On 12 Apr 2002, Andreas Schwab <schwab@suse.de> wrote:
> mbp@samba.org (Martin Pool) writes:
> 
> |> Is anybody planning to implement this?  I think I might try.  I use
> |> M-/ all the time in emacs...
> 
> $ bind -P
> [...]
> dynamic-complete-history can be found on "\e\C-i".
> [...]

Wonderful, thankyou!  

Can I suggest the documentation be changed to make it more clear that
this is the same as the emacs function, perhaps mentioning it by name?
>From this description in the manual, I thought that it was trying to
match a whole line from the history, not just the current word.

man bash shows:

> Attempt completion on the text before point, comparing the text
> against lines from the history list for possible completion matches.

the emacs description of M-/ is:

> ESC / runs the command dabbrev-expand
>    which is an interactive autoloaded Lisp function in `dabbrev'.
> [Arg list not available until function definition is loaded.]

> Expand previous word "dynamically".

> Expands to the most recent, preceding word for which this is a
> prefix.

I think this sentence is much more clear.

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

> [...]

--
Martin

(please cc me on replies)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]