+2013-05-13 Leo Liu <sdl.web@gmail.com>
+
+ * progmodes/octave.el (octave-indent-comment): Fix the indentation
+ of ### or %%%.
+
2013-05-12 Leo Liu <sdl.web@gmail.com>
* progmodes/octave.el (inferior-octave-startup): Store the value
"A function for `smie-indent-functions' (which see)."
(save-excursion
(back-to-indentation)
- (when (and (not (octave-in-string-or-comment-p))
- (looking-at-p "\\s<\\(?:[^{}]\\|$\\)")
- (not (looking-at-p "\\s<\\s<")))
- (comment-choose-indent))))
+ (cond
+ ((octave-in-string-or-comment-p) nil)
+ ((looking-at-p "\\s<\\{3,\\}")
+ 0)
+ ((and (looking-at-p "\\s<\\(?:[^{}]\\|$\\)")
+ (not (looking-at-p "\\s<\\s<")))
+ (comment-choose-indent)))))
\f
(defvar octave-font-lock-keywords