Bug#788456: tries to use OPAM even if OPAM is not initialized
Package: tuareg-mode
Version: 1:2.0.9-2
Severity: wishlist
Dear Maintainer,
If opam is installed, the command used by tuareg-run-ocaml defaults to
"/usr/bin/opam config exec -- ocaml", even if there is no ~/.opam
directory. It should at least check for existence of $OPAMROOT or
~/.opam before doing so.
Looking at tuareg.el, the command used as default is stored in the
variable tuareg-interactive-program. However, setting it in ~/.emacs
doesn't have any effect since it is set during tuareg-mode
initialization. tuareg-mode should skip this initialization if
tuareg-interactive-program is already set.
Workaround: set tuareg-opam to nil in ~/.emacs
Cheers,
--
Stéphane
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages tuareg-mode depends on:
ii emacs 46.1
ii emacs24 [emacsen] 24.4+1-5
ii emacsen-common 2.0.8
Versions of packages tuareg-mode recommends:
ii ocaml-interp 4.01.0-5
ii ocaml-mode 4.01.0-5
tuareg-mode suggests no packages.
-- no debconf information
Reply to: