[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: tuareg et/ou ocaml-dev ?

> On Wed, Mar 14, 2001 at 01:45:23AM -0800, Ian Zimmerman wrote:
> > Er, _alternatives_, not diversions, is the proper mechanism for this.
> > I am not a Debian maintainer (yet), but I seem to know a bit more
> > about the system than some official maintainers :(
> Sorry, i never used that stuff, ...
> but i guess you are right, it should be alternatives, and i am sure, if both
> can be installed at the same time, it would be best to have both installed at
> the same time.

Using the alternatives mechanism implies that the system administrator
has to decide between two alternatives (caml-mode or tuareg-mode),
and we probably want to leave this decision to the user.

But why make things so complicated? caml-mode and tuareg-mode can 
perfectly co-exist on one machine, and the names of the modes are
different. One user might set in his .emacs

(setq auto-mode-alist
              (cons '("\\.ml[iylp]?$" . caml-mode) auto-mode-alist))

and the other might set in his .emacs

(setq auto-mode-alist
              (cons '("\\.ml[iylp]?$" . tuareg-mode) auto-mode-alist))

No big deal. We might even have the first as default, and have in the
README.Debian of tuareg instructions what the user should do to start
automatically the caml mode of his choice.

BTW: ocaml should install an emacs startup file that defines which
file to load when the user invokes "caml-mode". This will be 
another wish-list bug for Sven :-)


Reply to: