aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1997-03-01 17:45:36 +0000
committerKarl Heuer1997-03-01 17:45:36 +0000
commite7bf8d10cdfb7ca0a1660f52d091e6aa533e1f4f (patch)
tree15360020ac419941fbc3ddb220b558e296945d96
parentbec1289c6f5e9c17dbc8ce786b8e2b753915b9db (diff)
downloademacs-e7bf8d10cdfb7ca0a1660f52d091e6aa533e1f4f.tar.gz
emacs-e7bf8d10cdfb7ca0a1660f52d091e6aa533e1f4f.zip
(man-follow): New function.
(Man-mode-map): Bind it.
-rw-r--r--lisp/man.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/man.el b/lisp/man.el
index 5d405ad4ba2..eb1e3a34b50 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -309,6 +309,7 @@ This regular expression should start with a `^' character.")
309 (define-key Man-mode-map "k" 'Man-kill) 309 (define-key Man-mode-map "k" 'Man-kill)
310 (define-key Man-mode-map "q" 'Man-quit) 310 (define-key Man-mode-map "q" 'Man-quit)
311 (define-key Man-mode-map "m" 'man) 311 (define-key Man-mode-map "m" 'man)
312 (define-key Man-mode-map "\r" 'man-follow)
312 (define-key Man-mode-map "?" 'describe-mode) 313 (define-key Man-mode-map "?" 'describe-mode)
313 ) 314 )
314 315
@@ -523,6 +524,14 @@ If a buffer already exists for this man page, it will display immediately."
523 524
524 (Man-getpage-in-background man-args)) 525 (Man-getpage-in-background man-args))
525 526
527;;;###autoload
528(defun man-follow (man-args)
529 "Get a Un*x manual page of the item under point and put it in a buffer."
530 (interactive (list (Man-default-man-entry)))
531 (if (or (not man-args)
532 (string= man-args ""))
533 (error "No item under point")
534 (man man-args)))
526 535
527(defun Man-getpage-in-background (topic) 536(defun Man-getpage-in-background (topic)
528 "Uses TOPIC to build and fire off the manpage and cleaning command." 537 "Uses TOPIC to build and fire off the manpage and cleaning command."