diff options
| author | Richard M. Stallman | 1993-11-22 06:34:22 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-11-22 06:34:22 +0000 |
| commit | 9de0760cc8208b8a5ce16411d20c2a17fad2fb87 (patch) | |
| tree | 65f5f1efb58b461f26ba7823ad2240c5f51464d3 | |
| parent | 1f11a5cab282e94439e4e5a7a2e9a17b19af5573 (diff) | |
| download | emacs-9de0760cc8208b8a5ce16411d20c2a17fad2fb87.tar.gz emacs-9de0760cc8208b8a5ce16411d20c2a17fad2fb87.zip | |
(Man-specified-section-option): New variable.
(Man-translate-references): Use that variable.
| -rw-r--r-- | lisp/man.el | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/man.el b/lisp/man.el index 709580f8636..a4bf961f389 100644 --- a/lisp/man.el +++ b/lisp/man.el | |||
| @@ -209,6 +209,14 @@ This regular expression should start with a `^' character.") | |||
| 209 | (defvar Man-switches "" | 209 | (defvar Man-switches "" |
| 210 | "*Switches passed to the man command, as a single string.") | 210 | "*Switches passed to the man command, as a single string.") |
| 211 | 211 | ||
| 212 | ;; Would someone like to provide a good test for being on Solaris? | ||
| 213 | ;; We could give it its own value of system-type, but that has drawbacks; | ||
| 214 | ;; it would require changes in lots of places that test system-type. | ||
| 215 | (defvar Man-specified-section-option "" | ||
| 216 | "*Option that indicates a specified a manual section name. | ||
| 217 | On most Unix systems, no option is needed for this. | ||
| 218 | On Solaris, you need to set this to \"-s \".") | ||
| 219 | |||
| 212 | ;; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | 220 | ;; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 213 | ;; end user variables | 221 | ;; end user variables |
| 214 | 222 | ||
| @@ -314,7 +322,7 @@ This regular expression should start with a `^' character.") | |||
| 314 | (Man-downcase s2) | 322 | (Man-downcase s2) |
| 315 | s2) | 323 | s2) |
| 316 | slist nil)))) | 324 | slist nil)))) |
| 317 | (concat section " " word)) | 325 | (concat Man-specified-section-option section " " word)) |
| 318 | ref)) | 326 | ref)) |
| 319 | 327 | ||
| 320 | (defun Man-linepos (&optional position col-p) | 328 | (defun Man-linepos (&optional position col-p) |