[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Links in WoMan buffer should not call `man'
From: |
Reiner Steib |
Subject: |
Re: Links in WoMan buffer should not call `man' |
Date: |
Sat, 26 Aug 2006 13:36:56 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
On Sat, Aug 26 2006, Chong Yidong wrote:
> Reiner Steib <address@hidden> 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/