all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* eshell: Support old-style completion and cycling completion?
@ 2003-02-16 20:16 Kai Großjohann
  2003-02-17  2:15 ` Galen Boyer
  2003-02-17 18:25 ` Kevin Rodgers
  0 siblings, 2 replies; 13+ messages in thread
From: Kai Großjohann @ 2003-02-16 20:16 UTC (permalink / raw)


Usually, I know and love the fact that hitting TAB completes as far
as it can, then offers the list of completions.

But sometimes, I think it might be nice to cycle the completions
instead.  So I tried a naive approach:

(defun kai-eshell-pcomplete-cycling ()
  "Like `pcomplete', but turn on cycling explicitly."
  (interactive)
  (let ((eshell-cmpl-cycle-completions t))
    (pcomplete)))

Then I bound this to a key.  No dice.

Hm.  Thinking some more, it's possible that a behavior that I would
like is this:

If there is a common prefix for all completions, insert that.  If
there is more than one possible completion, beep.  After the next
TAB, show all possible completions.  After the next TAB, complete to
the first completion.  So it's a kind of a hybrid between old-style
and cycling style.

But I don't have this behavior, so I haven't tried it, so I don't
know.  What do people think?
-- 
A turnip curses Elvis

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

end of thread, other threads:[~2003-02-18  8:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-16 20:16 eshell: Support old-style completion and cycling completion? Kai Großjohann
2003-02-17  2:15 ` Galen Boyer
2003-02-17  7:17   ` Kai Großjohann
2003-02-17 15:09     ` Galen Boyer
2003-02-17 15:34       ` Kai Großjohann
2003-02-17 15:58       ` Stefan Monnier <foo@acm.com>
2003-02-17 17:22         ` Kai Großjohann
2003-02-17 19:38         ` John Wiegley
2003-02-18  2:24           ` Galen Boyer
2003-02-18  5:49             ` John Wiegley
2003-02-18  8:07           ` Kai Großjohann
2003-02-17 18:25 ` Kevin Rodgers
2003-02-17 19:48   ` Kai Großjohann

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.