Commits

Stephen Weeks committed ced2860

Fixed tuareg bug. Fix submitted by dabenjamin via email on 2012-08-10.

  • Participants
  • Parent commits f0860e4

Comments (0)

Files changed (1)

File elisp/contrib/tuareg/tuareg.el

     (set (make-local-variable 'indent-line-function) #'tuareg-indent-command))
   (tuareg-install-font-lock)
   (set (make-local-variable 'open-paren-in-column-0-is-defun-start) nil)
-  
+
   (add-hook 'completion-at-point-functions #'tuareg-completion-at-point nil t)
 
   (when (fboundp 'electric-indent-mode)
   (current-column))
 
 (defun tuareg-compute-kwop-indent-general (kwop matching-kwop)
-  (let* ((looking-at-matching (looking-at matching-kwop))
+  (let* ((looking-at-matching (and matching-kwop (looking-at matching-kwop)))
          (extra-unindent        ; non-paren code before matching-kwop
           (unless (save-excursion
                     (skip-chars-backward "( \t" (line-beginning-position))