aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/cedet/ede/cpp-root.el
diff options
context:
space:
mode:
authorPaul Eggert2020-01-05 11:48:59 -0800
committerPaul Eggert2020-01-05 11:50:31 -0800
commit088bfcc2d80eed44864147f3491eff69e4eb5cd8 (patch)
treea57599fb3064d09c38eec4ddd9cded8a3df72e6c /lisp/cedet/ede/cpp-root.el
parent448df8fec7a7fb3fe558749591e657e8a84cb46b (diff)
downloademacs-088bfcc2d80eed44864147f3491eff69e4eb5cd8.tar.gz
emacs-088bfcc2d80eed44864147f3491eff69e4eb5cd8.zip
Move “Fix some broken conditional forms” to master
Revert 2020-01-04T19:17:12Z!eggert@cs.ucla.edu which recently I installed into the emacs-27 branch by mistake. These patches are now on master instead (via merging). Do not merge to master.
Diffstat (limited to 'lisp/cedet/ede/cpp-root.el')
-rw-r--r--lisp/cedet/ede/cpp-root.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/lisp/cedet/ede/cpp-root.el b/lisp/cedet/ede/cpp-root.el
index f0dbccb7fc1..ee8aa5db1b7 100644
--- a/lisp/cedet/ede/cpp-root.el
+++ b/lisp/cedet/ede/cpp-root.el
@@ -478,6 +478,21 @@ Argument COMMAND is the command to use for compiling the target."
478 "Don't rescan this project from the sources." 478 "Don't rescan this project from the sources."
479 (message "cpp-root has nothing to rescan.")) 479 (message "cpp-root has nothing to rescan."))
480 480
481;;; Quick Hack
482(defun ede-create-lots-of-projects-under-dir (dir projfile &rest attributes)
483 "Create a bunch of projects under directory DIR.
484PROJFILE is a file name sans directory that indicates a subdirectory
485is a project directory.
486Generic ATTRIBUTES, such as :include-path can be added.
487Note: This needs some work."
488 (let ((files (directory-files dir t)))
489 (dolist (F files)
490 (if (file-exists-p (expand-file-name projfile F))
491 `(ede-cpp-root-project (file-name-nondirectory F)
492 :name (file-name-nondirectory F)
493 :file (expand-file-name projfile F)
494 attributes)))))
495
481(provide 'ede/cpp-root) 496(provide 'ede/cpp-root)
482 497
483;; Local variables: 498;; Local variables: