aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2002-03-24 19:46:58 +0000
committerGerd Moellmann2002-03-24 19:46:58 +0000
commit2c642c03dfc9b49880a673ef6946af74c7d8c99d (patch)
tree3e225383dc84d3c91ccae6fe1f1dc2d7cc83d7a4
parentc7bce5f21f8802b9c3be7691b6505162c230c232 (diff)
downloademacs-2c642c03dfc9b49880a673ef6946af74c7d8c99d.tar.gz
emacs-2c642c03dfc9b49880a673ef6946af74c7d8c99d.zip
(macro-declaration-function): New function. Set the
variable macro-declaration-function to it.
-rw-r--r--lisp/subr.el20
1 files changed, 19 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 189ec1f74e2..bca1fcf23d3 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -1,6 +1,6 @@
1;;; subr.el --- basic lisp subroutines for Emacs 1;;; subr.el --- basic lisp subroutines for Emacs
2 2
3;; Copyright (C) 1985, 86, 92, 94, 95, 99, 2000, 2001 3;; Copyright (C) 1985, 86, 92, 94, 95, 99, 2000, 2001, 2002
4;; Free Software Foundation, Inc. 4;; Free Software Foundation, Inc.
5 5
6;; This file is part of GNU Emacs. 6;; This file is part of GNU Emacs.
@@ -32,6 +32,24 @@ Each element of this list holds the arguments to one call to `defcustom'.")
32(defun custom-declare-variable-early (&rest arguments) 32(defun custom-declare-variable-early (&rest arguments)
33 (setq custom-declare-variable-list 33 (setq custom-declare-variable-list
34 (cons arguments custom-declare-variable-list))) 34 (cons arguments custom-declare-variable-list)))
35
36
37(defun macro-declaration-function (macro decl)
38 "Process a declaration found in a macro definition.
39This is set as the value of the variable `macro-declaration-function'.
40MACRO is the name of the macro being defined.
41DECL is a list `(declare ...)' containing the declarations.
42The return value of this function is not used."
43 (dolist (d (cdr decl))
44 (cond ((and (consp d) (eq (car d) 'indent))
45 (put macro 'lisp-indent-function (cadr d)))
46 ((and (consp d) (eq (car d) 'debug))
47 (put macro 'edebug-form-spec (cadr d)))
48 (t
49 (message "Unknown declaration %s" d)))))
50
51(setq macro-declaration-function 'macro-declaration-function)
52
35 53
36;;;; Lisp language features. 54;;;; Lisp language features.
37 55