diff options
| author | Glenn Morris | 2007-10-28 23:51:29 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-10-28 23:51:29 +0000 |
| commit | bc8ce89b934f51efbb4613840da3ce9560a8105c (patch) | |
| tree | c8f88179b79601b1bbb9dd41ea3363d048869e62 | |
| parent | 08f5e96594b15314acc3649e0bc0f25f54967696 (diff) | |
| download | emacs-bc8ce89b934f51efbb4613840da3ce9560a8105c.tar.gz emacs-bc8ce89b934f51efbb4613840da3ce9560a8105c.zip | |
Unify local variable section, and set
byte-compile-warnings to `(not cl-functions)'.
(cl-do-proclaim): Use byte-compile-disable-warning and
byte-compile-enable-warning.
| -rw-r--r-- | lisp/emacs-lisp/cl-macs.el | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el index 2a4b69d2afc..f3f28de5198 100644 --- a/lisp/emacs-lisp/cl-macs.el +++ b/lisp/emacs-lisp/cl-macs.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; cl-macs.el --- Common Lisp macros -*-byte-compile-dynamic: t;-*- | 1 | ;;; cl-macs.el --- Common Lisp macros |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993, 2001, 2002, 2003, 2004, 2005, 2006, 2007 | 3 | ;; Copyright (C) 1993, 2001, 2002, 2003, 2004, 2005, 2006, 2007 |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; Free Software Foundation, Inc. |
| @@ -1554,15 +1554,11 @@ values. For compatibility, (values A B C) is a synonym for (list A B C). | |||
| 1554 | byte-compile-delete-errors (nth 1 safety))))) | 1554 | byte-compile-delete-errors (nth 1 safety))))) |
| 1555 | 1555 | ||
| 1556 | ((and (eq (car-safe spec) 'warn) (boundp 'byte-compile-warnings)) | 1556 | ((and (eq (car-safe spec) 'warn) (boundp 'byte-compile-warnings)) |
| 1557 | (if (eq byte-compile-warnings t) | ||
| 1558 | (setq byte-compile-warnings byte-compile-warning-types)) | ||
| 1559 | (while (setq spec (cdr spec)) | 1557 | (while (setq spec (cdr spec)) |
| 1560 | (if (consp (car spec)) | 1558 | (if (consp (car spec)) |
| 1561 | (if (eq (cadar spec) 0) | 1559 | (if (eq (cadar spec) 0) |
| 1562 | (setq byte-compile-warnings | 1560 | (byte-compile-disable-warning (caar spec)) |
| 1563 | (delq (caar spec) byte-compile-warnings)) | 1561 | (byte-compile-enable-warning (caar spec))))))) |
| 1564 | (setq byte-compile-warnings | ||
| 1565 | (adjoin (caar spec) byte-compile-warnings))))))) | ||
| 1566 | nil) | 1562 | nil) |
| 1567 | 1563 | ||
| 1568 | ;;; Process any proclamations made before cl-macs was loaded. | 1564 | ;;; Process any proclamations made before cl-macs was loaded. |
| @@ -2728,7 +2724,8 @@ surrounded by (block NAME ...). | |||
| 2728 | (run-hooks 'cl-macs-load-hook) | 2724 | (run-hooks 'cl-macs-load-hook) |
| 2729 | 2725 | ||
| 2730 | ;; Local variables: | 2726 | ;; Local variables: |
| 2731 | ;; byte-compile-warnings: (redefine callargs free-vars unresolved obsolete noruntime) | 2727 | ;; byte-compile-dynamic: t |
| 2728 | ;; byte-compile-warnings: (not cl-functions) | ||
| 2732 | ;; generated-autoload-file: "cl-loaddefs.el" | 2729 | ;; generated-autoload-file: "cl-loaddefs.el" |
| 2733 | ;; End: | 2730 | ;; End: |
| 2734 | 2731 | ||