From: Alan Mackenzie Date: Tue, 28 May 2013 15:42:56 +0000 (+0000) Subject: Handle "capitalised keywords" correctly. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~2026^2~153 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=336d7284648810ce48a88d22515809f84415b5c1;p=emacs.git Handle "capitalised keywords" correctly. * progmodes/cc-mode.el (c-after-change): bind case-fold-search to nil. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c17ea64a860..9f9302680be 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2013-05-28 Alan Mackenzie + + Handle "capitalised keywords" correctly. + * progmodes/cc-mode.el (c-after-change): bind case-fold-search to + nil. + 2013-05-28 Aidan Gauland * eshell/em-unix.el: Added -r option to cp diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el index 345bbb7745c..064f62fc746 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.