* etc/NEWS: Mention new variables.
* lisp/emacs-lisp/bytecomp.el (emacs-lisp-compilation-search-path): New.
* lisp/progmodes/grep.el (grep-search-path): New.
longer.
---
-** next-error-verbose controls when `next-error' outputs a message
- about the error locus.
+** New variable next-error-verbose controls when `next-error' outputs
+ a message about the error locus.
+
+---
+** New variable grep-search-path defines the directories searched for
+ grep hits (this used to be controlled by compilation-search-path).
+
+---
+** New variable emacs-lisp-compilation-search-path defines the
+ directories searched for byte-compiler error messages (this used to
+ be controlled by compilation-search-path).
\f
* Editing Changes in Emacs 27.1
"The value for `compilation-parse-errors-filename-function' for when
we go into emacs-lisp-compilation-mode.")
+(defcustom emacs-lisp-compilation-search-path '(nil)
+ "Search path for byte-compile error messages.
+Elements should be directory names, not file names of directories.
+The value nil as an element means to try the default directory."
+ :group 'bytecomp
+ :version "27.1"
+ :type '(repeat (choice (const :tag "Default" nil)
+ (string :tag "Directory"))))
+
(define-compilation-mode emacs-lisp-compilation-mode "elisp-compile"
"The variant of `compilation-mode' used for emacs-lisp error buffers")
:version "27.1"
:group 'grep)
+(defcustom grep-search-path '(nil)
+ "Search path for grep results.
+Elements should be directory names, not file names of directories.
+The value nil as an element means to try the default directory."
+ :group 'grep
+ :version "27.1"
+ :type '(repeat (choice (const :tag "Default" nil)
+ (string :tag "Directory"))))
+
(defvar grep-find-abbreviate-properties
(let ((ellipsis (if (char-displayable-p ?…) "[…]" "[...]"))
(map (make-sparse-keymap)))