all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Mark Diekhans <markd@soe.ucsc.edu>
Cc: 6319@debbugs.gnu.org
Subject: bug#6319: 23.2; man command can no longer accept -k, spaces
Date: Mon, 31 May 2010 12:18:08 -0400	[thread overview]
Message-ID: <jwv8w70ysg1.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <yxrtypov9yx.fsf@hgwdev.cse.ucsc.edu> (Mark Diekhans's message of "Sun, 30 May 2010 23:52:54 -0700")

> 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.  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.

> 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)






  reply	other threads:[~2010-05-31 16:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-31  6:52 bug#6319: 23.2; man command can no longer accept -k, spaces Mark Diekhans
2010-05-31 16:18 ` Stefan Monnier [this message]
2010-05-31 17:29   ` Mark Diekhans

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=jwv8w70ysg1.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=6319@debbugs.gnu.org \
    --cc=markd@soe.ucsc.edu \
    /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.