aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Steingold2000-08-07 16:51:57 +0000
committerSam Steingold2000-08-07 16:51:57 +0000
commit5e9e032a38c132e9d1b2709c000ee7795b6be0fb (patch)
treee1d816ae36be4f64390c983e902c8c44b19bc537
parent66b6c480a881982cdedf52e59b746e32cd79bf5e (diff)
downloademacs-5e9e032a38c132e9d1b2709c000ee7795b6be0fb.tar.gz
emacs-5e9e032a38c132e9d1b2709c000ee7795b6be0fb.zip
* emacs-lisp/cl-indent.el (toplevel): Indent `defclass',
`defconst', `define-condition', `with-slots'. * font-lock.el (lisp-font-lock-keywords-2): Added `with-' and `do-'.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/emacs-lisp/cl-indent.el15
-rw-r--r--lisp/font-lock.el7
3 files changed, 18 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5f7916cc214..f3f1158998e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12000-08-07 Sam Steingold <sds@gnu.org>
2
3 * emacs-lisp/cl-indent.el (toplevel): Indent `defclass',
4 `defconst', `define-condition', `with-slots'.
5 * font-lock.el (lisp-font-lock-keywords-2): Added `with-' and `do-'.
6
12000-08-03 Miles Bader <miles@gnu.org> 72000-08-03 Miles Bader <miles@gnu.org>
2 8
3 * comint.el (comint-use-prompt-regexp-instead-of-fields): 9 * comint.el (comint-use-prompt-regexp-instead-of-fields):
diff --git a/lisp/emacs-lisp/cl-indent.el b/lisp/emacs-lisp/cl-indent.el
index 295a85b7aed..c74b5d66d51 100644
--- a/lisp/emacs-lisp/cl-indent.el
+++ b/lisp/emacs-lisp/cl-indent.el
@@ -382,13 +382,13 @@ by `lisp-body-indent'."
382 (catch 1) 382 (catch 1)
383 (cond (&rest (&whole 2 &rest 1))) 383 (cond (&rest (&whole 2 &rest 1)))
384 (defvar (4 2 2)) 384 (defvar (4 2 2))
385 (defclass ((&whole 4 &rest (&whole 2 &rest 1)) 385 (defclass (6 4 (&whole 2 &rest 1) (&whole 2 &rest 1)))
386 &rest (&whole 2 &rest 1)))
387 (defconstant . defvar) 386 (defconstant . defvar)
388 (defcustom (4 2 2 2)) 387 (defcustom (4 2 2 2))
389 (defparameter . defvar) 388 (defparameter . defvar)
390 (define-modify-macro 389 (defconst . defcustom)
391 (4 &body)) 390 (define-condition . defclass)
391 (define-modify-macro (4 &body))
392 (defsetf (4 &lambda 4 &body)) 392 (defsetf (4 &lambda 4 &body))
393 (defun (4 &lambda &body)) 393 (defun (4 &lambda &body))
394 (define-setf-method . defun) 394 (define-setf-method . defun)
@@ -421,10 +421,8 @@ by `lisp-body-indent'."
421 (handler-bind . let) (restart-bind . let) 421 (handler-bind . let) (restart-bind . let)
422 (locally 1) 422 (locally 1)
423 ;(loop ...) 423 ;(loop ...)
424 (multiple-value-bind 424 (multiple-value-bind ((&whole 6 &rest 1) 4 &body))
425 ((&whole 6 &rest 1) 4 &body)) 425 (multiple-value-call (4 &body))
426 (multiple-value-call
427 (4 &body))
428 (multiple-value-prog1 1) 426 (multiple-value-prog1 1)
429 (multiple-value-setq (4 2)) 427 (multiple-value-setq (4 2))
430 (multiple-value-setf . multiple-value-setq) 428 (multiple-value-setf . multiple-value-setq)
@@ -446,6 +444,7 @@ by `lisp-body-indent'."
446 (unwind-protect (5 &body)) 444 (unwind-protect (5 &body))
447 (when 1) 445 (when 1)
448 (with-output-to-string (4 2)) 446 (with-output-to-string (4 2))
447 (with-slots . multiple-value-bind)
449 (with-standard-io-syntax (2))))) 448 (with-standard-io-syntax (2)))))
450 (while l 449 (while l
451 (put (caar l) 'common-lisp-indent-function 450 (put (caar l) 'common-lisp-indent-function
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index adaa514574a..4a0c7f0d58c 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -186,7 +186,7 @@
186;; doesn't work. Or maybe it allows you to think less and drift off to sleep. 186;; doesn't work. Or maybe it allows you to think less and drift off to sleep.
187;; 187;;
188;; So, here are my opinions/advice/guidelines: 188;; So, here are my opinions/advice/guidelines:
189;; 189;;
190;; - Highlight conceptual objects, such as function and variable names, and 190;; - Highlight conceptual objects, such as function and variable names, and
191;; different objects types differently, i.e., (a) and (b) above, highlight 191;; different objects types differently, i.e., (a) and (b) above, highlight
192;; function names differently to variable names. 192;; function names differently to variable names.
@@ -1113,7 +1113,7 @@ The value of this variable is used when Font Lock mode is turned on."
1113 ;; `fontified' text props around since jit-lock-mode is also off. 1113 ;; `fontified' text props around since jit-lock-mode is also off.
1114 ;; - font-lock-default-fontify-buffer fails: this is not run 1114 ;; - font-lock-default-fontify-buffer fails: this is not run
1115 ;; any more anyway. -sm 1115 ;; any more anyway. -sm
1116 ;; 1116 ;;
1117 ;; (jit-lock-mode 1117 ;; (jit-lock-mode
1118 ;; (jit-lock-after-unfontify-buffer)) 1118 ;; (jit-lock-after-unfontify-buffer))
1119 (lazy-lock-mode 1119 (lazy-lock-mode
@@ -2177,6 +2177,9 @@ This function could be MATCHER in a MATCH-ANCHORED `font-lock-keywords' item."
2177 ;; 2177 ;;
2178 ;; ELisp and CLisp `&' keywords as types. 2178 ;; ELisp and CLisp `&' keywords as types.
2179 '("\\&\\sw+\\>" . font-lock-type-face) 2179 '("\\&\\sw+\\>" . font-lock-type-face)
2180 ;;
2181 ;; CL `with-' and `do-' constructs
2182 '("(\\(\\(do-\\|with-\\)\\(\\s_\\|\\w\\)*\\)" 1 font-lock-keyword-face)
2180 ))) 2183 )))
2181 "Gaudy level highlighting for Lisp modes.") 2184 "Gaudy level highlighting for Lisp modes.")
2182 2185