Commit d801ac09 authored by Jim Blandy's avatar Jim Blandy

* man.el (manual-entry): Recognize the subject(section) syntax.

parent c45a6306
......@@ -419,6 +419,13 @@ Universal argument ARG, is passed to Man-getpage-in-background."
(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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment