Mercurial > hg > xemacs-beta
diff lisp/packages/man.el @ 80:1ce6082ce73f r20-0b90
Import from CVS: tag r20-0b90
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:06:37 +0200 |
parents | c0c698873ce1 |
children | 6a378aca36af |
line wrap: on
line diff
--- a/lisp/packages/man.el Mon Aug 13 09:05:44 2007 +0200 +++ b/lisp/packages/man.el Mon Aug 13 09:06:37 2007 +0200 @@ -575,17 +575,21 @@ (error (buffer-substring (point) (progn (end-of-line) (point)))))) nil) - +(defvar Manual-entry-switches '("-s") + "Switches for `manual-entry' including switch for section (at the end).") +(defvar Manual-apropos-switches nil + "Additional switches for `Manpage-apropos' excluding switch `-k'.") + (defun Manual-run-formatter (name topic section) (cond ((string-match "roff\\'" Manual-program) ;; kludge kludge (call-process Manual-program nil t nil "-Tman" "-man" name)) - (Manual-section-switch - (call-process Manual-program nil t nil Manual-section-switch - section topic)) (t - (call-process Manual-program nil t nil section topic)))) - + (apply 'call-process Manual-program nil t nil + (append (if apropos-mode + Manual-apropos-switches + Manual-entry-switches) + (list section topic)))))) (defvar Manual-mode-map (let ((m (make-sparse-keymap)))