* eshell history cycling
@ 2004-02-16 6:35 James Cozine
0 siblings, 0 replies; 3+ messages in thread
From: James Cozine @ 2004-02-16 6:35 UTC (permalink / raw)
While cycling forwards in the history, shells like bash stop when they
reach the end. Eshell starts over from the beginning of the history
list. Any pointers on how to get the bash behavior in eshell?
-jc
--
<bozo> !v
<bozo> *damn*
<fn> "if you were in emacs, you'd be editing by now."
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <mailman.2458.1076913670.928.help-gnu-emacs@gnu.org>]
* Re: eshell history cycling
[not found] <mailman.2458.1076913670.928.help-gnu-emacs@gnu.org>
@ 2004-02-16 9:16 ` lawrence mitchell
2004-02-16 16:13 ` James Cozine
0 siblings, 1 reply; 3+ messages in thread
From: lawrence mitchell @ 2004-02-16 9:16 UTC (permalink / raw)
James Cozine wrote:
> While cycling forwards in the history, shells like bash stop when they
> reach the end. Eshell starts over from the beginning of the history
> list. Any pointers on how to get the bash behavior in eshell?
See the variable `pcomplete-cycle-completions'. If you want to
cycle completions elsewhere, just not in eshell, you could do
something like:
(add-hook 'eshell-mode-hook (lambda ()
(setq pcomplete-cycle-completions nil)))
--
lawrence mitchell <wence@gmx.li>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: eshell history cycling
2004-02-16 9:16 ` lawrence mitchell
@ 2004-02-16 16:13 ` James Cozine
0 siblings, 0 replies; 3+ messages in thread
From: James Cozine @ 2004-02-16 16:13 UTC (permalink / raw)
lawrence mitchell <wence@gmx.li> writes:
> James Cozine wrote:
>
>> While cycling forwards in the history, shells like bash stop when they
>> reach the end. Eshell starts over from the beginning of the history
>> list. Any pointers on how to get the bash behavior in eshell?
>
> See the variable `pcomplete-cycle-completions'. If you want to
> cycle completions elsewhere, just not in eshell, you could do
> something like:
>
> (add-hook 'eshell-mode-hook (lambda ()
> (setq pcomplete-cycle-completions nil)))
Neat. Though I've become a bit attached to eshell's current method of
completion :p
Basically, I don't want eshell-previous-matching-input-from-input[1] to
loop; if it's reached the end of the list, simply stop instead of
starting over from the beginning. Not only am I used to this behavior
in other shells, I'm used to this behavior in Emacs!
[1] The binding function of <up>, M-p, and indirectly, <down>, M-n
-jc
--
<Mr-Ikari> X is being evil on my laptop :(((
<adrian> you have to shake it to clear the screen
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-02-16 16:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-16 6:35 eshell history cycling James Cozine
[not found] <mailman.2458.1076913670.928.help-gnu-emacs@gnu.org>
2004-02-16 9:16 ` lawrence mitchell
2004-02-16 16:13 ` James Cozine
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.