When I'm logged in to a remote machine in eshell I can still do man ls
. But it appears that this only work for my local man pages. If I try man yum
I'll get a message that the yum man page is not found. However, if I log into the machine via a regular terminal and use man yum
there the manual is shown. Is there a way to get remote man pages showing up when in TRAMP mode? I'd really like that because I'm running OS X locally but frequently log in to linux servers where the utilities have different options etc.
Update: To clarify, here's an example session:
Welcome to the Emacs shell
~ $ cd /ssh:example.com:/
/ssh:example.com:/ $ man yum
#<buffer *Man yum*>
Alright! That's expected. But, regretfully, no *Man yum*
buffer is created an these messages appear in *Messages*
:
Invoking man yum in the background
Please wait: formatting the yum man page...
yum man page formatted
error in process sentinel: user-error: Can't find the yum manpage
error in process sentinel: Can't find the yum manpage
Update 2: I found out (from a comment on this answer) that I can invoke the remote man by prefixing with *
, so *man yum
-- which is an OK work-around. But it just dumps the content in the eshell window, rather than open a new buffer like the man
command does. I'd really like that behaviour.
man
as the emacs command, or as the shell command?man yum
in eshell, the emacs shell. NotM-x man
.eshell
runs in emacs. Try\man yum
instead.\man yum
does not work, but*man yum
kinda does -- I've added my "objection" to that to the question also.