# HG changeset patch # User Richard M. Stallman # Date 781069499 0 # Node ID c57babb0ebd57aa15464013c6d01e2e9998dab49 # Parent db4473eb22651368e51128db80c6abde13e9356e (indent-c++-exp): For public/private/protected, don't do the case/label adjustment. diff -r db4473eb2265 -r c57babb0ebd5 lisp/progmodes/cplus-md.el --- 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) ?\})