[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r109535: Convert several man.el defva
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r109535: Convert several man.el defvars to defcustoms. |
Date: |
Thu, 09 Aug 2012 21:37:31 +0800 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 109535
fixes bug: http://debbugs.gnu.org/10429
committer: Chong Yidong <address@hidden>
branch nick: trunk
timestamp: Thu 2012-08-09 21:37:31 +0800
message:
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.
modified:
lisp/ChangeLog
lisp/man.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2012-08-09 08:16:13 +0000
+++ b/lisp/ChangeLog 2012-08-09 13:37:31 +0000
@@ -1,5 +1,10 @@
2012-08-09 Chong Yidong <address@hidden>
+ * 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
+ (Bug#10429).
+
* vc/add-log.el (change-log-mode): Bind comment-start to nil.
* descr-text.el (describe-char): Don't insert extra newlines
=== modified file 'lisp/man.el'
--- a/lisp/man.el 2012-07-31 13:34:20 +0000
+++ b/lisp/man.el 2012-08-09 13:37:31 +0000
@@ -90,9 +90,6 @@
(require 'button)
-;; vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
-;; empty defvars (keep the compiler quiet)
-
(defgroup man nil
"Browse UNIX manual pages."
:prefix "Man-"
@@ -100,6 +97,7 @@
:group 'help)
(defvar Man-notify)
+
(defcustom Man-filter-list nil
"Manpage cleaning filter command phrases.
This variable contains a list of the following form:
@@ -121,9 +119,6 @@
(defvar Man-sed-script nil
"Script for sed to nuke backspaces and ANSI codes from manpages.")
-;; vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
-;; user variables
-
(defcustom Man-fontify-manpage-flag t
"Non-nil means make up the manpage with fonts."
:type 'boolean
@@ -236,26 +231,40 @@
:version "24.1"
:type 'string :group 'bookmark)
-(defvar manual-program "man"
- "The name of the program that produces man pages.")
-
-(defvar Man-untabify-command "pr"
- "Command used for untabifying.")
-
-(defvar Man-untabify-command-args (list "-t" "-e")
- "List of arguments to be passed to `Man-untabify-command' (which see).")
-
-(defvar Man-sed-command "sed"
- "Command used for processing sed scripts.")
-
-(defvar Man-awk-command "awk"
- "Command used for processing awk scripts.")
-
-(defvar Man-mode-hook nil
- "Hook run when Man mode is enabled.")
-
-(defvar Man-cooked-hook nil
- "Hook run after removing backspaces but before `Man-mode' processing.")
+(defcustom manual-program "man"
+ "Program used by `man' to produce man pages."
+ :type 'string
+ :group 'man)
+
+(defcustom Man-untabify-command "pr"
+ "Program used by `man' for untabifying."
+ :type 'string
+ :group 'man)
+
+(defcustom Man-untabify-command-args (list "-t" "-e")
+ "List of arguments to be passed to `Man-untabify-command' (which see)."
+ :type '(repeat string)
+ :group 'man)
+
+(defcustom Man-sed-command "sed"
+ "Program used by `man' to process sed scripts."
+ :type 'string
+ :group 'man)
+
+(defcustom Man-awk-command "awk"
+ "Program used by `man' to process awk scripts."
+ :type 'string
+ :group 'man)
+
+(defcustom Man-mode-hook nil
+ "Hook run when Man mode is enabled."
+ :type 'hook
+ :group 'man)
+
+(defcustom Man-cooked-hook nil
+ "Hook run after removing backspaces but before `Man-mode' processing."
+ :type 'hook
+ :group 'man)
(defvar Man-name-regexp "[-a-zA-Z0-9_?+][-a-zA-Z0-9_.:?+]*"
"Regular expression describing the name of a manpage (without section).")
@@ -330,11 +339,12 @@
(concat "\\(" Man-name-regexp "\\)\\((\\(" Man-section-regexp "\\))\\)?")
"Regular expression describing a reference in the SEE ALSO section.")
-(defvar Man-switches ""
+(defcustom Man-switches ""
"Switches passed to the man command, as a single string.
-
-If you want to be able to see all the manpages for a subject you type,
-make -a one of the switches, if your `man' program supports it.")
+For example, the -a switch lets you see all the manpages for a
+specified subject, if your `man' program supports it."
+ :type 'string
+ :group 'man)
(defvar Man-specified-section-option
(if (string-match "-solaris[0-9.]*$" system-configuration)
@@ -348,8 +358,6 @@
Otherwise, the value is whatever the function
`Man-support-local-filenames' should return.")
-;; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-;; end user variables
;; other variables and keymap initializations
(defvar Man-original-frame)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r109535: Convert several man.el defvars to defcustoms.,
Chong Yidong <=