[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master f33f2cd: New command `el-search-load-path'
From: |
Michael Heerdegen |
Subject: |
[elpa] master f33f2cd: New command `el-search-load-path' |
Date: |
Mon, 31 Oct 2016 13:18:02 +0000 (UTC) |
branch: master
commit f33f2cd370d4074e17dd9f2a56c32e837ca2b8c3
Author: Michael Heerdegen <address@hidden>
Commit: Michael Heerdegen <address@hidden>
New command `el-search-load-path'
---
packages/el-search/el-search.el | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/packages/el-search/el-search.el b/packages/el-search/el-search.el
index 82d9419..49e6411 100644
--- a/packages/el-search/el-search.el
+++ b/packages/el-search/el-search.el
@@ -1395,6 +1395,18 @@ This command recursively searches all elisp files under
(expand-file-name "lisp/" source-directory)
t)))
+;;;###autoload
+(defun el-search-load-path (pattern)
+ "Search PATTERN in the elisp files in all directories of `load-path'.
+nil elements in `load-path' (standing for `default-directory')
+are ignored."
+ (interactive (list (el-search--read-pattern-for-interactive)))
+ (el-search-setup-search
+ pattern
+ (stream-concatenate
+ (seq-map (lambda (path) (el-search-stream-of-directory-files path nil))
+ (stream (delq nil load-path))))))
+
(declare-function dired-get-marked-files "dired")
;;;###autoload
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] master f33f2cd: New command `el-search-load-path',
Michael Heerdegen <=