[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/arduino-mode b08dcbb 037/107: Warn if project loading/crea
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/arduino-mode b08dcbb 037/107: Warn if project loading/creation files |
Date: |
Sun, 29 Aug 2021 10:58:12 -0400 (EDT) |
branch: elpa/arduino-mode
commit b08dcbb2ba749464aab1290c7a7ab7a8f1dd5192
Author: Bernd Wachter <bwachter-spam@lart.info>
Commit: Bernd Wachter <bwachter-spam@lart.info>
Warn if project loading/creation files
---
ede-arduino.el | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/ede-arduino.el b/ede-arduino.el
index 6df07d0..da775cf 100644
--- a/ede-arduino.el
+++ b/ede-arduino.el
@@ -112,7 +112,6 @@ to check."
Return nil if there isn't one.
Argument DIR is the directory it is created for.
ROOTPROJ is nil, sinc there is only one project for a directory tree."
- (ede-arduino-root "~/Arduino/Fade/")
(let* ((root (ede-arduino-root dir))
(proj (and root (ede-directory-get-open-project root)))
(prefs (ede-arduino-sync)))
@@ -121,21 +120,22 @@ ROOTPROJ is nil, sinc there is only one project for a
directory tree."
(message "Opening existing project")
proj)
- (when root
- ;; Create a new project here.
- (message "Creating new project")
- (let* ((name (file-name-nondirectory (directory-file-name root)))
- (pde (expand-file-name (concat name ".pde") root)))
- (when (not (file-exists-p pde))
- (setq pde (expand-file-name (concat name ".ino") root)))
- (setq proj (ede-arduino-project
- name
- :name name
- :directory (file-name-as-directory dir)
- :file pde
- :targets nil)))
- (ede-add-project-to-global-list proj)
- ))))
+ ;; Create a new project here.
+ (if root
+ (progn
+ (message "Creating new project")
+ (let* ((name (file-name-nondirectory (directory-file-name root)))
+ (pde (expand-file-name (concat name ".pde") root)))
+ (when (not (file-exists-p pde))
+ (setq pde (expand-file-name (concat name ".ino") root)))
+ (setq proj (ede-arduino-project
+ name
+ :name name
+ :directory (file-name-as-directory dir)
+ :file pde
+ :targets nil)))
+ (ede-add-project-to-global-list proj))
+ (message "Project loading/creation failed")))))
;;;###autoload
(add-to-list 'ede-project-class-files
- [nongnu] elpa/arduino-mode 1b7bae6 026/107: A command to run the arduino ide on current file, (continued)
- [nongnu] elpa/arduino-mode 1b7bae6 026/107: A command to run the arduino ide on current file, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode d7bb42a 029/107: Fix undefined cl-macrorepxand-all under Emacs 24.4, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 3e2bad4 031/107: Setup Cask, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode eb1d260 040/107: set tab-width and indent width to 2, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 0f67645 047/107: Prepare for MELPA, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode b92f309 048/107: improve commands docstring to be more intuitive, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 18fce1d 052/107: add README, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 0892337 053/107: minor fix, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode e8fa204 054/107: add file meta-data headers, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 9b45a04 022/107: Merge pull request #4 from milkypostman/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode b08dcbb 037/107: Warn if project loading/creation files,
ELPA Syncer <=
- [nongnu] elpa/arduino-mode c5af9a6 055/107: add keybinding for open source file with Arduino IDE, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode edf56c2 049/107: add two more commands to install boards and libraries, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 8881f12 062/107: fix void variable ede-arduino-preferences-file, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode fe17c8d 070/107: minor updates, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 8159916 074/107: [feature] display spinner for Arduino processes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 47a0689 075/107: bump version, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode d70f0cc 077/107: Merge tag 'v1.2' into develop, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 41789bc 006/107: Add convenience function arduino-upload to flash a chip., ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode a409aa0 008/107: Automatically create a skeleton Makefile., ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 2a71e75 012/107: Use correct version of compiled code for GNU Emacs., ELPA Syncer, 2021/08/29