Loading ...
Sorry, an error occurred while loading the content.

10448#load-ing in emacs

Expand Messages
  • citromatik
    Dec 1, 2008

      When I run ocaml within emacs I am not able to #load properly (my own)
      object files (*.cmo).
      For example:

      # #load "/path/to/myfile.cmo";;
      # Myfile.myfun;;
      Characters 0-16:
      Unbound value Myfile.myfun

      This doesn't happen with modules that comes with the ocaml distribution:

      # #load "/path/to/str.cma";;
      # Str.regexp;;
      - : string -> Str.regexp = <fun>

      Strangely enough, this issue only happens when ocaml is ran under emacs,
      when running the toplevel in the shell, the #load directive works as (I)

      $ ocaml
      Objective Caml version 3.10.1

      # #load "/path/to/myfile.cmo";;
      # Myfile.myfun;;
      - : Lexing.lexbuf -> Token.token = <fun>

      Does anybody knows what is happening and how can I solve it?

      Thank you very much in advance,


      View this message in context: http://www.nabble.com/-load-ing-in-emacs-tp20767815p20767815.html
      Sent from the Ocaml Beginner mailing list archive at Nabble.com.