* No completion after sudo in (e)shell
@ 2012-12-14 18:58 Thierry Volpiatto
2012-12-15 0:05 ` Xue Fuqiao
0 siblings, 1 reply; 2+ messages in thread
From: Thierry Volpiatto @ 2012-12-14 18:58 UTC (permalink / raw)
To: emacs-devel
emacs -Q
M-x eshell
apt- <TAB> completion for apt commands popup
*sudo apt- <TAB> nothing
Same in M-x shell
Adding a pcomplete/sudo function fix this (At least in eshell, I don't
use shell).
--8<---------------cut here---------------start------------->8---
(defun pcomplete/sudo ()
(let ((prec (pcomplete-arg 'last -1)))
(cond ((string= "sudo" prec)
(while (pcomplete-here*
(funcall pcomplete-command-completion-function)
(pcomplete-arg 'last) t))))))
--8<---------------cut here---------------end--------------->8---
Not a bug just something missing.
--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-12-15 0:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-14 18:58 No completion after sudo in (e)shell Thierry Volpiatto
2012-12-15 0:05 ` Xue Fuqiao
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.