all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Wolfgang Jenkner <wjenkner@inode.at>
Cc: 16722@debbugs.gnu.org
Subject: bug#16722: 24.3.50; `M-x man' does not handle case appropriately
Date: Sat, 15 Feb 2014 19:04:56 -0800 (PST)	[thread overview]
Message-ID: <aa9e8343-c92f-48e7-879d-edbc94580689@default> (raw)
In-Reply-To: <85d2inkiiy.fsf@iznogoud.viz>

> Since `man -k ls' doesn't give a summary for the `ls' man page I
> think that
> 
> >> (1) `man -k' can't find any whatis database or all those files
> >> are empty.
> 
> At least it doesn't have an entry for ls.  You should be able to
> create this file by running the `makewhatis' command.

Maybe so, and good to know; thanks.  But a priori I don't want to
have to do that.

IIRC, I used to, with an older version of Cygwin, have `M-x man'
provide completion without having to do anything at all.

> >> > Thereafter I can do nothing with that.  Whether I type
> >> > anything after the `^:' or not, TAB just completes to `^:'.
> >>
> >> I think that has been fixed as a by-product of a 2013-01-10
> >> change:	(man): Flush the completion cache between uses.
> >
> > Not sure what you mean, but the behavior is not fixed for me.
> > I still get exactly the same behavior I reported, even with
> > Emacs builds from only a few days ago.
> 
> IIUC, you had the following in mind:
> 
> M-x man RET TAB C-g M-x man RET l TAB

Not necessarily.  Why `C-g'?  If the first TAB shows all
completions then I might just type `l TAB' to narrow that down.

But this is a detail.  Sure, what you wrote is something I would
also expect to work.  You didn't say what you expect to happen
after the first TAB, but if it is to show all possible
completions then yes.

> used to give `^:' (because the cache of man page name completions
> was not flushed between invocations of man).
> 
> If you set Man-man-k-use-anchor to t it should give [No match] now.

No, it does not.  I did this:

M-x man C-g  ; Load library man, since `Man-man-k-use-anchor'
             ; is not yet defined (this step not really needed)

M-: (setq Man-man-k-use-anchor t)

M-x man RET TAB  ; Shows ^: as the sole completion.

It does not say [No match].  Did I understand you correctly that
you thought it would, or am I missing something?

AFAICT, the value of `Man-man-k-use-anchor' makes no difference.
If setting that to non-nil solved the problem then things would
be fine.  I have no problem setting another variable in my setup.

(FWIW: Why isn't this variable a user option?)

> > that is still the behavior I see: there is no completion for
> > `M-x man'.
> 
> As explained above the source for the completions is the `whatis'
> file at a man root directory.

Isn't it possible to have `M-x man' provide completion without
users having to use `makewhatis'?  I think that was the case
in the past.  Or if it is necessary (for Cygwin), then why not
have Emacs do that when necessary (upon user confirmation)?

Why should an Emacs user have to know about this at all, and
invoke such a shell command directly?





  reply	other threads:[~2014-02-16  3:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-11 14:45 bug#16722: 24.3.50; `M-x man' does not handle case appropriately Drew Adams
2014-02-15 17:17 ` Wolfgang Jenkner
2014-02-15 19:55   ` Drew Adams
2014-02-16  0:28     ` Wolfgang Jenkner
2014-02-16  3:04       ` Drew Adams [this message]
2014-02-15 20:54   ` Eli Zaretskii
2014-02-16  1:08     ` Wolfgang Jenkner
2014-02-16  3:50       ` Eli Zaretskii
2014-02-16 14:17         ` Wolfgang Jenkner
2017-02-01 19:25           ` Drew Adams
2017-02-01 19:50             ` Eli Zaretskii
2017-02-02  1:08             ` npostavs
2020-09-25 10:21         ` Lars Ingebrigtsen
2020-09-25 11:29           ` Eli Zaretskii
2020-09-25 11:36             ` Lars Ingebrigtsen
     [not found] <<bc83b9db-228c-4eb1-893a-9672bb376a4f@default>
     [not found] ` <<85fvnkwarc.fsf@iznogoud.viz>
     [not found]   ` <<834n40ayg4.fsf@gnu.org>
     [not found]     ` <<858utbkgof.fsf@iznogoud.viz>
     [not found]       ` <<831tz3btr8.fsf@gnu.org>
     [not found]         ` <<85ob27ywed.fsf@iznogoud.viz>
     [not found]           ` <<c7667a78-58ba-4e9a-8eb9-c86727395b79@default>
     [not found]             ` <<831svhwv0z.fsf@gnu.org>
2017-02-01 22:36               ` Drew Adams

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

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

  git send-email \
    --in-reply-to=aa9e8343-c92f-48e7-879d-edbc94580689@default \
    --to=drew.adams@oracle.com \
    --cc=16722@debbugs.gnu.org \
    --cc=wjenkner@inode.at \
    /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.
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.