aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/cedet/ede
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
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')
-rw-r--r--lisp/cedet/ede/cpp-root.el15
-rw-r--r--lisp/cedet/ede/pconf.el5
2 files changed, 17 insertions, 3 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:
diff --git a/lisp/cedet/ede/pconf.el b/lisp/cedet/ede/pconf.el
index b85b397af2d..63fb62b5a57 100644
--- a/lisp/cedet/ede/pconf.el
+++ b/lisp/cedet/ede/pconf.el
@@ -56,9 +56,8 @@ don't do it. A value of nil means to just do it.")
56 (and (eq ede-pconf-create-file-query 'ask) 56 (and (eq ede-pconf-create-file-query 'ask)
57 (not (eq ede-pconf-create-file-query 'never)) 57 (not (eq ede-pconf-create-file-query 'never))
58 (not (y-or-n-p 58 (not (y-or-n-p
59 (format "I had to create the %s file for you. Ok? " 59 (format "I had to create the %s file for you. Ok? " file)))
60 file)))) 60 (error "Quit")))))))
61 (error "Quit"))))))
62 61
63 62
64(cl-defmethod ede-proj-configure-synchronize ((this ede-proj-project)) 63(cl-defmethod ede-proj-configure-synchronize ((this ede-proj-project))