diff options
| author | Chong Yidong | 2012-08-09 21:37:31 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-08-09 21:37:31 +0800 |
| commit | dee4ef9388bd6cf5530e71736e0298b42382f32e (patch) | |
| tree | a920349d0206603e8229665d8e0704de96f84c42 | |
| parent | ee77919d83f02b582e1c44723360d1a5fae5ca38 (diff) | |
| download | emacs-dee4ef9388bd6cf5530e71736e0298b42382f32e.tar.gz emacs-dee4ef9388bd6cf5530e71736e0298b42382f32e.zip | |
Convert several man.el defvars to defcustoms.
* man.el (Man-switches, Man-sed-command, Man-awk-command)
(Man-mode-hook, Man-cooked-hook, Man-untabify-command-args)
(Man-untabify-command, manual-program): Convert to defcustom.
Fixes: debbugs:10429
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/man.el | 60 |
2 files changed, 39 insertions, 26 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2ff28eeb969..23cd53f1246 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2012-08-09 Chong Yidong <cyd@gnu.org> | 1 | 2012-08-09 Chong Yidong <cyd@gnu.org> |
| 2 | 2 | ||
| 3 | * man.el (Man-switches, Man-sed-command, Man-awk-command) | ||
| 4 | (Man-mode-hook, Man-cooked-hook, Man-untabify-command-args) | ||
| 5 | (Man-untabify-command, manual-program): Convert to defcustom | ||
| 6 | (Bug#10429). | ||
| 7 | |||
| 3 | * vc/add-log.el (change-log-mode): Bind comment-start to nil. | 8 | * vc/add-log.el (change-log-mode): Bind comment-start to nil. |
| 4 | 9 | ||
| 5 | * descr-text.el (describe-char): Don't insert extra newlines | 10 | * descr-text.el (describe-char): Don't insert extra newlines |
diff --git a/lisp/man.el b/lisp/man.el index 975aeb4db30..6b1b9dc042a 100644 --- a/lisp/man.el +++ b/lisp/man.el | |||
| @@ -90,9 +90,6 @@ | |||
| 90 | 90 | ||
| 91 | (require 'button) | 91 | (require 'button) |
| 92 | 92 | ||
| 93 | ;; vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv | ||
| 94 | ;; empty defvars (keep the compiler quiet) | ||
| 95 | |||
| 96 | (defgroup man nil | 93 | (defgroup man nil |
| 97 | "Browse UNIX manual pages." | 94 | "Browse UNIX manual pages." |
| 98 | :prefix "Man-" | 95 | :prefix "Man-" |
| @@ -100,6 +97,7 @@ | |||
| 100 | :group 'help) | 97 | :group 'help) |
| 101 | 98 | ||
| 102 | (defvar Man-notify) | 99 | (defvar Man-notify) |
| 100 | |||
| 103 | (defcustom Man-filter-list nil | 101 | (defcustom Man-filter-list nil |
| 104 | "Manpage cleaning filter command phrases. | 102 | "Manpage cleaning filter command phrases. |
| 105 | This variable contains a list of the following form: | 103 | This variable contains a list of the following form: |
| @@ -121,9 +119,6 @@ the manpage buffer." | |||
| 121 | (defvar Man-sed-script nil | 119 | (defvar Man-sed-script nil |
| 122 | "Script for sed to nuke backspaces and ANSI codes from manpages.") | 120 | "Script for sed to nuke backspaces and ANSI codes from manpages.") |
| 123 | 121 | ||
| 124 | ;; vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv | ||
| 125 | ;; user variables | ||
| 126 | |||
| 127 | (defcustom Man-fontify-manpage-flag t | 122 | (defcustom Man-fontify-manpage-flag t |
| 128 | "Non-nil means make up the manpage with fonts." | 123 | "Non-nil means make up the manpage with fonts." |
| 129 | :type 'boolean | 124 | :type 'boolean |
| @@ -236,26 +231,40 @@ Used in `bookmark-set' to get the default bookmark name." | |||
| 236 | :version "24.1" | 231 | :version "24.1" |
| 237 | :type 'string :group 'bookmark) | 232 | :type 'string :group 'bookmark) |
| 238 | 233 | ||
| 239 | (defvar manual-program "man" | 234 | (defcustom manual-program "man" |
| 240 | "The name of the program that produces man pages.") | 235 | "Program used by `man' to produce man pages." |
| 236 | :type 'string | ||
| 237 | :group 'man) | ||
| 241 | 238 | ||
| 242 | (defvar Man-untabify-command "pr" | 239 | (defcustom Man-untabify-command "pr" |
| 243 | "Command used for untabifying.") | 240 | "Program used by `man' for untabifying." |
| 241 | :type 'string | ||
| 242 | :group 'man) | ||
| 244 | 243 | ||
| 245 | (defvar Man-untabify-command-args (list "-t" "-e") | 244 | (defcustom Man-untabify-command-args (list "-t" "-e") |
| 246 | "List of arguments to be passed to `Man-untabify-command' (which see).") | 245 | "List of arguments to be passed to `Man-untabify-command' (which see)." |
| 246 | :type '(repeat string) | ||
| 247 | :group 'man) | ||
| 247 | 248 | ||
| 248 | (defvar Man-sed-command "sed" | 249 | (defcustom Man-sed-command "sed" |
| 249 | "Command used for processing sed scripts.") | 250 | "Program used by `man' to process sed scripts." |
| 251 | :type 'string | ||
| 252 | :group 'man) | ||
| 250 | 253 | ||
| 251 | (defvar Man-awk-command "awk" | 254 | (defcustom Man-awk-command "awk" |
| 252 | "Command used for processing awk scripts.") | 255 | "Program used by `man' to process awk scripts." |
| 256 | :type 'string | ||
| 257 | :group 'man) | ||
| 253 | 258 | ||
| 254 | (defvar Man-mode-hook nil | 259 | (defcustom Man-mode-hook nil |
| 255 | "Hook run when Man mode is enabled.") | 260 | "Hook run when Man mode is enabled." |
| 261 | :type 'hook | ||
| 262 | :group 'man) | ||
| 256 | 263 | ||
| 257 | (defvar Man-cooked-hook nil | 264 | (defcustom Man-cooked-hook nil |
| 258 | "Hook run after removing backspaces but before `Man-mode' processing.") | 265 | "Hook run after removing backspaces but before `Man-mode' processing." |
| 266 | :type 'hook | ||
| 267 | :group 'man) | ||
| 259 | 268 | ||
| 260 | (defvar Man-name-regexp "[-a-zA-Z0-9_+][-a-zA-Z0-9_.:+]*" | 269 | (defvar Man-name-regexp "[-a-zA-Z0-9_+][-a-zA-Z0-9_.:+]*" |
| 261 | "Regular expression describing the name of a manpage (without section).") | 270 | "Regular expression describing the name of a manpage (without section).") |
| @@ -330,11 +339,12 @@ This regexp should not start with a `^' character.") | |||
| 330 | (concat "\\(" Man-name-regexp "\\)\\((\\(" Man-section-regexp "\\))\\)?") | 339 | (concat "\\(" Man-name-regexp "\\)\\((\\(" Man-section-regexp "\\))\\)?") |
| 331 | "Regular expression describing a reference in the SEE ALSO section.") | 340 | "Regular expression describing a reference in the SEE ALSO section.") |
| 332 | 341 | ||
| 333 | (defvar Man-switches "" | 342 | (defcustom Man-switches "" |
| 334 | "Switches passed to the man command, as a single string. | 343 | "Switches passed to the man command, as a single string. |
| 335 | 344 | For example, the -a switch lets you see all the manpages for a | |
| 336 | If you want to be able to see all the manpages for a subject you type, | 345 | specified subject, if your `man' program supports it." |
| 337 | make -a one of the switches, if your `man' program supports it.") | 346 | :type 'string |
| 347 | :group 'man) | ||
| 338 | 348 | ||
| 339 | (defvar Man-specified-section-option | 349 | (defvar Man-specified-section-option |
| 340 | (if (string-match "-solaris[0-9.]*$" system-configuration) | 350 | (if (string-match "-solaris[0-9.]*$" system-configuration) |
| @@ -348,8 +358,6 @@ make -a one of the switches, if your `man' program supports it.") | |||
| 348 | Otherwise, the value is whatever the function | 358 | Otherwise, the value is whatever the function |
| 349 | `Man-support-local-filenames' should return.") | 359 | `Man-support-local-filenames' should return.") |
| 350 | 360 | ||
| 351 | ;; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| 352 | ;; end user variables | ||
| 353 | 361 | ||
| 354 | ;; other variables and keymap initializations | 362 | ;; other variables and keymap initializations |
| 355 | (defvar Man-original-frame) | 363 | (defvar Man-original-frame) |