Function: compile-goto-error
compile-goto-error is an interactive and byte-compiled function
defined in compile.el.gz.
Signature
(compile-goto-error &optional EVENT)
Documentation
Visit the source for the error message at point.
Use this command in a compilation log buffer.
Key Bindings
Aliases
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/compile.el.gz
(defun compile-goto-error (&optional event)
"Visit the source for the error message at point.
Use this command in a compilation log buffer."
(interactive (list last-input-event))
(if event (posn-set-point (event-end event)))
(or (compilation-buffer-p (current-buffer))
(error "Not in a compilation buffer"))
(compilation--ensure-parse (point))
(if (get-text-property (point) 'compilation-directory)
(dired-other-window
(car (get-text-property (point) 'compilation-directory)))
(setq compilation-current-error (point))
(next-error-internal)))