GNU bug report logs - #6319
23.2; man command can no longer accept -k, spaces

Previous Next

Package: emacs;

Reported by: Mark Diekhans <markd <at> soe.ucsc.edu>

Date: Mon, 31 May 2010 12:24:01 UTC

Severity: normal

Found in version 23.2

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mark Diekhans <markd <at> soe.ucsc.edu>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 6319 <at> debbugs.gnu.org
Subject: bug#6319: 23.2; man command can no longer accept -k, spaces
Date: Mon, 31 May 2010 10:29:49 -0700
thanks Stefan

Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
> > M-xman will no longer allow '-k pattern' or '1 cat', even though the
> > help documentation claims this should work.
> 
>   M-x man RET 1 SPC cat RET
> 
> works for me.

ah, by error in think this didn't work

>  Admittedly, for -k you have to work a little harder, but:
> 
>   M-x man RET -k C-q SPC haskell RET
> 
> works.  I've just installed the patch below which makes
> 
>   M-x man RET -k SPC haskell RET
> 
> work as well.


Perfect, this is a bit improvement..

Mark
 
> > This appears to be due to the completion functionality, which has no
> > documentation way to disable it
> 
> The completion code only enters into the picture if you actively
> call it.  Sadly, SPC is bound to a command that calls completion, so you
> sometimes need C-q SPC to insert a space when you need to override the
> completion code.
> 
> 
>         Stefan
> 
> 
> === modified file 'lisp/man.el'
> --- lisp/man.el	2010-03-05 20:18:20 +0000
> +++ lisp/man.el	2010-05-31 16:09:16 +0000
> @@ -754,6 +754,9 @@
>    (cond
>     ((eq action 'lambda)
>      (not (string-match "([^)]*\\'" string)))
> +   ((equal string "-k")
> +    ;; Let SPC (minibuffer-complete-word) insert the space.
> +    (complete-with-action action '("-k ") string pred))
>     (t
>      (let ((table (cdr Man-completion-cache))
>            (section nil)
> 




This bug report was last modified 15 years and 37 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.