diff options
| author | Glenn Morris | 2007-10-30 06:23:06 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-10-30 06:23:06 +0000 |
| commit | 798bd43727b4397d3d4e7e620610a8e3431aa2f4 (patch) | |
| tree | e448aa703b2f645afd839679c8e266e6f6526448 | |
| parent | d660658637e7d5aa5507095be3f35e17b9561795 (diff) | |
| download | emacs-798bd43727b4397d3d4e7e620610a8e3431aa2f4.tar.gz emacs-798bd43727b4397d3d4e7e620610a8e3431aa2f4.zip | |
(byte-compile-disable-warning)
(byte-compile-enable-warning): Doc fix.
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index e8da5799a32..c1f547e215d 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -404,7 +404,9 @@ suppress. For example, (not mapcar) will suppress warnings about mapcar." | |||
| 404 | (defun byte-compile-disable-warning (warning) | 404 | (defun byte-compile-disable-warning (warning) |
| 405 | "Change `byte-compile-warnings' to disable WARNING. | 405 | "Change `byte-compile-warnings' to disable WARNING. |
| 406 | If `byte-compile-warnings' is t, set it to `(not WARNING)'. | 406 | If `byte-compile-warnings' is t, set it to `(not WARNING)'. |
| 407 | Otherwise, if the first element is `not', add WARNING, else remove it." | 407 | Otherwise, if the first element is `not', add WARNING, else remove it. |
| 408 | Normally you should let-bind `byte-compile-warnings' before calling this, | ||
| 409 | else the global value will be modified." | ||
| 408 | (setq byte-compile-warnings | 410 | (setq byte-compile-warnings |
| 409 | (cond ((eq byte-compile-warnings t) | 411 | (cond ((eq byte-compile-warnings t) |
| 410 | (list 'not warning)) | 412 | (list 'not warning)) |
| @@ -419,7 +421,9 @@ Otherwise, if the first element is `not', add WARNING, else remove it." | |||
| 419 | (defun byte-compile-enable-warning (warning) | 421 | (defun byte-compile-enable-warning (warning) |
| 420 | "Change `byte-compile-warnings' to enable WARNING. | 422 | "Change `byte-compile-warnings' to enable WARNING. |
| 421 | If `byte-compile-warnings' is `t', do nothing. Otherwise, if the | 423 | If `byte-compile-warnings' is `t', do nothing. Otherwise, if the |
| 422 | first element is `not', remove WARNING, else add it." | 424 | first element is `not', remove WARNING, else add it. |
| 425 | Normally you should let-bind `byte-compile-warnings' before calling this, | ||
| 426 | else the global value will be modified." | ||
| 423 | (or (eq byte-compile-warnings t) | 427 | (or (eq byte-compile-warnings t) |
| 424 | (setq byte-compile-warnings | 428 | (setq byte-compile-warnings |
| 425 | (cond ((eq (car byte-compile-warnings) 'not) | 429 | (cond ((eq (car byte-compile-warnings) 'not) |