aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1993-06-19 01:44:52 +0000
committerJim Blandy1993-06-19 01:44:52 +0000
commit733155db8ac90f31fdca1076a8c167be6d7f5837 (patch)
treeae8573f782965804ba88a3713ad874c8f3ff46cf
parenta2c1fc584a48e0b335aba677e54bc358a8760c3e (diff)
downloademacs-733155db8ac90f31fdca1076a8c167be6d7f5837.tar.gz
emacs-733155db8ac90f31fdca1076a8c167be6d7f5837.zip
* man.el (Man-switches): New variable.
(Man-build-man-command): Use it to build the man command. (Man-mode): Mention it in documentation.
-rw-r--r--lisp/man.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/man.el b/lisp/man.el
index 2130f902a35..ae3b0624d3c 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -72,7 +72,6 @@
72;;; Code: 72;;; Code:
73 73
74(require 'assoc) 74(require 'assoc)
75(provide 'man)
76 75
77;; vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv 76;; vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
78;; user variables 77;; user variables
@@ -196,6 +195,8 @@ This regular expression should start with a `^' character.")
196(defvar Man-reference-regexp "[-a-zA-Z0-9_.]+\\(([0-9][a-zA-Z+]*)\\)?" 195(defvar Man-reference-regexp "[-a-zA-Z0-9_.]+\\(([0-9][a-zA-Z+]*)\\)?"
197 "*Regular expression describing a reference in the SEE ALSO section.") 196 "*Regular expression describing a reference in the SEE ALSO section.")
198 197
198(defvar Man-switches ""
199 "*Switches passed to the man command, as a single string.")
199 200
200;; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 201;; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
201;; end user variables 202;; end user variables
@@ -254,7 +255,7 @@ This regular expression should start with a `^' character.")
254 255
255(defun Man-build-man-command () 256(defun Man-build-man-command ()
256 "Builds the entire background manpage and cleaning command." 257 "Builds the entire background manpage and cleaning command."
257 (let ((command "man %s 2>&1 | ") 258 (let ((command (concat "man " Man-switches " %s 2>&1 | "))
258 (flist Man-filter-list)) 259 (flist Man-filter-list))
259 (while flist 260 (while flist
260 (let ((pcom (car (car flist))) 261 (let ((pcom (car (car flist)))
@@ -555,6 +556,7 @@ Man-see-also-regexp Regexp for SEE ALSO section (or your equiv).
555Man-first-heading-regexp Regexp for first heading on a manpage. 556Man-first-heading-regexp Regexp for first heading on a manpage.
556Man-reference-regexp Regexp matching a references in SEE ALSO. 557Man-reference-regexp Regexp matching a references in SEE ALSO.
557Man-version-number Superman version number. 558Man-version-number Superman version number.
559Man-switches Background `man' command switches.
558 560
559The following key bindings are currently in effect in the buffer: 561The following key bindings are currently in effect in the buffer:
560\\{Man-mode-map}" 562\\{Man-mode-map}"
@@ -777,4 +779,7 @@ the echo area."
777 (insert "Using Superman version " Man-version-number ".") 779 (insert "Using Superman version " Man-version-number ".")
778 (message "Using Superman version %s." Man-version-number))) 780 (message "Using Superman version %s." Man-version-number)))
779 781
782
783(provide 'man)
784
780;;; man.el ends here 785;;; man.el ends here