[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/arduino-mode f0053f5 061/107: raise process buffer if proc
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/arduino-mode f0053f5 061/107: raise process buffer if process failed |
Date: |
Sun, 29 Aug 2021 10:58:17 -0400 (EDT) |
branch: elpa/arduino-mode
commit f0053f56aa275f9d8b3ea10e56c8cd438fcc47b2
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>
raise process buffer if process failed
---
arduino-mode.el | 32 ++++++++++++++++++++------------
1 file changed, 20 insertions(+), 12 deletions(-)
diff --git a/arduino-mode.el b/arduino-mode.el
index 2fe2c09..fae48c1 100644
--- a/arduino-mode.el
+++ b/arduino-mode.el
@@ -196,10 +196,12 @@ Each list item should be a regexp matching a single
identifier."
:name proc-name
:buffer proc-buffer
:sentinel (lambda (proc event)
- (when (string= event "finished\n")
- (with-current-buffer arduino-upload-process-buf
- (setq mode-line-process nil))
- (message "Arduino upload succeed."))))))
+ (if (string= event "finished\n")
+ (progn
+ (with-current-buffer
arduino-upload-process-buf
+ (setq mode-line-process nil))
+ (message "Arduino upload succeed."))
+ (display-buffer "*arduino-upload*"))))))
(setq mode-line-process proc-name)))
(defvar arduino-verify-process-buf nil)
@@ -215,10 +217,12 @@ Each list item should be a regexp matching a single
identifier."
:name proc-name
:buffer proc-buffer
:sentinel (lambda (proc event)
- (when (string= event "finished\n")
- (with-current-buffer arduino-verify-process-buf
- (setq mode-line-process nil))
- (message "Arduino verify build succeed."))))))
+ (if (string= event "finished\n")
+ (progn
+ (with-current-buffer
arduino-verify-process-buf
+ (setq mode-line-process nil))
+ (message "Arduino verify build succeed."))
+ (display-buffer "*arduino-verify*"))))))
(setq mode-line-process proc-name)))
(defvar arduino-open-process-buf nil)
@@ -234,12 +238,16 @@ Each list item should be a regexp matching a single
identifier."
:name proc-name
:buffer proc-buffer
:sentinel (lambda (proc event)
- (when (string= event "finished\n")
- (with-current-buffer arduino-open-process-buf
- (setq mode-line-process nil))
- (message "Opened with Arduino succeed."))))))
+ (if (string= event "finished\n")
+ (progn
+ (with-current-buffer arduino-open-process-buf
+ (setq mode-line-process nil))
+ (message "Opened with Arduino succeed."))
+ (display-buffer "*arduino-open*"))))))
(setq mode-line-process proc-name)))
+;;; NOTE: Because command-line arduino does not support search and list out
+;;; boards and libraries. So I will not write a sentinel for installing
process.
(defun arduino-install-boards (board)
"Install `BOARD' support for Arduino."
(interactive (list (completing-read "Arduino install board: "
- [nongnu] elpa/arduino-mode 6b549c8 064/107: add a command to add include-path file for irony, (continued)
- [nongnu] elpa/arduino-mode 6b549c8 064/107: add a command to add include-path file for irony, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 8235a4a 065/107: fix mode-line-process not disappear after process failed, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 431c3ba 069/107: Merge branch 'develop', ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 9b1bdb8 060/107: support show process info in mode-line, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 1f154e4 063/107: add a command to create new Arduino sketch, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 8e82926 072/107: Use arduino-executable in commands instead, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode a4dbdfa 085/107: update arduino-mode-syntax-table to inherit from c-mode directly, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 9234c9d 087/107: Replace defmethod -> cl-defmethod, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 01cb165 096/107: plan to support "arduino-cli" command-line tools, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 1c9250d 097/107: Fix recursive ‘require’ for feature ‘flycheck-arduino’, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode f0053f5 061/107: raise process buffer if process failed,
ELPA Syncer <=
- [nongnu] elpa/arduino-mode af1f18a 067/107: add flycheck support, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 0e95bdf 084/107: auto setup flycheck-arduino on arduino-mode-hook, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode eac5031 090/107: fix function `flycheck-arduino-setup' unknown when compilation, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 49dd8be 095/107: fix flycheck warnings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 7f72bc7 100/107: put flycheck-arduino-setup in arduino-mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 10af997 102/107: fix not defined flycheck-arduino-setup, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode cf57002 105/107: Add ob-arduino.el which is moved out of org-mode contrib/, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode a8fc196 106/107: ob-arduino set tangle filename extension, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode b1bd565 098/107: adjust code line number to fix byte compile invalid warnings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 9547187 066/107: ob-arduino is in Org-mode contrib/ now., ELPA Syncer, 2021/08/29