Skip to content
Browse files

Fix broken abbrev in caml-mode

Abbrev was broken in the case that special keyword indent variables,
such as ocaml-in-extra-indent, were set to null.
  • Loading branch information...
1 parent 7a18e15 commit ce75de484affcd8513d970e8c13c7fb3cb7bf4df @markshroyer committed Apr 15, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 elisp/ocaml-mode/caml.el
View
5 elisp/ocaml-mode/caml.el
@@ -1505,8 +1505,9 @@ by |, insert one."
(current-column)))
(abbrev-correct (if (= last-command-char ?\ ) 1 0)))
(indent-to (- indent
- (symbol-value
- (nth 1 (assoc kw caml-leading-kwops-alist)))
+ (or (symbol-value
+ (nth 1 (assoc kw caml-leading-kwops-alist)))
+ (current-column))
abbrev-correct)))))))
(defun caml-indent-phrase ()

0 comments on commit ce75de4

Please sign in to comment.
Something went wrong with that request. Please try again.