summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2013-05-28 15:42:56 +0000
committerAlan Mackenzie <acm@muc.de>2013-05-28 15:42:56 +0000
commit336d7284648810ce48a88d22515809f84415b5c1 (patch)
treefc9702b417dca5c4eeb87875d74be7a31e29d745
parentcb29c582d72e8ca5488bc4749db68c5843b59abc (diff)
Handle "capitalised keywords" correctly.
* progmodes/cc-mode.el (c-after-change): bind case-fold-search to nil.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/progmodes/cc-mode.el2
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c17ea64a86..9f9302680b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
+2013-05-28 Alan Mackenzie <acm@muc.de>
+
+ Handle "capitalised keywords" correctly.
+ * progmodes/cc-mode.el (c-after-change): bind case-fold-search to
+ nil.
+
2013-05-28 Aidan Gauland <aidalgol@amuri.net>
* eshell/em-unix.el: Added -r option to cp
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el
index 345bbb7745..064f62fc74 100644
--- a/lisp/progmodes/cc-mode.el
+++ b/lisp/progmodes/cc-mode.el
@@ -1059,7 +1059,7 @@ Note that the style variables are always made local to the buffer."
;; This calls the language variable c-before-font-lock-functions, if non nil.
;; This typically sets `syntax-table' properties.
- (c-save-buffer-state ()
+ (c-save-buffer-state (case-fold-search)
;; When `combine-after-change-calls' is used we might get calls
;; with regions outside the current narrowing. This has been
;; observed in Emacs 20.7.