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

caml-mode may require inf-caml for #3136

Closed
vicuna opened this issue Jan 9, 2002 · 2 comments
Closed

caml-mode may require inf-caml for #3136

vicuna opened this issue Jan 9, 2002 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jan 9, 2002

Original bug ID: 790
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: John Gerard Malecki
Version: ocaml-3.04
OS: SunOS 5.6
Submission from: 192-149-105-108.artisan.com (192.149.105.108)

In caml-mode ESC C-q runs the command caml-indent-phrase.
Caml-indent-phrase uses caml-find-phrase which is defined
in inf-caml. Caml-mode does not require inf-caml and so
one can get a run-time error such as

Loading caml...
Loading advice...
Loading advice...done
Loading caml...done
Loading lazy-lock (source)...
Loading lazy-lock (source)...done
Fontifying test.ml...
Fontifying test.ml... (regexps.............)
Loading lazy-lock (source)...done
Symbol's function definition is void: caml-find-phrase

My work-around is to add the following to my .emacs

(add-hook 'caml-mode-hook
      '(lambda ()
	 (require 'inf-caml)))
@vicuna
Copy link
Author

vicuna commented Jan 9, 2002

Comment author: administrator

johnm@artisan.com writes:

In caml-mode ESC C-q runs the command caml-indent-phrase.
Caml-indent-phrase uses caml-find-phrase which is defined
in inf-caml. Caml-mode does not require inf-caml and so
one can get a run-time error such as

Right.
I move this code from inf-caml.el to caml.el

Similar behavior could also be observed for other functions accessible from
the Caml menu such as run-caml, but only defined in inf-caml.el.
These are now declared autoload in caml.el

    -Didier

@vicuna
Copy link
Author

vicuna commented Jan 10, 2002

Comment author: administrator

Fixed Jan 09 2002 by Didier Remy

@vicuna vicuna closed this as completed Jan 10, 2002
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant