From gg@zip.com.au Sun Dec 6 16:13:25 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 7 Dec 2009 00:13:26 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.3 required=4.0 tests=AWL,FOURLA,GENDER, IMPRONONCABLE_1,MURPHY_WRONG_WORD1,MURPHY_WRONG_WORD2 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB70DNAK010052 for ; Sun, 6 Dec 2009 16:13:24 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHREA-0007sy-F6 for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2009 19:13:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHRE5-0007qy-Lf for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2009 19:13:21 -0500 Received: from [199.232.76.173] (port=35311 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHRE5-0007qq-FU for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2009 19:13:17 -0500 Received: from mailout1-1.pacific.net.au ([61.8.2.208]:51821 helo=mailout1.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NHRE5-0007lT-5C for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2009 19:13:17 -0500 Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout1.pacific.net.au (Postfix) with ESMTP id E307A5107C3 for ; Mon, 7 Dec 2009 11:13:08 +1100 (EST) Received: from blah.blah (ppp240E.dyn.pacific.net.au [61.8.36.14]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id EED5E8C19 for ; Mon, 7 Dec 2009 11:13:07 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1NHRDX-0003z8-Uk for bug-gnu-emacs@gnu.org; Mon, 07 Dec 2009 11:12:44 +1100 From: Kevin Ryde To: bug-gnu-emacs@gnu.org Subject: 23.1; M-x man -k error message Date: Mon, 07 Dec 2009 11:12:42 +1100 Message-ID: <87k4wz7ibp.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) --=-=-= If you do an M-x man keyword search with nothing matching, like M-x man -k jkjkjkjk Ret The result shown is error in process sentinel: Can't find the -k jkjkjkjk manpage where reads as if it thought the "-k" was the page name -- which is not the case, M-x man understands -k is an "apropos" keyword search. This could be due to "man-db" (as used in debian and elsewhere) printing nothing for no matches, as opposed to a "nothing appropriate" message which Man-bgproc-sentinel knows to look for. Perhaps something along the lines below, 2009-12-07 Kevin Ryde * man.el (Man-bgproc-sentinel): When "-k foo" produces no output show error "no matches" rather than "Can't find manpage", as the latter reads like -k was interpreted as a page name (which is not so). --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=man.el.apropos-error.diff --- man.el.~1.193.~ 2009-11-29 08:37:28.000000000 +1100 +++ man.el 2009-12-07 11:04:19.000000000 +1100 @@ -1174,6 +1174,15 @@ (progn (end-of-line) (point))) delete-buff t)) + + ;; "-k foo", successful exit, but no output (from man-db) + ((and (string-match "\\(\\`\\|\\s-\\)-k\\s-" Man-arguments) + (eq (process-status process) 'exit) + (= (process-exit-status process) 0) + (= (point-min) (point-max))) + (setq err-mess (format "%s: no matches" Man-arguments) + delete-buff t)) + ((or (stringp process) (not (and (eq (process-status process) 'exit) (= (process-exit-status process) 0)))) --=-=-= In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.16.5) of 2009-09-14 on raven, modified by Debian configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_AU value of $XMODIFIERS: nil locale-coding-system: iso-latin-1-unix default-enable-multibyte-characters: t --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 26 17:01:36 2009 Received: (at 5138-done) by debbugs.gnu.org; 26 Dec 2009 22:01:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NOehb-0006eW-WD for submit@debbugs.gnu.org; Sat, 26 Dec 2009 17:01:36 -0500 Received: from mailout2-16.pacific.net.au ([125.255.80.143] helo=mailout2.pacific.net.au) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NOehM-0006eJ-Pr for 5138-done@emacsbugs.donarmstrong.com; Sat, 26 Dec 2009 17:01:34 -0500 Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout2.pacific.net.au (Postfix) with ESMTP id 49D2919CF83 for <5138-done@emacsbugs.donarmstrong.com>; Sun, 27 Dec 2009 09:01:14 +1100 (EST) Received: from blah.blah (ppp2BAA.dyn.pacific.net.au [61.8.43.170]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id D82D527407 for <5138-done@emacsbugs.donarmstrong.com>; Sun, 27 Dec 2009 09:01:13 +1100 (EST) Received: from gg by blah.blah with local (Exim 4.71) (envelope-from ) id 1NOegn-000314-Dr for 5138-done@emacsbugs.donarmstrong.com; Sun, 27 Dec 2009 09:00:45 +1100 From: Kevin Ryde To: 5138-done@debbugs.gnu.org Subject: Re: bug#5138: Acknowledgement (23.1; M-x man -k error message) References: <87k4wz7ibp.fsf@blah.blah> Date: Sun, 27 Dec 2009 09:00:45 +1100 In-Reply-To: (Emacs bug Tracking System's message of "Mon, 07 Dec 2009 00:20:09 +0000") Message-ID: <87aax5jsz6.fsf@blah.blah> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 5138-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.3 (-) In absense of any objection I made this change. From unknown Sat Jun 21 10:36:58 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 24 Jan 2010 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator