From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: `Man-default-man-entry' - remove or not remove section numbers Date: Wed, 19 Dec 2007 10:48:05 +0100 Message-ID: <4768E8D5.7020307@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1198058311 27934 80.91.229.12 (19 Dec 2007 09:58:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Dec 2007 09:58:31 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 19 10:58:43 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J4vhI-0002ax-Up for ged-emacs-devel@m.gmane.org; Wed, 19 Dec 2007 10:58:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4vgz-0000f1-Kx for ged-emacs-devel@m.gmane.org; Wed, 19 Dec 2007 04:58:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J4vXl-0005XS-98 for emacs-devel@gnu.org; Wed, 19 Dec 2007 04:48:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J4vXi-0005VX-7c for emacs-devel@gnu.org; Wed, 19 Dec 2007 04:48:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4vXh-0005VJ-8Q for emacs-devel@gnu.org; Wed, 19 Dec 2007 04:48:45 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1J4vXg-0002La-Ir for emacs-devel@gnu.org; Wed, 19 Dec 2007 04:48:44 -0500 Original-Received: (qmail invoked by alias); 19 Dec 2007 09:48:43 -0000 Original-Received: from N913P031.adsl.highway.telekom.at (EHLO [62.47.58.31]) [62.47.58.31] by mail.gmx.net (mp002) with SMTP; 19 Dec 2007 10:48:43 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/YgZs8VjXYcd1iesFwPiCt1/yvovx5SNAub4hATl yxxzpYlrfl0UGS User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:85275 Archived-At: `Man-default-man-entry' has the following contradictory behavior: The following code (when (looking-at "[ \t\r\n]+\\([-a-zA-Z0-9._+:]+\\)([0-9])") (setq word (concat word (match-string-no-properties 1)))) removes the section number for the returned value. The comment and code below ;; If looking at something like ioctl(2) or brc(1M), include the ;; section number in the returned value. Remove text properties. (concat word (if (looking-at (concat "[ \t]*([ \t]*\\(" Man-section-regexp "\\)[ \t]*)")) (format "(%s)" (match-string-no-properties 1))))))) explicitly vote for keeping it. What's the preferred behavior here? Also can someone please explain why this is a `defsubst'?