Mercurial > emacs
changeset 3644:9e251319cdc8
* man.el (manual-entry): Recognize the subject(section) syntax.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Fri, 11 Jun 1993 10:29:55 +0000 |
parents | f336e1e9a664 |
children | 8fad20cc5408 |
files | lisp/man.el |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/man.el Fri Jun 11 10:11:33 1993 +0000 +++ b/lisp/man.el Fri Jun 11 10:29:55 1993 +0000 @@ -419,6 +419,13 @@ (if (string= default-entry "") (error "No man args given.") (setq man-args default-entry))) + ;; Recognize the subject(section) syntax. + (if (string-match "^[ \t]*\\([^( \t]+\\)[ \t]*(\\([^)]+\\))[ \t]*$" + man-args) + (setq man-args + (concat (substring man-args (match-beginning 2) (match-end 2)) + " " + (substring man-args (match-beginning 1) (match-end 1))))) (if Man-downcase-section-letters-p (setq man-args (Man-downcase man-args))) (Man-getpage-in-background man-args (consp arg))