summaryrefslogtreecommitdiff
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorStephen Leake <stephen_leake@stephe-leake.org>2019-04-25 15:49:38 -0700
committerStephen Leake <stephen_leake@stephe-leake.org>2019-04-25 15:49:38 -0700
commit1486eadf7c9469f873fcd04beafd03f21564d580 (patch)
tree842c749cec57b6aa80028cd31b1d50cea1791cbc /lisp/progmodes
parent83b0fc30d4bd6799e9593685d1767dfe2b3648a7 (diff)
downloademacs-1486eadf7c9469f873fcd04beafd03f21564d580.tar.gz
Fix Bug#33618; define search path variables for grep, byte-compile
* etc/NEWS: Mention new variables. * lisp/emacs-lisp/bytecomp.el (emacs-lisp-compilation-search-path): New. * lisp/progmodes/grep.el (grep-search-path): New.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/grep.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index 8c7a58fd8bd..85f9078d46d 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -441,6 +441,15 @@ abbreviated part can also be toggled with
: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)))