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

Bug#501889: allow autoloading of tuareg-eval-*



Package: tuareg-mode
Version: 1:1.45.6-1
Severity: wishlist

Once tuareg mode has been loaded, in whatever Emacs buffer, all tuareg-*
functions become available. Still, it would be useful to allow the usage
of some tuareg-eval-* function even if tuareg-mode has not been loaded
yet.

My use case for that is writing slides about OCaml using LaTeX. In such
a scenario I haven't loaded tuareg-mode because I'm living in LaTeX
major mode and for sure I don't want to load it. Still, I do want to be
able to select OCaml snippet and eval them using either
tuareg-eval-region or tuareg-eval-phrase.

AFAIU (Elisp newbie here) to make this work it would be enough to add a
couple of autoload directives to the involved functions.

Cheers.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages tuareg-mode depends on:
ii  emacs-snapshot [emacsen]    1:20081005-1 The GNU Emacs editor (development 
ii  emacs-snapshot-nox [emacsen 1:20081005-1 The GNU Emacs editor (without X su

Versions of packages tuareg-mode recommends:
ii  ocaml                         3.10.2-3   ML language implementation with a 
ii  ocaml-mode                    3.10.2-3   A major mode for editing Objective

tuareg-mode suggests no packages.

-- no debconf information



Reply to: