]> Cypherpunks repositories - gostls13.git/commitdiff
misc/emacs: fix indent bug
authorRuss Cox <rsc@golang.org>
Wed, 5 Oct 2011 16:27:23 +0000 (12:27 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 5 Oct 2011 16:27:23 +0000 (12:27 -0400)
Must use case-sensitive search to identify keywords.

Fixes #2287.

R=bradfitz
CC=golang-dev
https://golang.org/cl/5182043

misc/emacs/go-mode.el

index 1c90af865f2a13338cd9c871c439a46b9885c045..271677bc7f817e8cb0d2aa4324f3737ba004c1cc 100644 (file)
@@ -355,7 +355,7 @@ indented one level."
 
   (save-excursion
     (back-to-indentation)
-    (let ((cs (go-mode-cs)))
+    (let ((cs (go-mode-cs)) (case-fold-search nil))
       ;; Treat comments and strings differently only if the beginning
       ;; of the line is contained within them
       (when (and cs (= (point) (car cs)))