Automatic loading of tuareg doesn't work

Bug #41448 reported by David Kågedal
8
Affects Status Importance Assigned to Milestone
tuareg-mode (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

When I start an emacs and open a .ml file, I get this message:

  File mode specification error: (file-error "Cannot open load file" "tuareg")

This is beacuse even if /etc/emacs/site-start.d/51tuareg-mode.el has been loaded, it hasn't added /usr/share/emacs21/site-lisp/tuareg-mode/ to load-path.

Shouldn't 51tuareg-mode.el use debian-pkg-add-load-path-item or something.

ii tuareg-mode 1.45.2-1 An emacs-mode for ocaml programs
ii emacs21 21.4a-3ubuntu1 The GNU Emacs editor

Revision history for this message
David Kågedal (dkagedal) wrote :

Here's the needed patch, if my browser doesn't mangle it too bad:

--- 51tuareg-mode.el.orig 2006-06-15 21:14:30.000000000 -0400
+++ 51tuareg-mode.el 2006-06-15 21:16:15.000000000 -0400
@@ -10,3 +10,8 @@
                (if (not (and (boundp 'mule-x-win-initted) mule-x-win-initted))
             (require 'sym-lock))
                (require 'font-lock)))
+
+(debian-pkg-add-load-path-item
+ (concat "/usr/share/"
+ (symbol-name debian-emacs-flavor)
+ "/site-lisp/tuareg-mode"))

Revision history for this message
David Kågedal (dkagedal) wrote :

Isn't there anyone who knows how elisp packages should be written?

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom reproducible in 8.10 alpha?

Changed in tuareg-mode:
status: New → Incomplete
Revision history for this message
David Kågedal (dkagedal) wrote :

I t seems to work even in hardy. I haven't tried 8.10

Revision history for this message
Duane Hinnen (duanedesign) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.

Revision history for this message
Duane Hinnen (duanedesign) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in tuareg-mode (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.