simplify utop-compat-resolve
No need to try loading one of the major mode as utop-mode is now a minor mode and has to be used in conjunction with the current major mode of the buffer.
This commit is contained in:
parent
0d606f6dae
commit
1fa1b1f0b3
|
@ -245,12 +245,6 @@ Caml toplevel")
|
||||||
(intern (concat "typerex-" symbol)))
|
(intern (concat "typerex-" symbol)))
|
||||||
((eq major-mode 'caml-mode)
|
((eq major-mode 'caml-mode)
|
||||||
(intern (concat "caml-" symbol)))
|
(intern (concat "caml-" symbol)))
|
||||||
((require 'tuareg nil t)
|
|
||||||
(intern (concat "tuareg-" symbol)))
|
|
||||||
((require 'typerex nil t)
|
|
||||||
(intern (concat "typerex-" symbol)))
|
|
||||||
((require 'caml nil t)
|
|
||||||
(intern (concat "caml-" symbol)))
|
|
||||||
(error (concat "unsupported mode: " (symbol-name major-mode) ", utop support only caml, tuareg and typerex modes"))))
|
(error (concat "unsupported mode: " (symbol-name major-mode) ", utop support only caml, tuareg and typerex modes"))))
|
||||||
|
|
||||||
(defun compat-skip-blank-and-comments ()
|
(defun compat-skip-blank-and-comments ()
|
||||||
|
|
Loading…
Reference in New Issue