Отображение номера строки в дополнение к символам в сообщении об ошибке emacs ocaml

Прямо сейчас я нахожусь в режиме Emacs Tuareg, и я получаю это сообщение об ошибке

             * * *             * * * * * *       * *           Characters 2686-2820:

Но невозможно найти, где это происходит.

Вот мой файл.emacs

(add-to-list 'load-path "~/tuareg-caml-mode")
(add-to-list 'load-path "~/tuareg-2.0.4")
(setq auto-mode-alist (cons '("\\.ml\\w?" . tuareg-mode) auto-mode-alist))
(autoload 'tuareg-mode "tuareg" "Major mode for editing Caml code" t)
(autoload 'camldebug "camldebug" "Run the Caml debugger" t)
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )
(require 'linum)             
(global-linum-mode 1)

1 ответ

Я размышлял об этом и подозревал, что для нас уже должно быть какое-то удобное решение. Сначала я нашел это:

http://www.ocamlpro.com/files/tuareg-mode.pdf

который содержит все соответствующие ярлыки для режима туарегов. Во-вторых, из этого шпаргалки "ctrl-c `" (control-c apostrophe) на верхнем уровне приводит вас прямо к обнаруженной ошибке. (Мне кажется, это работает лучше, когда я ввел функцию в верхний уровень вместо полного буфера).

Другие вопросы по тегам