changeset 9219:c57babb0ebd5

(indent-c++-exp): For public/private/protected, don't do the case/label adjustment.
author Richard M. Stallman <rms@gnu.org>
date Sun, 02 Oct 1994 03:44:59 +0000
parents db4473eb2265
children 8f05784959cc
files lisp/progmodes/cplus-md.el
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/cplus-md.el	Sun Oct 02 02:41:24 1994 +0000
+++ b/lisp/progmodes/cplus-md.el	Sun Oct 02 03:44:59 1994 +0000
@@ -694,13 +694,13 @@
 			(setq this-indent val))))
 	    ;; Adjust line indentation according to its contents
 	    (if (looking-at "\\(public\\|private\\|protected\\):")
-		(setq this-indent (- this-indent c-indent-level)))
-	    (if (or (looking-at "case[ \t]")
-		    (and (looking-at "[A-Za-z]")
-			 (save-excursion
-			   (forward-sexp 1)
-			   (looking-at ":[^:]"))))
-		(setq this-indent (max 1 (+ this-indent c-label-offset))))
+		(setq this-indent (- this-indent c-indent-level))
+	      (if (or (looking-at "case[ \t]")
+		      (and (looking-at "[A-Za-z]")
+			   (save-excursion
+			     (forward-sexp 1)
+			     (looking-at ":[^:]"))))
+		  (setq this-indent (max 1 (+ this-indent c-label-offset)))))
 	    (if (looking-at "friend[ \t]")
 		(setq this-indent (+ this-indent c++-friend-offset)))
 	    (if (= (following-char) ?\})