[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/arduino-mode 8159916 074/107: [feature] display spinner fo
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/arduino-mode 8159916 074/107: [feature] display spinner for Arduino processes |
Date: |
Sun, 29 Aug 2021 10:58:19 -0400 (EDT) |
branch: elpa/arduino-mode
commit 8159916a5ed08a3fbada10da2bd5cc6a3722cba1
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>
[feature] display spinner for Arduino processes
---
arduino-mode.el | 34 +++++++++++++++++++++++++++-------
1 file changed, 27 insertions(+), 7 deletions(-)
diff --git a/arduino-mode.el b/arduino-mode.el
index 59c7bbc..fa1d16f 100644
--- a/arduino-mode.el
+++ b/arduino-mode.el
@@ -32,6 +32,7 @@
;;; Code:
(require 'cc-mode)
+(require 'spinner)
(eval-when-compile
(require 'cl-lib)
@@ -139,6 +140,15 @@ Each list item should be a regexp matching a single
identifier."
:group 'arduino
:type 'string)
+(defcustom arduino-spinner-type 'progress-bar
+ "The spinner type for arduino processes.
+
+Value is a symbol. The possible values are the symbols in the
+`spinner-types' variable."
+ :type 'symbol
+ :safe #'symbolp
+ :group 'arduino)
+
(defconst arduino-font-lock-keywords-1 (c-lang-const c-matchers-1 arduino)
"Minimal highlighting for Arduino mode.")
@@ -211,8 +221,12 @@ Each list item should be a regexp matching a single
identifier."
(with-current-buffer
arduino-upload-process-buf
(setq mode-line-process nil))
(message "Arduino upload succeed."))
- (setq mode-line-process nil)
- (display-buffer "*arduino-upload*"))))))
+ (with-current-buffer arduino-upload-process-buf
+ (display-buffer "*arduino-upload*")))
+ (setq-local mode-line-process nil)
+ (with-current-buffer arduino-upload-process-buf
+ (when spinner-current (spinner-stop)))))))
+ (spinner-start arduino-spinner-type)
(setq mode-line-process proc-name)))
(defvar arduino-verify-process-buf nil)
@@ -233,8 +247,11 @@ Each list item should be a regexp matching a single
identifier."
(with-current-buffer
arduino-verify-process-buf
(setq mode-line-process nil))
(message "Arduino verify build succeed."))
- (setq mode-line-process nil)
- (display-buffer "*arduino-verify*"))))))
+ (display-buffer "*arduino-verify*"))
+ (setq-local mode-line-process nil)
+ (with-current-buffer arduino-verify-process-buf
+ (when spinner-current (spinner-stop)))))))
+ (spinner-start arduino-spinner-type)
(setq mode-line-process proc-name)))
(defvar arduino-open-process-buf nil)
@@ -254,9 +271,12 @@ Each list item should be a regexp matching a single
identifier."
(progn
(with-current-buffer arduino-open-process-buf
(setq mode-line-process nil))
- (message "Opened with Arduino succeed."))
- (setq mode-line-process nil)
- (display-buffer "*arduino-open*"))))))
+ (message "Opened with Arduino succeed.")))
+ (setq-local mode-line-process nil)
+ (with-current-buffer arduino-open-process-buf
+ (when spinner-current (spinner-stop)))
+ ))))
+ (spinner-start arduino-spinner-type)
(setq mode-line-process proc-name)))
;;; NOTE: Because command-line arduino does not support search and list out
- [nongnu] elpa/arduino-mode b92f309 048/107: improve commands docstring to be more intuitive, (continued)
- [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, 2021/08/29
- [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 <=
- [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
- [nongnu] elpa/arduino-mode 3cc39d9 013/107: Add bindings for arduino-upload., ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 5d10eca 002/107: add imenu support, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 0f73f82 004/107: highlight builtins for serial communication, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode dbb523c 005/107: Include additional keywords found in Arduino version 0018., ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 16e1d57 010/107: Add init file., ELPA Syncer, 2021/08/29