Mercurial > emacs
comparison lisp/woman.el @ 69793:93d87ad179a4
* man.el (Man-mode-map): Restore the \r binding.
(Man-abstract-xref-man-page): If Man-target-string is a function,
call it.
(Man-highlight-references): Use Man-default-man-entry to get the
target. Deal with xrefs too.
(Man-highlight-references0): Don't call the target function.
* woman.el (WoMan-xref-man-page): Strip the section number, woman
cannot deal with it.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Tue, 04 Apr 2006 16:46:03 +0000 |
parents | 3bd95f4f2941 |
children | a77e27984bb1 |
comparison
equal
deleted
inserted
replaced
69792:06c899cdd0b6 | 69793:93d87ad179a4 |
---|---|
426 | 426 |
427 (require 'man) | 427 (require 'man) |
428 (require 'button) | 428 (require 'button) |
429 (define-button-type 'WoMan-xref-man-page | 429 (define-button-type 'WoMan-xref-man-page |
430 :supertype 'Man-abstract-xref-man-page | 430 :supertype 'Man-abstract-xref-man-page |
431 'func 'woman) | 431 'func (lambda (arg) |
432 (woman | |
433 ;; `woman' cannot deal with arguments that contain a | |
434 ;; section name, like close(2), so strip the section name. | |
435 (if (string-match Man-reference-regexp arg) | |
436 (subqstring arg 0 (match-end 1)) | |
437 arg)))) | |
432 | 438 |
433 (eval-when-compile ; to avoid compiler warnings | 439 (eval-when-compile ; to avoid compiler warnings |
434 (require 'dired) | 440 (require 'dired) |
435 (require 'apropos)) | 441 (require 'apropos)) |
436 | 442 |