From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Links in WoMan buffer should not call `man' Date: Fri, 25 Aug 2006 18:14:04 -0400 Message-ID: <8764gg8nv7.fsf@stupidchicken.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1156543971 6244 80.91.229.2 (25 Aug 2006 22:12:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 25 Aug 2006 22:12:51 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 26 00:12:49 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 1GGjuy-0002xW-30 for ged-emacs-devel@m.gmane.org; Sat, 26 Aug 2006 00:12:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GGjux-0006EX-Hr for ged-emacs-devel@m.gmane.org; Fri, 25 Aug 2006 18:12:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GGjul-0006BS-HY for emacs-devel@gnu.org; Fri, 25 Aug 2006 18:12:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GGjui-00065H-Sn for emacs-devel@gnu.org; Fri, 25 Aug 2006 18:12:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GGjui-000656-QD for emacs-devel@gnu.org; Fri, 25 Aug 2006 18:12:32 -0400 Original-Received: from [18.19.1.138] (helo=cyd) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GGk35-0004M2-Q4 for emacs-devel@gnu.org; Fri, 25 Aug 2006 18:21:11 -0400 Original-Received: by cyd (Postfix, from userid 1000) id C6F6F4E2C2; Fri, 25 Aug 2006 18:14:04 -0400 (EDT) Original-To: emacs-devel@gnu.org In-Reply-To: (Reiner Steib's message of "Fri, 25 Aug 2006 21:52:21 +0200") 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:58884 Archived-At: Reiner Steib writes: > Hi, > > in GNU Emacs 22.0.50.3 (i686-pc-linux-gnu, GTK+ Version 2.8.3) of > 2006-08-24 on viandante, following manual links in WoMan buffers > should create new WoMan buffers, not new man buffers. This hack should fix it. *** emacs/lisp/woman.el.~1.44.~ 2006-04-17 18:12:14.000000000 -0400 --- emacs/lisp/woman.el 2006-08-25 18:12:59.000000000 -0400 *************** *** 1750,1756 **** (define-key woman-mode-map [M-mouse-2] 'woman-follow-word) ;; We don't need to call `man' when we are in `woman-mode'. ! (define-key woman-mode-map [remap man] 'woman)) (defun woman-follow-word (event) "Run WoMan with word under mouse as topic. --- 1750,1767 ---- (define-key woman-mode-map [M-mouse-2] 'woman-follow-word) ;; We don't need to call `man' when we are in `woman-mode'. ! (define-key woman-mode-map [remap man] 'woman) ! (define-key woman-mode-map [remap man-follow] 'woman-follow)) ! ! (defun woman-follow (topic) ! "Get a Un*x manual page of the item under point and put it in a buffer." ! (interactive (list (Man-default-man-entry))) ! (if (or (not topic) ! (string= topic "")) ! (error "No item under point") ! (woman (if (string-match Man-reference-regexp topic) ! (substring topic 0 (match-end 1)) ! topic)))) (defun woman-follow-word (event) "Run WoMan with word under mouse as topic.