aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLute Kamstra2005-03-12 17:24:29 +0000
committerLute Kamstra2005-03-12 17:24:29 +0000
commit3fdfb09c1c320351dcf3fc3d93cbf08181e714b6 (patch)
tree59c1c0fe3ba8b5c47c9fd93e82e70481f13efe9b
parent09d252f261e9f4ade167a8e1a30bebd036b0752a (diff)
downloademacs-3fdfb09c1c320351dcf3fc3d93cbf08181e714b6.tar.gz
emacs-3fdfb09c1c320351dcf3fc3d93cbf08181e714b6.zip
Replace lisp-indent-hook with lisp-indent-function throughout.
(with-no-warnings): Set lisp-indent-function property.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/emacs-lisp/byte-run.el13
2 files changed, 13 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e0c9762078b..8d82e2476bf 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12005-03-12 Lute Kamstra <lute@gnu.org>
2
3 * emacs-lisp/byte-run.el: Replace lisp-indent-hook with
4 lisp-indent-function throughout.
5 (with-no-warnings): Set lisp-indent-function property.
6
12005-03-12 Thien-Thi Nguyen <ttn@gnu.org> 72005-03-12 Thien-Thi Nguyen <ttn@gnu.org>
2 8
3 * progmodes/dcl-mode.el (dcl-mode-syntax-table): 9 * progmodes/dcl-mode.el (dcl-mode-syntax-table):
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el
index 2cd0896c835..ef426494b68 100644
--- a/lisp/emacs-lisp/byte-run.el
+++ b/lisp/emacs-lisp/byte-run.el
@@ -1,6 +1,6 @@
1;;; byte-run.el --- byte-compiler support for inlining 1;;; byte-run.el --- byte-compiler support for inlining
2 2
3;; Copyright (C) 1992, 2004 Free Software Foundation, Inc. 3;; Copyright (C) 1992, 2004, 2005 Free Software Foundation, Inc.
4 4
5;; Author: Jamie Zawinski <jwz@lucid.com> 5;; Author: Jamie Zawinski <jwz@lucid.com>
6;; Hallvard Furuseth <hbf@ulrik.uio.no> 6;; Hallvard Furuseth <hbf@ulrik.uio.no>
@@ -34,7 +34,7 @@
34;; Redefined in byte-optimize.el. 34;; Redefined in byte-optimize.el.
35;; This is not documented--it's not clear that we should promote it. 35;; This is not documented--it's not clear that we should promote it.
36(fset 'inline 'progn) 36(fset 'inline 'progn)
37(put 'inline 'lisp-indent-hook 0) 37(put 'inline 'lisp-indent-function 0)
38 38
39 39
40;;; Interface to inline functions. 40;;; Interface to inline functions.
@@ -105,7 +105,7 @@ was first made obsolete, for example a date or a release number."
105 (put variable 'byte-obsolete-variable (cons new when)) 105 (put variable 'byte-obsolete-variable (cons new when))
106 variable) 106 variable)
107 107
108(put 'dont-compile 'lisp-indent-hook 0) 108(put 'dont-compile 'lisp-indent-function 0)
109(defmacro dont-compile (&rest body) 109(defmacro dont-compile (&rest body)
110 "Like `progn', but the body always runs interpreted (not compiled). 110 "Like `progn', but the body always runs interpreted (not compiled).
111If you think you need this, you're probably making a mistake somewhere." 111If you think you need this, you're probably making a mistake somewhere."
@@ -118,7 +118,7 @@ If you think you need this, you're probably making a mistake somewhere."
118;;; definition in the file overrides the magic definitions on the 118;;; definition in the file overrides the magic definitions on the
119;;; byte-compile-macro-environment. 119;;; byte-compile-macro-environment.
120 120
121(put 'eval-when-compile 'lisp-indent-hook 0) 121(put 'eval-when-compile 'lisp-indent-function 0)
122(defmacro eval-when-compile (&rest body) 122(defmacro eval-when-compile (&rest body)
123 "Like `progn', but evaluates the body at compile time. 123 "Like `progn', but evaluates the body at compile time.
124The result of the body appears to the compiler as a quoted constant." 124The result of the body appears to the compiler as a quoted constant."
@@ -127,13 +127,14 @@ The result of the body appears to the compiler as a quoted constant."
127 ;; (list 'quote (eval (cons 'progn body))) 127 ;; (list 'quote (eval (cons 'progn body)))
128 (cons 'progn body)) 128 (cons 'progn body))
129 129
130(put 'eval-and-compile 'lisp-indent-hook 0) 130(put 'eval-and-compile 'lisp-indent-function 0)
131(defmacro eval-and-compile (&rest body) 131(defmacro eval-and-compile (&rest body)
132 "Like `progn', but evaluates the body at compile time and at load time." 132 "Like `progn', but evaluates the body at compile time and at load time."
133 (declare (debug t)) 133 (declare (debug t))
134 ;; Remember, it's magic. 134 ;; Remember, it's magic.
135 (cons 'progn body)) 135 (cons 'progn body))
136 136
137(put 'with-no-warnings 'lisp-indent-function 0)
137(defun with-no-warnings (&rest body) 138(defun with-no-warnings (&rest body)
138 "Like `progn', but prevents compiler warnings in the body." 139 "Like `progn', but prevents compiler warnings in the body."
139 ;; The implementation for the interpreter is basically trivial. 140 ;; The implementation for the interpreter is basically trivial.
@@ -147,7 +148,7 @@ The result of the body appears to the compiler as a quoted constant."
147;;; There is hardly any reason to change these parameters, anyway. 148;;; There is hardly any reason to change these parameters, anyway.
148;;; --rms. 149;;; --rms.
149 150
150;; (put 'byte-compiler-options 'lisp-indent-hook 0) 151;; (put 'byte-compiler-options 'lisp-indent-function 0)
151;; (defmacro byte-compiler-options (&rest args) 152;; (defmacro byte-compiler-options (&rest args)
152;; "Set some compilation-parameters for this file. This will affect only the 153;; "Set some compilation-parameters for this file. This will affect only the
153;; file in which it appears; this does nothing when evaluated, and when loaded 154;; file in which it appears; this does nothing when evaluated, and when loaded