diff options
| author | Kenichi Handa | 2010-02-26 10:22:23 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2010-02-26 10:22:23 +0900 |
| commit | 06aac9016fc074f856a4b374572024a68784e630 (patch) | |
| tree | 8f8af86b761b2fa897453ef91e57096008af9f7f | |
| parent | 7379cfce157cbd68045970dafa92c6216ced84b3 (diff) | |
| parent | cf2fdcfbd30470838239d8199da909a990cdeb3b (diff) | |
| download | emacs-06aac9016fc074f856a4b374572024a68784e630.tar.gz emacs-06aac9016fc074f856a4b374572024a68784e630.zip | |
from trunk
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/progmodes/cc-engine.el | 8 | ||||
| -rw-r--r-- | lisp/progmodes/cc-mode.el | 16 | ||||
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/nsfont.m | 4 |
5 files changed, 32 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d0cdaf25a23..59bd441f0d8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2010-02-25 Alan Mackenzie <acm@muc.de> | ||
| 2 | |||
| 3 | * progmodes/cc-engine.el (c-clear-<-pair-props) | ||
| 4 | (c-clear->-pair-props): Correct to wipe category text props, not | ||
| 5 | syntax-table ones. | ||
| 6 | |||
| 7 | * progmodes/cc-mode.el (c-after-change): Remove any hard | ||
| 8 | syntax-table properties for <, > which, e.g., C-y has | ||
| 9 | inopportunely converted from category properties. | ||
| 10 | |||
| 1 | 2010-02-24 Chong Yidong <cyd@stupidchicken.com> | 11 | 2010-02-24 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 12 | ||
| 3 | * files.el (hack-local-variables-filter): For eval forms, also | 13 | * files.el (hack-local-variables-filter): For eval forms, also |
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index 3b7f6e4ea0a..336e2c39262 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el | |||
| @@ -4929,8 +4929,8 @@ comment at the start of cc-engine.el for more info." | |||
| 4929 | (c-go-list-forward)) | 4929 | (c-go-list-forward)) |
| 4930 | (when (equal (c-get-char-property (1- (point)) 'syntax-table) | 4930 | (when (equal (c-get-char-property (1- (point)) 'syntax-table) |
| 4931 | c->-as-paren-syntax) ; should always be true. | 4931 | c->-as-paren-syntax) ; should always be true. |
| 4932 | (c-clear-char-property (1- (point)) 'syntax-table)) | 4932 | (c-clear-char-property (1- (point)) 'category)) |
| 4933 | (c-clear-char-property pos 'syntax-table)))) | 4933 | (c-clear-char-property pos 'category)))) |
| 4934 | 4934 | ||
| 4935 | (defun c-clear->-pair-props (&optional pos) | 4935 | (defun c-clear->-pair-props (&optional pos) |
| 4936 | ;; POS (default point) is at a > character. If it is marked with | 4936 | ;; POS (default point) is at a > character. If it is marked with |
| @@ -4946,8 +4946,8 @@ comment at the start of cc-engine.el for more info." | |||
| 4946 | (c-go-up-list-backward)) | 4946 | (c-go-up-list-backward)) |
| 4947 | (when (equal (c-get-char-property (point) 'syntax-table) | 4947 | (when (equal (c-get-char-property (point) 'syntax-table) |
| 4948 | c-<-as-paren-syntax) ; should always be true. | 4948 | c-<-as-paren-syntax) ; should always be true. |
| 4949 | (c-clear-char-property (point) 'syntax-table)) | 4949 | (c-clear-char-property (point) 'category)) |
| 4950 | (c-clear-char-property pos 'syntax-table)))) | 4950 | (c-clear-char-property pos 'category)))) |
| 4951 | 4951 | ||
| 4952 | (defun c-clear-<>-pair-props (&optional pos) | 4952 | (defun c-clear-<>-pair-props (&optional pos) |
| 4953 | ;; POS (default point) is at a < or > character. If it has an | 4953 | ;; POS (default point) is at a < or > character. If it has an |
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el index 57f87c04b88..7f9ed6436f4 100644 --- a/lisp/progmodes/cc-mode.el +++ b/lisp/progmodes/cc-mode.el | |||
| @@ -642,11 +642,9 @@ compatible with old code; callers should always specify it." | |||
| 642 | (widen) | 642 | (widen) |
| 643 | (save-excursion | 643 | (save-excursion |
| 644 | (if c-get-state-before-change-functions | 644 | (if c-get-state-before-change-functions |
| 645 | (let ((beg (point-min)) | 645 | (mapc (lambda (fn) |
| 646 | (end (point-max))) | 646 | (funcall fn (point-min) (point-max))) |
| 647 | (mapc (lambda (fn) | 647 | c-get-state-before-change-functions)) |
| 648 | (funcall fn beg end)) | ||
| 649 | c-get-state-before-change-functions))) | ||
| 650 | (if c-before-font-lock-function | 648 | (if c-before-font-lock-function |
| 651 | (funcall c-before-font-lock-function (point-min) (point-max) | 649 | (funcall c-before-font-lock-function (point-min) (point-max) |
| 652 | (- (point-max) (point-min)))))) | 650 | (- (point-max) (point-min)))))) |
| @@ -1042,6 +1040,14 @@ Note that the style variables are always made local to the buffer." | |||
| 1042 | (when (> beg end) | 1040 | (when (> beg end) |
| 1043 | (setq beg end))) | 1041 | (setq beg end))) |
| 1044 | 1042 | ||
| 1043 | ;; C-y is capable of spuriously converting category properties | ||
| 1044 | ;; c-</>-as-paren-syntax into hard syntax-table properties. Remove | ||
| 1045 | ;; these when it happens. | ||
| 1046 | (c-clear-char-property-with-value beg end 'syntax-table | ||
| 1047 | c-<-as-paren-syntax) | ||
| 1048 | (c-clear-char-property-with-value beg end 'syntax-table | ||
| 1049 | c->-as-paren-syntax) | ||
| 1050 | |||
| 1045 | (c-trim-found-types beg end old-len) ; maybe we don't need all of these. | 1051 | (c-trim-found-types beg end old-len) ; maybe we don't need all of these. |
| 1046 | (c-invalidate-sws-region-after beg end) | 1052 | (c-invalidate-sws-region-after beg end) |
| 1047 | (c-invalidate-state-cache beg) | 1053 | (c-invalidate-state-cache beg) |
diff --git a/src/ChangeLog b/src/ChangeLog index 8ad6941a806..36e056b786d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -2,6 +2,11 @@ | |||
| 2 | 2 | ||
| 3 | * xdisp.c (reseat_to_string): Fix previous change. | 3 | * xdisp.c (reseat_to_string): Fix previous change. |
| 4 | 4 | ||
| 5 | 2010-02-26 David Reitter <david.reitter@gmail.com> | ||
| 6 | |||
| 7 | * nsfont.m (nsfont_draw): ns_antialias_text should be a | ||
| 8 | Lisp_Object (Bug#4736). | ||
| 9 | |||
| 5 | 2010-02-25 Kenichi Handa <handa@m17n.org> | 10 | 2010-02-25 Kenichi Handa <handa@m17n.org> |
| 6 | 11 | ||
| 7 | * xdisp.c (reseat_to_string): Fix previous change (bug#5609). | 12 | * xdisp.c (reseat_to_string): Fix previous change (bug#5609). |
diff --git a/src/nsfont.m b/src/nsfont.m index 97d74a82f2b..59d5ee73db1 100644 --- a/src/nsfont.m +++ b/src/nsfont.m | |||
| @@ -50,7 +50,7 @@ extern Lisp_Object Qnormal, Qbold, Qitalic, Qcondensed, Qexpanded; | |||
| 50 | static Lisp_Object Vns_reg_to_script; | 50 | static Lisp_Object Vns_reg_to_script; |
| 51 | static Lisp_Object Qapple, Qroman, Qmedium; | 51 | static Lisp_Object Qapple, Qroman, Qmedium; |
| 52 | extern Lisp_Object Qappend; | 52 | extern Lisp_Object Qappend; |
| 53 | extern int ns_antialias_text; | 53 | extern Lisp_Object ns_antialias_text; |
| 54 | extern float ns_antialias_threshold; | 54 | extern float ns_antialias_threshold; |
| 55 | extern int ns_tmp_flags; | 55 | extern int ns_tmp_flags; |
| 56 | extern struct nsfont_info *ns_tmp_font; | 56 | extern struct nsfont_info *ns_tmp_font; |
| @@ -1231,7 +1231,7 @@ nsfont_draw (struct glyph_string *s, int from, int to, int x, int y, | |||
| 1231 | 1231 | ||
| 1232 | CGContextSetFont (gcontext, font->cgfont); | 1232 | CGContextSetFont (gcontext, font->cgfont); |
| 1233 | CGContextSetFontSize (gcontext, font->size); | 1233 | CGContextSetFontSize (gcontext, font->size); |
| 1234 | if (ns_antialias_text == Qnil || font->size <= ns_antialias_threshold) | 1234 | if (NILP (ns_antialias_text) || font->size <= ns_antialias_threshold) |
| 1235 | CGContextSetShouldAntialias (gcontext, 0); | 1235 | CGContextSetShouldAntialias (gcontext, 0); |
| 1236 | else | 1236 | else |
| 1237 | CGContextSetShouldAntialias (gcontext, 1); | 1237 | CGContextSetShouldAntialias (gcontext, 1); |