changeset 21365:db005054f15d

Customized.
author Stephen Eglen <stephen@gnu.org>
date Sun, 05 Apr 1998 18:26:32 +0000
parents ab5063078051
children e7b64d0b3b3d
files lisp/emacs-lisp/advice.el lisp/emacs-lisp/backquote.el lisp/emacs-lisp/debug.el lisp/emacs-lisp/gulp.el lisp/emacs-lisp/lisp-mnt.el lisp/emacs-lisp/pp.el lisp/emacs-lisp/profile.el lisp/emacs-lisp/shadow.el lisp/emacs-lisp/trace.el
diffstat 9 files changed, 141 insertions(+), 46 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/advice.el	Sun Apr 05 17:43:09 1998 +0000
+++ b/lisp/emacs-lisp/advice.el	Sun Apr 05 18:26:32 1998 +0000
@@ -1831,10 +1831,15 @@
 ;; @@ Variable definitions:
 ;; ========================
 
+(defgroup advice nil
+  "An overloading mechanism for Emacs Lisp functions."
+  :prefix "ad-"
+  :group 'lisp)
+
 (defconst ad-version "2.14")
 
 ;;;###autoload
-(defvar ad-redefinition-action 'warn
+(defcustom ad-redefinition-action 'warn
   "*Defines what to do with redefinitions during Advice de/activation.
 Redefinition occurs if a previously activated function that already has an
 original definition associated with it gets redefined and then de/activated.
@@ -1843,17 +1848,23 @@
 old original, or keep it and raise an error.  The values `accept', `discard',
 `error' or `warn' govern what will be done.  `warn' is just like `accept' but
 it additionally prints a warning message.  All other values will be
-interpreted as `error'.")
+interpreted as `error'."
+  :type '(choice (const accept) (const discard) (const error) (const warn))
+  :group 'advice)
 
 ;;;###autoload
-(defvar ad-default-compilation-action 'maybe
+(defcustom ad-default-compilation-action 'maybe
   "*Defines whether to compile advised definitions during activation.
 A value of `always' will result in unconditional compilation, `never' will
 always avoid compilation, `maybe' will compile if the byte-compiler is already
 loaded, and `like-original' will compile if the original definition of the
 advised function is compiled or a built-in function. Every other value will
 be interpreted as `maybe'. This variable will only be considered if the 
-COMPILE argument of `ad-activate' was supplied as nil.")
+COMPILE argument of `ad-activate' was supplied as nil."
+  :type '(choice (const always) (const never) (const maybe)
+		 (const like-original))
+  :group 'advice)
+
 
 
 ;; @@ Some utilities:
--- a/lisp/emacs-lisp/backquote.el	Sun Apr 05 17:43:09 1998 +0000
+++ b/lisp/emacs-lisp/backquote.el	Sun Apr 05 18:26:32 1998 +0000
@@ -69,17 +69,27 @@
 
 (defalias 'backquote-list* (symbol-function 'backquote-list*-macro))
 
+(defgroup backquote nil
+  "Implement the ` Lisp construct."
+  :prefix "backquote-"
+  :group 'lisp)
+
 ;; A few advertised variables that control which symbols are used
 ;; to represent the backquote, unquote, and splice operations.
-
-(defvar backquote-backquote-symbol '\`
-  "*Symbol used to represent a backquote or nested backquote (e.g. `).")
+(defcustom backquote-backquote-symbol '\`
+  "*Symbol used to represent a backquote or nested backquote (e.g. `)."
+  :type 'symbol
+  :group 'backquote)
 
-(defvar backquote-unquote-symbol ',
-  "*Symbol used to represent an unquote (e.g. `,') inside a backquote.")
+(defcustom backquote-unquote-symbol ',
+  "*Symbol used to represent an unquote (e.g. `,') inside a backquote."
+  :type 'symbol
+  :group 'backquote)
 
-(defvar backquote-splice-symbol ',@
-  "*Symbol used to represent a splice (e.g. `,@') inside a backquote.")
+(defcustom backquote-splice-symbol ',@
+  "*Symbol used to represent a splice (e.g. `,@') inside a backquote."
+  :type 'symbol
+  :group 'backquote)
 
 ;;;###autoload
 (defmacro backquote (arg)
--- a/lisp/emacs-lisp/debug.el	Sun Apr 05 17:43:09 1998 +0000
+++ b/lisp/emacs-lisp/debug.el	Sun Apr 05 18:26:32 1998 +0000
@@ -28,15 +28,26 @@
 
 ;;; Code:
 
-(defvar debugger-mode-hook  nil
-  "*Hooks run when `debugger-mode' is turned on.")
+(defgroup debugger nil
+  "Debuggers and related commands for Emacs."
+  :prefix "debugger-"
+  :group 'debug)
+
+(defcustom debugger-mode-hook nil
+  "*Hooks run when `debugger-mode' is turned on."
+  :type 'hook
+  :group 'debugger)
 
 
-(defvar debug-function-list nil
-  "List of functions currently set for debug on entry.")
+(defcustom debug-function-list nil
+  "List of functions currently set for debug on entry."
+  :type '(repeat function)
+  :group 'debugger)
 
-(defvar debugger-step-after-exit nil
-  "Non-nil means \"single-step\" after the debugger exits.")
+(defcustom debugger-step-after-exit nil
+  "Non-nil means \"single-step\" after the debugger exits."
+  :type 'boolean
+  :group 'debugger)
 
 (defvar debugger-value nil
   "This is the value for the debugger to return, when it returns.")
@@ -398,8 +409,10 @@
     ))
 
 
-(defvar debugger-record-buffer "*Debugger-record*"
-  "*Buffer name for expression values, for \\[debugger-record-expression].")
+(defcustom debugger-record-buffer "*Debugger-record*"
+  "*Buffer name for expression values, for \\[debugger-record-expression]."
+  :type 'string
+  :group 'debugger)
 
 (defun debugger-record-expression  (exp)
   "Display a variable's value and record it in `*Backtrace-record*' buffer."
--- a/lisp/emacs-lisp/gulp.el	Sun Apr 05 17:43:09 1998 +0000
+++ b/lisp/emacs-lisp/gulp.el	Sun Apr 05 18:26:32 1998 +0000
@@ -30,24 +30,36 @@
 ;; update.
 
 ;;; Code:
+(defgroup gulp nil
+  "Ask for updates for Lisp packages."
+  :prefix "-"
+  :group 'maint)
 
-(defvar gulp-discard "^;+ *Maintainer: *FSF *$"
-  "*The regexp matching the packages not requiring the request for updates.")
+(defcustom gulp-discard "^;+ *Maintainer: *FSF *$"
+  "*The regexp matching the packages not requiring the request for updates."
+  :type 'regexp
+  :group 'gulp)
 
-(defvar gulp-tmp-buffer "*gulp*" "The name of the temporary buffer.")
+(defcustom gulp-tmp-buffer "*gulp*" "The name of the temporary buffer."
+  :type 'string
+  :group 'gulp)
 
-(defvar gulp-max-len 2000
-  "*Distance into a Lisp source file to scan for keywords.")
+(defcustom gulp-max-len 2000
+  "*Distance into a Lisp source file to scan for keywords."
+  :type 'integer
+  :group 'gulp)
 
-(defvar gulp-request-header
+(defcustom gulp-request-header
   (concat
    "This message was created automatically.
 I'm going to start pretesting a new version of GNU Emacs soon, so I'd
 like to ask if you have any updates for the Emacs packages you work on.
 You're listed as the maintainer of the following package(s):\n\n")
-  "*The starting text of a gulp message.")
+  "*The starting text of a gulp message."
+  :type 'string
+  :group 'gulp)
 
-(defvar gulp-request-end
+(defcustom gulp-request-end
   (concat
    "\nIf you have any changes since the version in the previous release ("
    (format "%d.%d" emacs-major-version emacs-minor-version)
@@ -61,7 +73,9 @@
 of information to include.
 
 Thanks.")
-  "*The closing text in a gulp message.")
+  "*The closing text in a gulp message."
+  :type 'string
+  :group 'gulp)
 
 (defun gulp-send-requests (dir &optional time)
   "Send requests for updates to the authors of Lisp packages in directory DIR.
--- a/lisp/emacs-lisp/lisp-mnt.el	Sun Apr 05 17:43:09 1998 +0000
+++ b/lisp/emacs-lisp/lisp-mnt.el	Sun Apr 05 18:26:32 1998 +0000
@@ -117,7 +117,12 @@
 
 ;;; Variables:
 
-(defvar lm-header-prefix "^;;*[ \t]+\\(@\(#\)\\)?[ \t]*\\([\$]\\)?"
+(defgroup lisp-mnt nil
+  "Minor mode for Emacs Lisp maintainers."
+  :prefix "lm-"
+  :group 'maint)
+
+(defcustom lm-header-prefix "^;;*[ \t]+\\(@\(#\)\\)?[ \t]*\\([\$]\\)?"
   "Prefix that is ignored before the tag.
 For example, you can write the 1st line synopsis string and headers like this
 in your Lisp package:
@@ -127,16 +132,24 @@
    ;; @(#) $Maintainer:   Person Foo Bar $
 
 The @(#) construct is used by unix what(1) and
-then $identifier: doc string $ is used by GNU ident(1)")
+then $identifier: doc string $ is used by GNU ident(1)"
+  :type 'regexp
+  :group 'lisp-mnt)
 
-(defvar lm-comment-column 16
-  "Column used for placing formatted output.")
+(defcustom lm-comment-column 16
+  "Column used for placing formatted output."
+  :type 'integer
+  :group 'lisp-mnt)
 
-(defvar lm-commentary-header "Commentary\\|Documentation"
-  "Regexp which matches start of documentation section.")
+(defcustom lm-commentary-header "Commentary\\|Documentation"
+  "Regexp which matches start of documentation section."
+  :type 'regexp
+  :group 'lisp-mnt)
 
-(defvar lm-history-header "Change Log\\|History"
-  "Regexp which matches the start of code log section.")
+(defcustom lm-history-header "Change Log\\|History"
+  "Regexp which matches the start of code log section."
+  :type 'regexp
+  :group 'lisp-mnt)
 
 ;;; Functions:
 
--- a/lisp/emacs-lisp/pp.el	Sun Apr 05 17:43:09 1998 +0000
+++ b/lisp/emacs-lisp/pp.el	Sun Apr 05 18:26:32 1998 +0000
@@ -22,9 +22,15 @@
 ;; Boston, MA 02111-1307, USA.
 
 ;;; Code:
+(defgroup pp nil
+  "Pretty printer for Emacs Lisp."
+  :prefix "pp-"
+  :group 'lisp)
 
-(defvar pp-escape-newlines t 
-  "*Value of print-escape-newlines used by pp-* functions.")
+(defcustom pp-escape-newlines t 
+  "*Value of `print-escape-newlines' used by pp-* functions."
+  :type 'boolean
+  :group 'pp)
 
 (defun pp-to-string (object)
   "Return a string containing the pretty-printed representation of OBJECT,
--- a/lisp/emacs-lisp/profile.el	Sun Apr 05 17:43:09 1998 +0000
+++ b/lisp/emacs-lisp/profile.el	Sun Apr 05 18:26:32 1998 +0000
@@ -68,14 +68,25 @@
 
 ;;; Code:
 
+(defgroup profile nil
+  "Generate run time measurements of Emacs Lisp functions."
+  :prefix "profile-"
+  :group 'lisp)
+
 ;;;
 ;;;  User modifiable VARIABLES
 ;;;
 
-(defvar profile-functions-list nil "*List of functions to profile.")
-(defvar profile-timer-program
+(defcustom profile-functions-list nil 
+  "*List of functions to profile."
+  :type '(repeat function)
+  :group 'profile)
+
+(defcustom profile-timer-program
   (concat exec-directory "profile")
-  "*Name of the profile timer program.")
+  "*Name of the profile timer program."
+  :type 'file
+  :group 'profile)
 
 ;;;
 ;;; V A R I A B L E S
@@ -90,7 +101,10 @@
 (defvar profile-max-fun-name 0 "Max length of name of any function profiled.")
 (defvar profile-temp-result- nil "Should NOT be used anywhere else.")
 (defvar profile-time (cons 0 0) "Used to return result from a filter.")
-(defvar profile-buffer "*profile*" "Name of profile buffer.")
+(defcustom profile-buffer "*profile*" 
+  "Name of profile buffer."
+  :type 'string
+  :group 'profile)
 
 (defconst profile-million 1000000)
 
--- a/lisp/emacs-lisp/shadow.el	Sun Apr 05 17:43:09 1998 +0000
+++ b/lisp/emacs-lisp/shadow.el	Sun Apr 05 18:26:32 1998 +0000
@@ -53,9 +53,16 @@
 
 ;;; Code:
 
-(defvar shadows-compare-text-p nil
+(defgroup shadow nil
+  "Locate Emacs Lisp file shadowings."
+  :prefix "shadows-"
+  :group 'lisp)
+
+(defcustom shadows-compare-text-p nil
   "*If non-nil, then shadowing files are reported only if their text differs.
-This is slower, but filters out some innocuous shadowing.")
+This is slower, but filters out some innocuous shadowing."
+  :type 'boolean
+  :group 'shadow)
 
 (defun find-emacs-lisp-shadows (&optional path)
   "Return a list of Emacs Lisp files that create shadows.
--- a/lisp/emacs-lisp/trace.el	Sun Apr 05 17:43:09 1998 +0000
+++ b/lisp/emacs-lisp/trace.el	Sun Apr 05 18:26:32 1998 +0000
@@ -164,9 +164,16 @@
 
 (require 'advice)
 
+(defgroup trace nil
+  "Tracing facility for Emacs Lisp functions"
+  :prefix "trace-"
+  :group 'lisp)
+
 ;;;###autoload
-(defvar trace-buffer "*trace-output*"
-  "*Trace output will by default go to that buffer.")
+(defcustom trace-buffer "*trace-output*"
+  "*Trace output will by default go to that buffer."
+  :type 'string
+  :group 'trace)
 
 ;; Current level of traced function invocation:
 (defvar trace-level 0)