* progmodes/octave.el (octave-indent-comment): Fix the indentation
of ### or %%%.
This commit is contained in:
parent
44aa9ee6d2
commit
2aeb3a1dba
2 changed files with 12 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
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
|
||||
|
|
|
@ -434,10 +434,13 @@ Non-nil means always go to the next Octave code line after sending."
|
|||
"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)))))
|
||||
|
||||
|
||||
(defvar octave-font-lock-keywords
|
||||
|
|
Loading…
Add table
Reference in a new issue