diff options
| author | Stephen Eglen | 1998-04-05 18:26:32 +0000 |
|---|---|---|
| committer | Stephen Eglen | 1998-04-05 18:26:32 +0000 |
| commit | 666b94132b9d785b4ec6f0ecbfa451168134d150 (patch) | |
| tree | 86d786fd96dcb21413135c75d5e5830e66c28dbe | |
| parent | 3c14708ccfb71af5ea2324f71955480413402b92 (diff) | |
| download | emacs-666b94132b9d785b4ec6f0ecbfa451168134d150.tar.gz emacs-666b94132b9d785b4ec6f0ecbfa451168134d150.zip | |
Customized.
| -rw-r--r-- | lisp/emacs-lisp/advice.el | 19 | ||||
| -rw-r--r-- | lisp/emacs-lisp/backquote.el | 28 | ||||
| -rw-r--r-- | lisp/emacs-lisp/debug.el | 29 | ||||
| -rw-r--r-- | lisp/emacs-lisp/gulp.el | 40 | ||||
| -rw-r--r-- | lisp/emacs-lisp/lisp-mnt.el | 35 | ||||
| -rw-r--r-- | lisp/emacs-lisp/pp.el | 10 | ||||
| -rw-r--r-- | lisp/emacs-lisp/profile.el | 22 | ||||
| -rw-r--r-- | lisp/emacs-lisp/shadow.el | 11 | ||||
| -rw-r--r-- | lisp/emacs-lisp/trace.el | 11 |
9 files changed, 150 insertions, 55 deletions
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el index dabff28ae3a..33e2ab6b4fc 100644 --- a/lisp/emacs-lisp/advice.el +++ b/lisp/emacs-lisp/advice.el | |||
| @@ -1831,10 +1831,15 @@ | |||
| 1831 | ;; @@ Variable definitions: | 1831 | ;; @@ Variable definitions: |
| 1832 | ;; ======================== | 1832 | ;; ======================== |
| 1833 | 1833 | ||
| 1834 | (defgroup advice nil | ||
| 1835 | "An overloading mechanism for Emacs Lisp functions." | ||
| 1836 | :prefix "ad-" | ||
| 1837 | :group 'lisp) | ||
| 1838 | |||
| 1834 | (defconst ad-version "2.14") | 1839 | (defconst ad-version "2.14") |
| 1835 | 1840 | ||
| 1836 | ;;;###autoload | 1841 | ;;;###autoload |
| 1837 | (defvar ad-redefinition-action 'warn | 1842 | (defcustom ad-redefinition-action 'warn |
| 1838 | "*Defines what to do with redefinitions during Advice de/activation. | 1843 | "*Defines what to do with redefinitions during Advice de/activation. |
| 1839 | Redefinition occurs if a previously activated function that already has an | 1844 | Redefinition occurs if a previously activated function that already has an |
| 1840 | original definition associated with it gets redefined and then de/activated. | 1845 | original definition associated with it gets redefined and then de/activated. |
| @@ -1843,17 +1848,23 @@ original definition, discard the current definition and replace it with the | |||
| 1843 | old original, or keep it and raise an error. The values `accept', `discard', | 1848 | old original, or keep it and raise an error. The values `accept', `discard', |
| 1844 | `error' or `warn' govern what will be done. `warn' is just like `accept' but | 1849 | `error' or `warn' govern what will be done. `warn' is just like `accept' but |
| 1845 | it additionally prints a warning message. All other values will be | 1850 | it additionally prints a warning message. All other values will be |
| 1846 | interpreted as `error'.") | 1851 | interpreted as `error'." |
| 1852 | :type '(choice (const accept) (const discard) (const error) (const warn)) | ||
| 1853 | :group 'advice) | ||
| 1847 | 1854 | ||
| 1848 | ;;;###autoload | 1855 | ;;;###autoload |
| 1849 | (defvar ad-default-compilation-action 'maybe | 1856 | (defcustom ad-default-compilation-action 'maybe |
| 1850 | "*Defines whether to compile advised definitions during activation. | 1857 | "*Defines whether to compile advised definitions during activation. |
| 1851 | A value of `always' will result in unconditional compilation, `never' will | 1858 | A value of `always' will result in unconditional compilation, `never' will |
| 1852 | always avoid compilation, `maybe' will compile if the byte-compiler is already | 1859 | always avoid compilation, `maybe' will compile if the byte-compiler is already |
| 1853 | loaded, and `like-original' will compile if the original definition of the | 1860 | loaded, and `like-original' will compile if the original definition of the |
| 1854 | advised function is compiled or a built-in function. Every other value will | 1861 | advised function is compiled or a built-in function. Every other value will |
| 1855 | be interpreted as `maybe'. This variable will only be considered if the | 1862 | be interpreted as `maybe'. This variable will only be considered if the |
| 1856 | COMPILE argument of `ad-activate' was supplied as nil.") | 1863 | COMPILE argument of `ad-activate' was supplied as nil." |
| 1864 | :type '(choice (const always) (const never) (const maybe) | ||
| 1865 | (const like-original)) | ||
| 1866 | :group 'advice) | ||
| 1867 | |||
| 1857 | 1868 | ||
| 1858 | 1869 | ||
| 1859 | ;; @@ Some utilities: | 1870 | ;; @@ Some utilities: |
diff --git a/lisp/emacs-lisp/backquote.el b/lisp/emacs-lisp/backquote.el index 807b4bd1c50..9a0f5a0cd1e 100644 --- a/lisp/emacs-lisp/backquote.el +++ b/lisp/emacs-lisp/backquote.el | |||
| @@ -69,17 +69,27 @@ For example (backquote-list* 'a 'b 'c) => (a b . c)" | |||
| 69 | 69 | ||
| 70 | (defalias 'backquote-list* (symbol-function 'backquote-list*-macro)) | 70 | (defalias 'backquote-list* (symbol-function 'backquote-list*-macro)) |
| 71 | 71 | ||
| 72 | (defgroup backquote nil | ||
| 73 | "Implement the ` Lisp construct." | ||
| 74 | :prefix "backquote-" | ||
| 75 | :group 'lisp) | ||
| 76 | |||
| 72 | ;; A few advertised variables that control which symbols are used | 77 | ;; A few advertised variables that control which symbols are used |
| 73 | ;; to represent the backquote, unquote, and splice operations. | 78 | ;; to represent the backquote, unquote, and splice operations. |
| 74 | 79 | (defcustom backquote-backquote-symbol '\` | |
| 75 | (defvar backquote-backquote-symbol '\` | 80 | "*Symbol used to represent a backquote or nested backquote (e.g. `)." |
| 76 | "*Symbol used to represent a backquote or nested backquote (e.g. `).") | 81 | :type 'symbol |
| 77 | 82 | :group 'backquote) | |
| 78 | (defvar backquote-unquote-symbol ', | 83 | |
| 79 | "*Symbol used to represent an unquote (e.g. `,') inside a backquote.") | 84 | (defcustom backquote-unquote-symbol ', |
| 80 | 85 | "*Symbol used to represent an unquote (e.g. `,') inside a backquote." | |
| 81 | (defvar backquote-splice-symbol ',@ | 86 | :type 'symbol |
| 82 | "*Symbol used to represent a splice (e.g. `,@') inside a backquote.") | 87 | :group 'backquote) |
| 88 | |||
| 89 | (defcustom backquote-splice-symbol ',@ | ||
| 90 | "*Symbol used to represent a splice (e.g. `,@') inside a backquote." | ||
| 91 | :type 'symbol | ||
| 92 | :group 'backquote) | ||
| 83 | 93 | ||
| 84 | ;;;###autoload | 94 | ;;;###autoload |
| 85 | (defmacro backquote (arg) | 95 | (defmacro backquote (arg) |
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el index ca23b3adc40..33ea729ccc2 100644 --- a/lisp/emacs-lisp/debug.el +++ b/lisp/emacs-lisp/debug.el | |||
| @@ -28,15 +28,26 @@ | |||
| 28 | 28 | ||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | (defvar debugger-mode-hook nil | 31 | (defgroup debugger nil |
| 32 | "*Hooks run when `debugger-mode' is turned on.") | 32 | "Debuggers and related commands for Emacs." |
| 33 | :prefix "debugger-" | ||
| 34 | :group 'debug) | ||
| 33 | 35 | ||
| 36 | (defcustom debugger-mode-hook nil | ||
| 37 | "*Hooks run when `debugger-mode' is turned on." | ||
| 38 | :type 'hook | ||
| 39 | :group 'debugger) | ||
| 34 | 40 | ||
| 35 | (defvar debug-function-list nil | ||
| 36 | "List of functions currently set for debug on entry.") | ||
| 37 | 41 | ||
| 38 | (defvar debugger-step-after-exit nil | 42 | (defcustom debug-function-list nil |
| 39 | "Non-nil means \"single-step\" after the debugger exits.") | 43 | "List of functions currently set for debug on entry." |
| 44 | :type '(repeat function) | ||
| 45 | :group 'debugger) | ||
| 46 | |||
| 47 | (defcustom debugger-step-after-exit nil | ||
| 48 | "Non-nil means \"single-step\" after the debugger exits." | ||
| 49 | :type 'boolean | ||
| 50 | :group 'debugger) | ||
| 40 | 51 | ||
| 41 | (defvar debugger-value nil | 52 | (defvar debugger-value nil |
| 42 | "This is the value for the debugger to return, when it returns.") | 53 | "This is the value for the debugger to return, when it returns.") |
| @@ -398,8 +409,10 @@ Applies to the frame whose line point is on in the backtrace." | |||
| 398 | )) | 409 | )) |
| 399 | 410 | ||
| 400 | 411 | ||
| 401 | (defvar debugger-record-buffer "*Debugger-record*" | 412 | (defcustom debugger-record-buffer "*Debugger-record*" |
| 402 | "*Buffer name for expression values, for \\[debugger-record-expression].") | 413 | "*Buffer name for expression values, for \\[debugger-record-expression]." |
| 414 | :type 'string | ||
| 415 | :group 'debugger) | ||
| 403 | 416 | ||
| 404 | (defun debugger-record-expression (exp) | 417 | (defun debugger-record-expression (exp) |
| 405 | "Display a variable's value and record it in `*Backtrace-record*' buffer." | 418 | "Display a variable's value and record it in `*Backtrace-record*' buffer." |
diff --git a/lisp/emacs-lisp/gulp.el b/lisp/emacs-lisp/gulp.el index e84c1056296..9a41864d437 100644 --- a/lisp/emacs-lisp/gulp.el +++ b/lisp/emacs-lisp/gulp.el | |||
| @@ -30,24 +30,36 @@ | |||
| 30 | ;; update. | 30 | ;; update. |
| 31 | 31 | ||
| 32 | ;;; Code: | 32 | ;;; Code: |
| 33 | 33 | (defgroup gulp nil | |
| 34 | (defvar gulp-discard "^;+ *Maintainer: *FSF *$" | 34 | "Ask for updates for Lisp packages." |
| 35 | "*The regexp matching the packages not requiring the request for updates.") | 35 | :prefix "-" |
| 36 | 36 | :group 'maint) | |
| 37 | (defvar gulp-tmp-buffer "*gulp*" "The name of the temporary buffer.") | 37 | |
| 38 | 38 | (defcustom gulp-discard "^;+ *Maintainer: *FSF *$" | |
| 39 | (defvar gulp-max-len 2000 | 39 | "*The regexp matching the packages not requiring the request for updates." |
| 40 | "*Distance into a Lisp source file to scan for keywords.") | 40 | :type 'regexp |
| 41 | 41 | :group 'gulp) | |
| 42 | (defvar gulp-request-header | 42 | |
| 43 | (defcustom gulp-tmp-buffer "*gulp*" "The name of the temporary buffer." | ||
| 44 | :type 'string | ||
| 45 | :group 'gulp) | ||
| 46 | |||
| 47 | (defcustom gulp-max-len 2000 | ||
| 48 | "*Distance into a Lisp source file to scan for keywords." | ||
| 49 | :type 'integer | ||
| 50 | :group 'gulp) | ||
| 51 | |||
| 52 | (defcustom gulp-request-header | ||
| 43 | (concat | 53 | (concat |
| 44 | "This message was created automatically. | 54 | "This message was created automatically. |
| 45 | I'm going to start pretesting a new version of GNU Emacs soon, so I'd | 55 | I'm going to start pretesting a new version of GNU Emacs soon, so I'd |
| 46 | like to ask if you have any updates for the Emacs packages you work on. | 56 | like to ask if you have any updates for the Emacs packages you work on. |
| 47 | You're listed as the maintainer of the following package(s):\n\n") | 57 | You're listed as the maintainer of the following package(s):\n\n") |
| 48 | "*The starting text of a gulp message.") | 58 | "*The starting text of a gulp message." |
| 59 | :type 'string | ||
| 60 | :group 'gulp) | ||
| 49 | 61 | ||
| 50 | (defvar gulp-request-end | 62 | (defcustom gulp-request-end |
| 51 | (concat | 63 | (concat |
| 52 | "\nIf you have any changes since the version in the previous release (" | 64 | "\nIf you have any changes since the version in the previous release (" |
| 53 | (format "%d.%d" emacs-major-version emacs-minor-version) | 65 | (format "%d.%d" emacs-major-version emacs-minor-version) |
| @@ -61,7 +73,9 @@ please use lisp/ChangeLog as a guide for the style and for what kinds | |||
| 61 | of information to include. | 73 | of information to include. |
| 62 | 74 | ||
| 63 | Thanks.") | 75 | Thanks.") |
| 64 | "*The closing text in a gulp message.") | 76 | "*The closing text in a gulp message." |
| 77 | :type 'string | ||
| 78 | :group 'gulp) | ||
| 65 | 79 | ||
| 66 | (defun gulp-send-requests (dir &optional time) | 80 | (defun gulp-send-requests (dir &optional time) |
| 67 | "Send requests for updates to the authors of Lisp packages in directory DIR. | 81 | "Send requests for updates to the authors of Lisp packages in directory DIR. |
diff --git a/lisp/emacs-lisp/lisp-mnt.el b/lisp/emacs-lisp/lisp-mnt.el index 4e7fae47125..9aebbf8d02d 100644 --- a/lisp/emacs-lisp/lisp-mnt.el +++ b/lisp/emacs-lisp/lisp-mnt.el | |||
| @@ -117,7 +117,12 @@ | |||
| 117 | 117 | ||
| 118 | ;;; Variables: | 118 | ;;; Variables: |
| 119 | 119 | ||
| 120 | (defvar lm-header-prefix "^;;*[ \t]+\\(@\(#\)\\)?[ \t]*\\([\$]\\)?" | 120 | (defgroup lisp-mnt nil |
| 121 | "Minor mode for Emacs Lisp maintainers." | ||
| 122 | :prefix "lm-" | ||
| 123 | :group 'maint) | ||
| 124 | |||
| 125 | (defcustom lm-header-prefix "^;;*[ \t]+\\(@\(#\)\\)?[ \t]*\\([\$]\\)?" | ||
| 121 | "Prefix that is ignored before the tag. | 126 | "Prefix that is ignored before the tag. |
| 122 | For example, you can write the 1st line synopsis string and headers like this | 127 | For example, you can write the 1st line synopsis string and headers like this |
| 123 | in your Lisp package: | 128 | in your Lisp package: |
| @@ -127,16 +132,24 @@ in your Lisp package: | |||
| 127 | ;; @(#) $Maintainer: Person Foo Bar $ | 132 | ;; @(#) $Maintainer: Person Foo Bar $ |
| 128 | 133 | ||
| 129 | The @(#) construct is used by unix what(1) and | 134 | The @(#) construct is used by unix what(1) and |
| 130 | then $identifier: doc string $ is used by GNU ident(1)") | 135 | then $identifier: doc string $ is used by GNU ident(1)" |
| 131 | 136 | :type 'regexp | |
| 132 | (defvar lm-comment-column 16 | 137 | :group 'lisp-mnt) |
| 133 | "Column used for placing formatted output.") | 138 | |
| 134 | 139 | (defcustom lm-comment-column 16 | |
| 135 | (defvar lm-commentary-header "Commentary\\|Documentation" | 140 | "Column used for placing formatted output." |
| 136 | "Regexp which matches start of documentation section.") | 141 | :type 'integer |
| 137 | 142 | :group 'lisp-mnt) | |
| 138 | (defvar lm-history-header "Change Log\\|History" | 143 | |
| 139 | "Regexp which matches the start of code log section.") | 144 | (defcustom lm-commentary-header "Commentary\\|Documentation" |
| 145 | "Regexp which matches start of documentation section." | ||
| 146 | :type 'regexp | ||
| 147 | :group 'lisp-mnt) | ||
| 148 | |||
| 149 | (defcustom lm-history-header "Change Log\\|History" | ||
| 150 | "Regexp which matches the start of code log section." | ||
| 151 | :type 'regexp | ||
| 152 | :group 'lisp-mnt) | ||
| 140 | 153 | ||
| 141 | ;;; Functions: | 154 | ;;; Functions: |
| 142 | 155 | ||
diff --git a/lisp/emacs-lisp/pp.el b/lisp/emacs-lisp/pp.el index bdc884ab50b..beb79c745ad 100644 --- a/lisp/emacs-lisp/pp.el +++ b/lisp/emacs-lisp/pp.el | |||
| @@ -22,9 +22,15 @@ | |||
| 22 | ;; Boston, MA 02111-1307, USA. | 22 | ;; Boston, MA 02111-1307, USA. |
| 23 | 23 | ||
| 24 | ;;; Code: | 24 | ;;; Code: |
| 25 | (defgroup pp nil | ||
| 26 | "Pretty printer for Emacs Lisp." | ||
| 27 | :prefix "pp-" | ||
| 28 | :group 'lisp) | ||
| 25 | 29 | ||
| 26 | (defvar pp-escape-newlines t | 30 | (defcustom pp-escape-newlines t |
| 27 | "*Value of print-escape-newlines used by pp-* functions.") | 31 | "*Value of `print-escape-newlines' used by pp-* functions." |
| 32 | :type 'boolean | ||
| 33 | :group 'pp) | ||
| 28 | 34 | ||
| 29 | (defun pp-to-string (object) | 35 | (defun pp-to-string (object) |
| 30 | "Return a string containing the pretty-printed representation of OBJECT, | 36 | "Return a string containing the pretty-printed representation of OBJECT, |
diff --git a/lisp/emacs-lisp/profile.el b/lisp/emacs-lisp/profile.el index 1f17a66310c..6a8b0063201 100644 --- a/lisp/emacs-lisp/profile.el +++ b/lisp/emacs-lisp/profile.el | |||
| @@ -68,14 +68,25 @@ | |||
| 68 | 68 | ||
| 69 | ;;; Code: | 69 | ;;; Code: |
| 70 | 70 | ||
| 71 | (defgroup profile nil | ||
| 72 | "Generate run time measurements of Emacs Lisp functions." | ||
| 73 | :prefix "profile-" | ||
| 74 | :group 'lisp) | ||
| 75 | |||
| 71 | ;;; | 76 | ;;; |
| 72 | ;;; User modifiable VARIABLES | 77 | ;;; User modifiable VARIABLES |
| 73 | ;;; | 78 | ;;; |
| 74 | 79 | ||
| 75 | (defvar profile-functions-list nil "*List of functions to profile.") | 80 | (defcustom profile-functions-list nil |
| 76 | (defvar profile-timer-program | 81 | "*List of functions to profile." |
| 82 | :type '(repeat function) | ||
| 83 | :group 'profile) | ||
| 84 | |||
| 85 | (defcustom profile-timer-program | ||
| 77 | (concat exec-directory "profile") | 86 | (concat exec-directory "profile") |
| 78 | "*Name of the profile timer program.") | 87 | "*Name of the profile timer program." |
| 88 | :type 'file | ||
| 89 | :group 'profile) | ||
| 79 | 90 | ||
| 80 | ;;; | 91 | ;;; |
| 81 | ;;; V A R I A B L E S | 92 | ;;; V A R I A B L E S |
| @@ -90,7 +101,10 @@ Both how many times invoked and real time of start.") | |||
| 90 | (defvar profile-max-fun-name 0 "Max length of name of any function profiled.") | 101 | (defvar profile-max-fun-name 0 "Max length of name of any function profiled.") |
| 91 | (defvar profile-temp-result- nil "Should NOT be used anywhere else.") | 102 | (defvar profile-temp-result- nil "Should NOT be used anywhere else.") |
| 92 | (defvar profile-time (cons 0 0) "Used to return result from a filter.") | 103 | (defvar profile-time (cons 0 0) "Used to return result from a filter.") |
| 93 | (defvar profile-buffer "*profile*" "Name of profile buffer.") | 104 | (defcustom profile-buffer "*profile*" |
| 105 | "Name of profile buffer." | ||
| 106 | :type 'string | ||
| 107 | :group 'profile) | ||
| 94 | 108 | ||
| 95 | (defconst profile-million 1000000) | 109 | (defconst profile-million 1000000) |
| 96 | 110 | ||
diff --git a/lisp/emacs-lisp/shadow.el b/lisp/emacs-lisp/shadow.el index 1e5ef45e7f4..edaa74e6a3e 100644 --- a/lisp/emacs-lisp/shadow.el +++ b/lisp/emacs-lisp/shadow.el | |||
| @@ -53,9 +53,16 @@ | |||
| 53 | 53 | ||
| 54 | ;;; Code: | 54 | ;;; Code: |
| 55 | 55 | ||
| 56 | (defvar shadows-compare-text-p nil | 56 | (defgroup shadow nil |
| 57 | "Locate Emacs Lisp file shadowings." | ||
| 58 | :prefix "shadows-" | ||
| 59 | :group 'lisp) | ||
| 60 | |||
| 61 | (defcustom shadows-compare-text-p nil | ||
| 57 | "*If non-nil, then shadowing files are reported only if their text differs. | 62 | "*If non-nil, then shadowing files are reported only if their text differs. |
| 58 | This is slower, but filters out some innocuous shadowing.") | 63 | This is slower, but filters out some innocuous shadowing." |
| 64 | :type 'boolean | ||
| 65 | :group 'shadow) | ||
| 59 | 66 | ||
| 60 | (defun find-emacs-lisp-shadows (&optional path) | 67 | (defun find-emacs-lisp-shadows (&optional path) |
| 61 | "Return a list of Emacs Lisp files that create shadows. | 68 | "Return a list of Emacs Lisp files that create shadows. |
diff --git a/lisp/emacs-lisp/trace.el b/lisp/emacs-lisp/trace.el index 40008e29a19..d066f7d82f3 100644 --- a/lisp/emacs-lisp/trace.el +++ b/lisp/emacs-lisp/trace.el | |||
| @@ -164,9 +164,16 @@ | |||
| 164 | 164 | ||
| 165 | (require 'advice) | 165 | (require 'advice) |
| 166 | 166 | ||
| 167 | (defgroup trace nil | ||
| 168 | "Tracing facility for Emacs Lisp functions" | ||
| 169 | :prefix "trace-" | ||
| 170 | :group 'lisp) | ||
| 171 | |||
| 167 | ;;;###autoload | 172 | ;;;###autoload |
| 168 | (defvar trace-buffer "*trace-output*" | 173 | (defcustom trace-buffer "*trace-output*" |
| 169 | "*Trace output will by default go to that buffer.") | 174 | "*Trace output will by default go to that buffer." |
| 175 | :type 'string | ||
| 176 | :group 'trace) | ||
| 170 | 177 | ||
| 171 | ;; Current level of traced function invocation: | 178 | ;; Current level of traced function invocation: |
| 172 | (defvar trace-level 0) | 179 | (defvar trace-level 0) |