Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tuareg-electric-pipe gives error when tuareg-support-metaocaml is nil #45

Closed
Denommus opened this issue May 6, 2015 · 2 comments
Closed

Comments

@Denommus
Copy link

Denommus commented May 6, 2015

On line 518, kwop-regexp is set to nil, because kr is nil. Then re-search-backward throws an error because its first parameter is nil.

@let-def
Copy link

let-def commented May 14, 2015

I get a similar problem: tuareg-find-kwop-pos: Wrong type argument: stringp, nil after typing a newline after a match … with.
tuareg-find-kwop-pos was called with kr = tuareg-find-pipe-match-regexp, which was nil.
This is due to tuareg-make-indentation-regexps being skipped at initialization because of tuareg-use-smie.

My fix (applied on tuareg-20150316.1247):

--- tuareg.el.old   2015-05-14 13:19:26.106461668 -0400
+++ tuareg.el   2015-05-14 13:19:58.304916000 -0400
@@ -2095,9 +2095,8 @@
   ;; Initialize the Tuareg menu
   (tuareg-build-menu)

-  (unless tuareg-use-smie
-    ;; Initialize indentation regexps
-    (tuareg-make-indentation-regexps))
+  ;; Initialize indentation regexps
+  (tuareg-make-indentation-regexps)

   (set (make-local-variable 'paragraph-start)
        (concat "^[ \t]*$\\|\\*)$\\|" page-delimiter))

@Chris00
Copy link
Member

Chris00 commented Sep 14, 2018

This is obsoleted by the evolution of the code.

@Chris00 Chris00 closed this as completed Sep 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants