diff options
| author | Juanma Barranquero | 2005-06-17 11:49:17 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2005-06-17 11:49:17 +0000 |
| commit | 53099cfc9e2f52e1fac6dba35c207b442957ae46 (patch) | |
| tree | 647b11c69a718d03415ae476fe17c01e93cac2de | |
| parent | 06266fbb1e1269487bbdcfbac9ce25b4c944b4ac (diff) | |
| download | emacs-53099cfc9e2f52e1fac6dba35c207b442957ae46.tar.gz emacs-53099cfc9e2f52e1fac6dba35c207b442957ae46.zip | |
(display-warning, lwarn, warning-minimum-log-level): Doc fixes.
(warning-minimum-level, warning-minimum-log-level): Add :debug to defcustom's
choices.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/emacs-lisp/warnings.el | 23 |
2 files changed, 23 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2425b3af8ce..247a929262e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -28,7 +28,7 @@ | |||
| 28 | 28 | ||
| 29 | * eshell/esh-test.el (eshell-test-ok, eshell-test-failed): | 29 | * eshell/esh-test.el (eshell-test-ok, eshell-test-failed): |
| 30 | Remove "-face" suffix from face names. | 30 | Remove "-face" suffix from face names. |
| 31 | (eshell-test-ok-face, eshell-test-failed-face): | 31 | (eshell-test-ok-face, eshell-test-failed-face): |
| 32 | New backward-compatibility aliases for renamed faces. | 32 | New backward-compatibility aliases for renamed faces. |
| 33 | (eshell-run-test): Use renamed eshell-test faces. | 33 | (eshell-run-test): Use renamed eshell-test faces. |
| 34 | 34 | ||
| @@ -47,7 +47,7 @@ | |||
| 47 | (eshell-ls-unreadable-face, eshell-ls-special-face) | 47 | (eshell-ls-unreadable-face, eshell-ls-special-face) |
| 48 | (eshell-ls-missing-face, eshell-ls-archive-face) | 48 | (eshell-ls-missing-face, eshell-ls-archive-face) |
| 49 | (eshell-ls-backup-face, eshell-ls-product-face) | 49 | (eshell-ls-backup-face, eshell-ls-product-face) |
| 50 | (eshell-ls-clutter-face): | 50 | (eshell-ls-clutter-face): |
| 51 | New backward-compatibility aliases for renamed faces. | 51 | New backward-compatibility aliases for renamed faces. |
| 52 | (eshell-ls-decorated-name): Use renamed eshell-ls faces. | 52 | (eshell-ls-decorated-name): Use renamed eshell-ls faces. |
| 53 | 53 | ||
| @@ -58,6 +58,11 @@ | |||
| 58 | 58 | ||
| 59 | 2005-06-17 Juanma Barranquero <lekktu@gmail.com> | 59 | 2005-06-17 Juanma Barranquero <lekktu@gmail.com> |
| 60 | 60 | ||
| 61 | * emacs-lisp/warnings.el (display-warning, lwarn) | ||
| 62 | (warning-minimum-log-level): Doc fixes. | ||
| 63 | (warning-minimum-level, warning-minimum-log-level): | ||
| 64 | Add :debug to :type choices. | ||
| 65 | |||
| 61 | * progmodes/ada-mode.el (ada-format-paramlist) | 66 | * progmodes/ada-mode.el (ada-format-paramlist) |
| 62 | (ada-get-indent-case, ada-check-matching-start) | 67 | (ada-get-indent-case, ada-check-matching-start) |
| 63 | (ada-check-defun-name, ada-goto-matching-decl-start) | 68 | (ada-check-defun-name, ada-goto-matching-decl-start) |
diff --git a/lisp/emacs-lisp/warnings.el b/lisp/emacs-lisp/warnings.el index 343eda970ce..e6c3447331e 100644 --- a/lisp/emacs-lisp/warnings.el +++ b/lisp/emacs-lisp/warnings.el | |||
| @@ -76,16 +76,20 @@ If a warning's severity level is lower than this, | |||
| 76 | the warning is logged in the warnings buffer, but the buffer | 76 | the warning is logged in the warnings buffer, but the buffer |
| 77 | is not immediately displayed. See also `warning-minimum-log-level'." | 77 | is not immediately displayed. See also `warning-minimum-log-level'." |
| 78 | :group 'warnings | 78 | :group 'warnings |
| 79 | :type '(choice (const :emergency) (const :error) (const :warning)) | 79 | :type '(choice (const :emergency) (const :error) |
| 80 | (const :warning) (const :debug)) | ||
| 80 | :version "22.1") | 81 | :version "22.1") |
| 81 | (defvaralias 'display-warning-minimum-level 'warning-minimum-level) | 82 | (defvaralias 'display-warning-minimum-level 'warning-minimum-level) |
| 82 | 83 | ||
| 83 | (defcustom warning-minimum-log-level :warning | 84 | (defcustom warning-minimum-log-level :warning |
| 84 | "Minimum severity level for logging a warning. | 85 | "Minimum severity level for logging a warning. |
| 85 | If a warning severity level is lower than this, | 86 | If a warning severity level is lower than this, |
| 86 | the warning is completely ignored." | 87 | the warning is completely ignored. |
| 88 | Value must be lower or equal than `warning-minimum-level', | ||
| 89 | because warnings not logged aren't displayed either." | ||
| 87 | :group 'warnings | 90 | :group 'warnings |
| 88 | :type '(choice (const :emergency) (const :error) (const :warning)) | 91 | :type '(choice (const :emergency) (const :error) |
| 92 | (const :warning) (const :debug)) | ||
| 89 | :version "22.1") | 93 | :version "22.1") |
| 90 | (defvaralias 'log-warning-minimum-level 'warning-minimum-log-level) | 94 | (defvaralias 'log-warning-minimum-level 'warning-minimum-log-level) |
| 91 | 95 | ||
| @@ -203,7 +207,9 @@ or a list of symbols whose first element is a custom group name. | |||
| 203 | \(The rest of the symbols represent subcategories, for warning purposes | 207 | \(The rest of the symbols represent subcategories, for warning purposes |
| 204 | only, and you can use whatever symbols you like.) | 208 | only, and you can use whatever symbols you like.) |
| 205 | 209 | ||
| 206 | LEVEL should be either :warning, :error, or :emergency. | 210 | LEVEL should be either :debug, :warning, :error, or :emergency |
| 211 | \(but see `warning-minimum-level' and `warning-minimum-log-level'). | ||
| 212 | |||
| 207 | :emergency -- a problem that will seriously impair Emacs operation soon | 213 | :emergency -- a problem that will seriously impair Emacs operation soon |
| 208 | if you do not attend to it promptly. | 214 | if you do not attend to it promptly. |
| 209 | :error -- data or circumstances that are inherently wrong. | 215 | :error -- data or circumstances that are inherently wrong. |
| @@ -223,7 +229,7 @@ See also `warning-series', `warning-prefix-function' and | |||
| 223 | (if (assq level warning-level-aliases) | 229 | (if (assq level warning-level-aliases) |
| 224 | (setq level (cdr (assq level warning-level-aliases)))) | 230 | (setq level (cdr (assq level warning-level-aliases)))) |
| 225 | (or (< (warning-numeric-level level) | 231 | (or (< (warning-numeric-level level) |
| 226 | (warning-numeric-level warning-minimum-log-level)) | 232 | (warning-numeric-level warning-minimum-log-level)) |
| 227 | (warning-suppress-p type warning-suppress-log-types) | 233 | (warning-suppress-p type warning-suppress-log-types) |
| 228 | (let* ((typename (if (consp type) (car type) type)) | 234 | (let* ((typename (if (consp type) (car type) type)) |
| 229 | (buffer (get-buffer-create (or buffer-name "*Warnings*"))) | 235 | (buffer (get-buffer-create (or buffer-name "*Warnings*"))) |
| @@ -291,11 +297,14 @@ or a list of symbols whose first element is a custom group name. | |||
| 291 | \(The rest of the symbols represent subcategories and | 297 | \(The rest of the symbols represent subcategories and |
| 292 | can be whatever you like.) | 298 | can be whatever you like.) |
| 293 | 299 | ||
| 294 | LEVEL should be either :warning, :error, or :emergency. | 300 | LEVEL should be either :debug, :warning, :error, or :emergency |
| 301 | \(but see `warning-minimum-level' and `warning-minimum-log-level'). | ||
| 302 | |||
| 295 | :emergency -- a problem that will seriously impair Emacs operation soon | 303 | :emergency -- a problem that will seriously impair Emacs operation soon |
| 296 | if you do not attend to it promptly. | 304 | if you do not attend to it promptly. |
| 297 | :error -- invalid data or circumstances. | 305 | :error -- invalid data or circumstances. |
| 298 | :warning -- suspicious data or circumstances." | 306 | :warning -- suspicious data or circumstances. |
| 307 | :debug -- info for debugging only." | ||
| 299 | (display-warning type (apply 'format message args) level)) | 308 | (display-warning type (apply 'format message args) level)) |
| 300 | 309 | ||
| 301 | ;;;###autoload | 310 | ;;;###autoload |