unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Hongxu Chen <leftcopy.chx@gmail.com>
To: Emanuel Berg <embe8573@student.uu.se>
Cc: help-gnu-emacs@gnu.org
Subject: Re: WoMan generates different result from man?
Date: Tue, 04 Jun 2013 11:31:08 +0800	[thread overview]
Message-ID: <87y5aqpn5v.fsf@gmail.com> (raw)
In-Reply-To: <878v2q7i46.fsf@VLAN-3434.student.uu.se> (Emanuel Berg's message of "Tue, 04 Jun 2013 03:57:29 +0200")

Emanuel Berg <embe8573@student.uu.se> writes:

> Hongxu Chen <leftcopy.chx@gmail.com> writes:
>
>> I am using WoMan since the default `evil-lookup-func' in
>> Evil-mode (well, I am not a true Emacser) is woman, and when I
>>
>>  (setq evil-lookup-func #'woman)
>>
>> It doesn't work as expected and I would not spend too much to
>> configure it right.
>
> Evil-mode? Haha, what is that?
>
> I just hit `M-x man', what does that get you?
OK, I've changed the keymaps for normal state in evil-mode to `man'(aha,
I didn't even notice that I could do this!)
>
>> Another concern is that while using `man' in emacs(which
>> actually call external program `man'), there seems a delay when
>> I would get a relatively big man page (such as `gcc'; I know I
>> should switch to info' in this sense, but I am so customed to
>> man in Vim...).
>
> Again, there is nothing wrong with browsing the man pages in
> Emacs, on the contrary. From where did you get that idea?
>
> But, now that you say it, `M-x man RET gcc RET' takes a couple of
> seconds in Emacs, but not so with man (the shell pager). But 1)
> gcc is a very big manpage, and 2) you don't bring it up every day,
> and you don't do it repeatedly. If you get stressed out over that,
> perhaps you should program yourself, and not computers :)
> Seriously, it depends what computer you have, of course. I have an
> old laptop and for me that short-seconds pause is very
> endurable. But yes - it is interesting that the Emacs mode is that
> much slower than the shell tool.

There is another problem: when using `man', it would firstly catch the
symbol/word at point by default. When there is NO manpage for this
symbol, it still displays as a candidate(I am using ido-ubiquitous and
don't know the behavior in other cases). And when I hit RET, it would
report like this:

error in process sentinel: user-error: Can't find the time_t manpage

This is annoying. But `woman' would ignore the symbol where the cursor
locates(it would not display `time_t' in this case) and I am informed
ahead that I cannot get the manpage of this symbol.

Also, the matching rule is confusing(possibly only for ido), for
instance, when I run `M-x man RET git', `git' does not appear at the
front of all candidates until I additionally add `(1)' (hence I have to
type the whole word `git(1)'), which is a bit inconvenient.

-- 
Regards,
Hongxu Chen



  reply	other threads:[~2013-06-04  3:31 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-03 11:39 WoMan generates different result from man? Hongxu Chen
2013-06-03 12:57 ` Jonathan Groll
2013-06-03 15:20   ` Hongxu Chen
2013-06-03 17:28     ` Stefan Monnier
     [not found]   ` <mailman.931.1370272993.22516.help-gnu-emacs@gnu.org>
2013-06-03 16:56     ` Dan Espen
2013-06-03 18:15     ` Emanuel Berg
2013-06-04  0:53       ` Hongxu Chen
     [not found]       ` <mailman.964.1370307204.22516.help-gnu-emacs@gnu.org>
2013-06-04  1:57         ` Emanuel Berg
2013-06-04  3:31           ` Hongxu Chen [this message]
     [not found]           ` <mailman.969.1370316681.22516.help-gnu-emacs@gnu.org>
2013-06-04 17:08             ` Emanuel Berg
2013-06-06  8:31       ` Hongxu Chen
     [not found]       ` <mailman.1074.1370507531.22516.help-gnu-emacs@gnu.org>
2013-06-06  9:43         ` Emanuel Berg
2013-06-07  1:11           ` Hongxu Chen
2013-06-03 17:18 ` Glenn Morris
2013-06-03 17:50   ` Eli Zaretskii
2013-06-03 19:34     ` Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y5aqpn5v.fsf@gmail.com \
    --to=leftcopy.chx@gmail.com \
    --cc=embe8573@student.uu.se \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).