From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: Re: man page prompter thinks "|" is legitimate Date: 18 Oct 2002 07:51:41 +0800 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <87y98w62uq.fsf@jidanni.org> References: <200210161440.JAA24997@mailhost1.vuse.vanderbilt.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035018474 8130 80.91.224.249 (19 Oct 2002 09:07:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 19 Oct 2002 09:07:54 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 182paI-00026Q-00 for ; Sat, 19 Oct 2002 11:07:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 182paw-0008NR-00; Sat, 19 Oct 2002 05:08:30 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 182paM-0008C1-00 for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2002 05:07:54 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 182paK-0008Bk-00 for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2002 05:07:53 -0400 Original-Received: from gnudist.gnu.org ([199.232.41.7]) by monty-python.gnu.org with esmtp (Exim 4.10) id 182ZhQ-0002oP-01 for bug-gnu-emacs@gnu.org; Fri, 18 Oct 2002 12:10:08 -0400 Original-Received: from msr14.hinet.net ([168.95.4.114] helo=msr.hinet.net) by gnudist.gnu.org with esmtp (Exim 4.10) id 182XED-0003cI-00 for bug-gnu-emacs@gnu.org; Fri, 18 Oct 2002 09:31:50 -0400 Original-Received: from debian (61-227-47-149.HINET-IP.hinet.net [61.227.47.149]) by msr.hinet.net (8.9.3/8.9.3) with ESMTP id VAA08797; Fri, 18 Oct 2002 21:27:10 +0800 (CST) Original-Received: from jidanni by debian with local (Exim 3.35 #1 (Debian)) id 182KQX-0000fG-00; Fri, 18 Oct 2002 07:51:41 +0800 Original-To: "David R. Linn" In-Reply-To: <200210161440.JAA24997@mailhost1.vuse.vanderbilt.edu> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Lines: 45 Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:3724 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3724 D> vertical-bar *is* a legitmate filename character under UNIX. Thus, D> if I felt it was appropriate, I could name a man page with a vbar D> in it's filename. This might not be particularly *wise* but it D> *would* be legit so tools need to handle it. Yes, vertical bar might even be a legitimate character in an English given name (Hello, I'm Monty [vertical bar] Python) however, all this will slow up my lifestyle, and RMS agrees with me, so there. From: Richard Stallman Subject: Re: man page prompter thinks "|" is legitimate To: jidanni@dman.ddts.net How about this change? *** man.el.~1.112.~ Tue Oct 15 18:21:41 2002 --- man.el Wed Oct 16 11:36:04 2002 *************** *** 497,503 **** (save-excursion ;; Default man entry title is any word the cursor is on, or if ;; cursor not on a word, then nearest preceding word. ! (setq word (current-word)) (if (string-match "[._]+$" word) (setq word (substring word 0 (match-beginning 0)))) ;; If looking at something like ioctl(2) or brc(1M), include the --- 497,506 ---- (save-excursion ;; Default man entry title is any word the cursor is on, or if ;; cursor not on a word, then nearest preceding word. ! (skip-chars-backward "-a-zA-Z0-9._+") ! (let ((start (point))) ! (skip-chars-forward "-a-zA-Z0-9._+") ! (setq word (buffer-substring start (point)))) (if (string-match "[._]+$" word) (setq word (substring word 0 (match-beginning 0)))) ;; If looking at something like ioctl(2) or brc(1M), include the -------- P.S. how about those Perl::Pages with those ::'s jazz, did RMS's change remember them [:: could be expected, but not |, because nobody would put a | in a man page name and expect their jazz to not break debian, redhat, etc. distribution scripts before even making it into a distribution.] -- http://jidanni.org/ Taiwan(04)25854780