From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.devel Subject: Re: Links in WoMan buffer should not call `man' Date: Mon, 04 Sep 2006 23:38:01 -0400 Message-ID: <87hcznvv8m.fsf@cs.cmu.edu> References: <874pvy0wik.fsf@jurta.org> <87zmdhzusd.fsf@jurta.org> <878xkzz1i0.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1157427497 13965 80.91.229.2 (5 Sep 2006 03:38:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Sep 2006 03:38:17 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 05 05:38:16 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GKRlP-0006wJ-G4 for ged-emacs-devel@m.gmane.org; Tue, 05 Sep 2006 05:38:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKRlP-0001gz-0R for ged-emacs-devel@m.gmane.org; Mon, 04 Sep 2006 23:38:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GKRl9-0001be-Ph for emacs-devel@gnu.org; Mon, 04 Sep 2006 23:37:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GKRl8-0001ZN-MP for emacs-devel@gnu.org; Mon, 04 Sep 2006 23:37:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKRl8-0001Yn-Al for emacs-devel@gnu.org; Mon, 04 Sep 2006 23:37:58 -0400 Original-Received: from [205.201.10.244] (helo=maru) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GKRvm-0005MK-BC; Mon, 04 Sep 2006 23:48:58 -0400 Original-Received: from md5i by maru with local (Exim 4.63) (envelope-from ) id 1GKRlB-0005Bl-M0; Mon, 04 Sep 2006 23:38:01 -0400 Original-To: Juri Linkov In-Reply-To: <878xkzz1i0.fsf@jurta.org> (Juri Linkov's message of "Tue, 05 Sep 2006 01:54:36 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:59345 Archived-At: Juri Linkov writes: >> the last command typed in the woman's dedicated frame fails with the= error >> signalled by string-match: >> >> Man-translate-references: Wrong type argument: arrayp, nil >> >> How about debugging it? This sounds like something straightforward >> to debug. > > I narrowed it to the simplest case. This error occurs only when `M-x man' > is executed in the *Messages* buffer. (The shortest key sequence to > reproduce it: `C-h e M-x man RET man RET') I don't know what the correct fix for the underlying problem is (i.e., the fact that this doesn't error out in other contexts), but the problem can be solved by fixing the Man-name-regexp, which is currenly invalid. The following is a patch for that. Index: man.el =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/emacs/emacs/lisp/man.el,v retrieving revision 1.164 diff -u -p -r1.164 man.el --- man.el 2 Sep 2006 23:28:55 -0000 1.164 +++ man.el 5 Sep 2006 03:37:31 -0000 @@ -259,7 +259,7 @@ the associated section number." (defvar Man-cooked-hook nil "Hook run after removing backspaces but before `Man-mode' processing.") =20 -(defvar Man-name-regexp "[-a-zA-Z0-9_=AD+][-a-zA-Z0-9_.:=AD+]*" +(defvar Man-name-regexp "[-a-zA-Z0-9_+][-a-zA-Z0-9_.:+]*" "Regular expression describing the name of a manpage (without section).") =20 (defvar Man-section-regexp "[0-9][a-zA-Z0-9+]*\\|[LNln]" --=20 Michael Welsh Duggan (md5i@cs.cmu.edu)