From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel Subject: Re: Links in WoMan buffer should not call `man' Date: Sat, 26 Aug 2006 13:36:56 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: <8764gg8nv7.fsf@stupidchicken.com> Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1156597561 18805 80.91.229.2 (26 Aug 2006 13:06:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 26 Aug 2006 13:06:01 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 26 15:06:00 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 1GGxrL-0005L4-24 for ged-emacs-devel@m.gmane.org; Sat, 26 Aug 2006 15:05:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GGxrK-0007bC-Io for ged-emacs-devel@m.gmane.org; Sat, 26 Aug 2006 09:05:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GGxrA-0007b7-Bk for emacs-devel@gnu.org; Sat, 26 Aug 2006 09:05:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GGxr7-0007ae-WA for emacs-devel@gnu.org; Sat, 26 Aug 2006 09:05:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GGxr7-0007aZ-Mh for emacs-devel@gnu.org; Sat, 26 Aug 2006 09:05:45 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GGxzd-0004HE-0X for emacs-devel@gnu.org; Sat, 26 Aug 2006 09:14:33 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GGxr0-0005Hy-H1 for emacs-devel@gnu.org; Sat, 26 Aug 2006 15:05:38 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Aug 2006 15:05:38 +0200 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Aug 2006 15:05:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-To: emacs-devel@gnu.org Original-Lines: 35 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: mtjf/D:es1T0wHO:&CJ'ZXe"l; 3C--rw\z!{`eFwL){|]RpI+4{u25L=5C /0>KuGeTsk<~<&NE-AKV1560e!+RJeyWmSskkrJm?[vUV#66{T_m|Ae<||Ku#Mk5`y&O`n~z2; n8eP J5#2h@2eQgV@E70IY_0WlEx!"&giy{+\%h1LJox$zv@/l%ZmU4^tZA>xQpnkUBVC5.jpg#0'(+2?Rs )NAr:>3<=WxHE$ktbLysDIM5TbmHu*3 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:58915 Archived-At: On Sat, Aug 26 2006, Chong Yidong wrote: > Reiner Steib writes: >> 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. Thanks it does fix it for me. Will you install it? [...] > ;; 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." Maybe we should add something like "This function is a replacement of `man-follow' in WoMan mode." in the doc string. > ! (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)))) Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/