Variable: compilation-auto-jump-to-first-error

compilation-auto-jump-to-first-error is a customizable variable defined in compile.el.gz.

Value

nil

Documentation

If non-nil, automatically jump to the first error during compilation.

The value if-location-known means automatically jump to the first error if the error's file can be found. The value first-known means jump to the first error whose file can be found. Any other non-nil value means jump to the first error unconditionally.

This variable was added, or its default value changed, in Emacs 29.1.

View in manual

Probably introduced at or before Emacs version 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/compile.el.gz
(defcustom compilation-auto-jump-to-first-error nil
  "If non-nil, automatically jump to the first error during compilation.

The value `if-location-known' means automatically jump to the first error
if the error's file can be found.  The value `first-known' means jump to
the first error whose file can be found.  Any other non-nil value means
jump to the first error unconditionally."
  :type '(choice (const :tag "Never" nil)
                 (const :tag "Always" t)
                 (const :tag "If location known" if-location-known)
                 (const :tag "First known location" first-known))
  :version "29.1")