summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Lassieur <clement@lassieur.org>2018-06-20 13:55:42 +0200
committerClément Lassieur <clement@lassieur.org>2018-06-20 13:55:42 +0200
commitb38f4505e6b594f19bd771d3ab78f7051961afdb (patch)
tree0b0bdc3f47662000be58961a1f1aed5139a00386
parent46559c95777d26f89eef4ca1dd7a5ba3fba5bd3f (diff)
downloadparrot-b38f4505e6b594f19bd771d3ab78f7051961afdb.tar.gz
alchemy: use product specific tags for out
-rw-r--r--parrot-alchemy.el16
1 files changed, 9 insertions, 7 deletions
diff --git a/parrot-alchemy.el b/parrot-alchemy.el
index 4a93ba6..8a34a79 100644
--- a/parrot-alchemy.el
+++ b/parrot-alchemy.el
@@ -137,15 +137,17 @@
;; - to make the tag generation faster
;; - to avoid wrong search results (because linux code is unrelated to
;; userland code)
-(defun alchemy-gtags (name path)
+(defun alchemy-gtags (name product path)
(interactive)
(require 'ggtags)
(require 'ag)
- (let* ((extra-paths '("out/.*/build/libARCommands/gen"
- "out/.*/build/libARMavlink/generated"
- "out/.*/build/libcivetweb"
- "out/.*/build/libconfig"
- "out/.*/build/json"))
+ (let* ((extra-paths
+ (mapcar (lambda (str) (format str product))
+ '("out/%s/build/libARCommands/gen"
+ "out/%s/build/libARMavlink/generated"
+ "out/%s/build/libcivetweb"
+ "out/%s/build/libconfig"
+ "out/%s/build/json")))
(exception-paths '("out"
"packages/linux_p6"
"packages/linux_p7"
@@ -241,7 +243,7 @@
(?m "menuconfig" (lambda () (interactive) (alchemy-menuconfig ,name ,product ,path)))
(?l "linux menuconfig" (lambda () (interactive) (alchemy-linux-menuconfig ,name ,product ,path)))
(?i "image" (lambda () (interactive) (alchemy-image ,name ,product ,path)))
- (?g "gtags" (lambda () (interactive) (alchemy-gtags ,name ,path)))
+ (?g "gtags" (lambda () (interactive) (alchemy-gtags ,name ,product ,path)))
(?G "linux gtags" (lambda () (interactive) (alchemy-linux-gtags ,name ,path)))
(?c "crashdump to links" (lambda () (interactive) (alchemy-crashdump-to-links ,name ,product ,path)))
(?s "sync" (lambda () (interactive) (alchemy-sync ,name ,path)))