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 bug on another switch #15

Open
Drup opened this issue Jul 13, 2015 · 1 comment
Open

tuareg bug on another switch #15

Drup opened this issue Jul 13, 2015 · 1 comment

Comments

@Drup
Copy link
Contributor

Drup commented Jul 13, 2015

tuareg is on another switch. When I press ]

command-execute: Symbol's function definition is void: tuareg-electric-rb

The problem disappear if I install tuareg in the switch.

@AltGr
Copy link
Contributor

AltGr commented Jul 17, 2015

Hm... in the from-a-different-switch case, we can't add the whole elisp dir to load-path as some files there aren't suitable, so I am doing the tuareg load somewhat manually:

  (provide 'tuareg_indent) ;; to prevent circular dependency
  (autoload 'tuareg-make-indentation-regexps "/home/lg/.opam/4.02.1/share/emacs/site-lisp/tuareg_indent"
    "Init indentation for OCaml" t nil)
  (autoload 'tuareg-mode "switch/share/emacs/site-lisp/tuareg" "Major mode for editing OCaml code" t nil)
  (autoload 'tuareg-run-ocaml "switch/share/emacs/site-lisp/tuareg" "Run an OCaml toplevel process" t nil)
  (autoload 'ocamldebug "switch/share/emacs/site-lisp/ocamldebug" "Run the OCaml debugger" t nil)

tuareg-electric-rb is defined in tuareg_indent. I thought tuareg-mode always used tuareg-make-indentation-regexps first at startup so it would properly load tuareg-indent, but maybe I was wrong.

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

2 participants