From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#6319: 23.2; man command can no longer accept -k, spaces Date: Mon, 31 May 2010 12:18:08 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1275324403 25042 80.91.229.12 (31 May 2010 16:46:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 31 May 2010 16:46:43 +0000 (UTC) Cc: 6319@debbugs.gnu.org To: Mark Diekhans Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 31 18:46:40 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OJ88O-0002wq-0F for geb-bug-gnu-emacs@m.gmane.org; Mon, 31 May 2010 18:46:40 +0200 Original-Received: from localhost ([127.0.0.1]:43627 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJ88N-0003Qw-9x for geb-bug-gnu-emacs@m.gmane.org; Mon, 31 May 2010 12:46:39 -0400 Original-Received: from [140.186.70.92] (port=39864 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJ7qQ-000307-M3 for bug-gnu-emacs@gnu.org; Mon, 31 May 2010 12:28:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJ7pz-00009f-2h for bug-gnu-emacs@gnu.org; Mon, 31 May 2010 12:27:40 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42438) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJ7pz-00009b-1G for bug-gnu-emacs@gnu.org; Mon, 31 May 2010 12:27:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OJ7he-0005Wy-CO; Mon, 31 May 2010 12:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 May 2010 16:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6319 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6319-submit@debbugs.gnu.org id=B6319.127532269421248 (code B ref 6319); Mon, 31 May 2010 16:19:02 +0000 Original-Received: (at 6319) by debbugs.gnu.org; 31 May 2010 16:18:14 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJ7gr-0005Wf-Qg for submit@debbugs.gnu.org; Mon, 31 May 2010 12:18:13 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJ7gq-0005WY-03 for 6319@debbugs.gnu.org; Mon, 31 May 2010 12:18:12 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAKR9A0xMCpdY/2dsb2JhbACeMnLAUoUWBINniGWDFQ X-IronPort-AV: E=Sophos;i="4.53,334,1272859200"; d="scan'208";a="66307588" Original-Received: from 76-10-151-88.dsl.teksavvy.com (HELO pastel.home) ([76.10.151.88]) by ironport2-out.pppoe.ca with ESMTP; 31 May 2010 12:18:09 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 59D9F81F8; Mon, 31 May 2010 12:18:08 -0400 (EDT) In-Reply-To: (Mark Diekhans's message of "Sun, 30 May 2010 23:52:54 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 31 May 2010 12:19:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37446 Archived-At: > 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)