aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLute Kamstra2005-03-14 14:07:38 +0000
committerLute Kamstra2005-03-14 14:07:38 +0000
commitadf9acf885648b52b68c50536d8ce047794eb5ce (patch)
tree8dbc8bf093d8b9b05a1e7d70859c1895c1ad2666
parent623374a56874ced0df041c8e137e501ebf08ddd8 (diff)
downloademacs-adf9acf885648b52b68c50536d8ce047794eb5ce.tar.gz
emacs-adf9acf885648b52b68c50536d8ce047794eb5ce.zip
(macro-declaration-function): Move to emacs-lisp/byte-run.el.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/subr.el21
2 files changed, 7 insertions, 21 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3b27d4c83b0..028598c71cf 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,12 @@
12005-03-14 Lute Kamstra <lute@gnu.org> 12005-03-14 Lute Kamstra <lute@gnu.org>
2 2
3 * subr.el (macro-declaration-function): Move to
4 emacs-lisp/byte-run.el.
5 * emacs-lisp/byte-run.el (macro-declaration-function): Move from
6 subr.el.
7 (dont-compile, eval-when-compile, eval-and-compile): Use declare
8 to specify indentation.
9
3 * generic.el (define-generic-mode): Let generic-mode-list be a 10 * generic.el (define-generic-mode): Let generic-mode-list be a
4 list of strings; test membership with equal. 11 list of strings; test membership with equal.
5 12
diff --git a/lisp/subr.el b/lisp/subr.el
index 4046b915368..8badf7cf777 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -37,27 +37,6 @@ Each element of this list holds the arguments to one call to `defcustom'.")
37 (cons arguments custom-declare-variable-list))) 37 (cons arguments custom-declare-variable-list)))
38 38
39 39
40(defun macro-declaration-function (macro decl)
41 "Process a declaration found in a macro definition.
42This is set as the value of the variable `macro-declaration-function'.
43MACRO is the name of the macro being defined.
44DECL is a list `(declare ...)' containing the declarations.
45The return value of this function is not used."
46 ;; We can't use `dolist' or `cadr' yet for bootstrapping reasons.
47 (let (d)
48 ;; Ignore the first element of `decl' (it's always `declare').
49 (while (setq decl (cdr decl))
50 (setq d (car decl))
51 (cond ((and (consp d) (eq (car d) 'indent))
52 (put macro 'lisp-indent-function (car (cdr d))))
53 ((and (consp d) (eq (car d) 'debug))
54 (put macro 'edebug-form-spec (car (cdr d))))
55 (t
56 (message "Unknown declaration %s" d))))))
57
58(setq macro-declaration-function 'macro-declaration-function)
59
60
61;;;; Lisp language features. 40;;;; Lisp language features.
62 41
63(defalias 'not 'null) 42(defalias 'not 'null)