aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Wiegley2005-03-08 03:59:54 +0000
committerJohn Wiegley2005-03-08 03:59:54 +0000
commit3ee9f6ac67306471052d0e81fc1e1c6ba9850c2f (patch)
treeaeed077d3d200945d45476ac56443a586f9fc94c
parentbfa8be14bff7a8805d37af6db447b7dbf8462fa3 (diff)
downloademacs-3ee9f6ac67306471052d0e81fc1e1c6ba9850c2f.tar.gz
emacs-3ee9f6ac67306471052d0e81fc1e1c6ba9850c2f.zip
2005-03-07 Karl Chen <quarl@cs.berkeley.edu>
* align.el (align-rules-list): Added an alignment rule for CSS declarations (applies to css-mode and html-mode buffers).
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/align.el31
2 files changed, 23 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index df930a970d7..4dc60b0fb9f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12005-03-07 Karl Chen <quarl@cs.berkeley.edu>
2
3 * align.el (align-rules-list): Added an alignment rule for CSS
4 declarations (applies to css-mode and html-mode buffers).
5
12005-03-07 Stefan Monnier <monnier@iro.umontreal.ca> 62005-03-07 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * emacs-lisp/debug.el (debug-on-entry-1): Fix handling of macros. 8 * emacs-lisp/debug.el (debug-on-entry-1): Fix handling of macros.
diff --git a/lisp/align.el b/lisp/align.el
index 5e739c8f7c0..5238a75807d 100644
--- a/lisp/align.el
+++ b/lisp/align.el
@@ -466,13 +466,13 @@ The possible settings for `align-region-separate' are:
466 (repeat . t) 466 (repeat . t)
467 (modes . align-c++-modes) 467 (modes . align-c++-modes)
468 (run-if . ,(function (lambda () current-prefix-arg)))) 468 (run-if . ,(function (lambda () current-prefix-arg))))
469; (valid 469 ; (valid
470; . ,(function 470 ; . ,(function
471; (lambda () 471 ; (lambda ()
472; (memq (caar (c-guess-basic-syntax)) 472 ; (memq (caar (c-guess-basic-syntax))
473; '(brace-list-intro 473 ; '(brace-list-intro
474; brace-list-entry 474 ; brace-list-entry
475; brace-entry-open)))))) 475 ; brace-entry-open))))))
476 476
477 ;; With a prefix argument, comma delimiter will be aligned. Since 477 ;; With a prefix argument, comma delimiter will be aligned. Since
478 ;; perl-mode doesn't give us enough syntactic information (and we 478 ;; perl-mode doesn't give us enough syntactic information (and we
@@ -525,11 +525,11 @@ The possible settings for `align-region-separate' are:
525 (regexp . "\\(\\s-*\\)\\\\$") 525 (regexp . "\\(\\s-*\\)\\\\$")
526 (modes . align-c++-modes) 526 (modes . align-c++-modes)
527 (column . c-backslash-column)) 527 (column . c-backslash-column))
528; (valid 528 ; (valid
529; . ,(function 529 ; . ,(function
530; (lambda () 530 ; (lambda ()
531; (memq (caar (c-guess-basic-syntax)) 531 ; (memq (caar (c-guess-basic-syntax))
532; '(cpp-macro cpp-macro-cont)))))) 532 ; '(cpp-macro cpp-macro-cont))))))
533 533
534 (basic-line-continuation 534 (basic-line-continuation
535 (regexp . "\\(\\s-*\\)\\\\$") 535 (regexp . "\\(\\s-*\\)\\\\$")
@@ -578,7 +578,12 @@ The possible settings for `align-region-separate' are:
578 (justify . t) 578 (justify . t)
579 (run-if . ,(function 579 (run-if . ,(function
580 (lambda () 580 (lambda ()
581 (eq '- current-prefix-arg)))))) 581 (eq '- current-prefix-arg)))))
582
583 (css-declaration
584 (regexp . "^\\s-*\\w+:\\(\\s-*\\).*;")
585 (group . (1))
586 (modes . '(css-mode html-mode))))
582 "*A list describing all of the available alignment rules. 587 "*A list describing all of the available alignment rules.
583The format is: 588The format is:
584 589