[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/arduino-mode 7b94f5b 058/107: creating process with make-p
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/arduino-mode 7b94f5b 058/107: creating process with make-process to use process sentinel to get notification. |
Date: |
Sun, 29 Aug 2021 10:58:16 -0400 (EDT) |
branch: elpa/arduino-mode
commit 7b94f5bd99339bc209d0a425f396e433240b821f
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>
creating process with make-process to use process sentinel to get
notification.
---
arduino-mode.el | 32 +++++++++++++++++++++++++-------
1 file changed, 25 insertions(+), 7 deletions(-)
diff --git a/arduino-mode.el b/arduino-mode.el
index f881ba0..0c3d242 100644
--- a/arduino-mode.el
+++ b/arduino-mode.el
@@ -4,7 +4,7 @@
;; Authors: Christopher Grim <christopher.grim@gmail.com>
;; Maintainer: stardiviner <numbchild@gmail.com>
;; Keywords: languages, arduino
-;; Package-Requires: ((emacs "24.4") (cl-lib "0.5"))
+;; Package-Requires: ((emacs "25") (cl-lib "0.5"))
;; Package-Version: 1.1
;; homepage: https://github.com/stardiviner/arduino-mode
@@ -182,20 +182,38 @@ Each list item should be a regexp matching a single
identifier."
(defun arduino-upload ()
"Build and upload the sketch to an Arduino board."
(interactive)
- (start-file-process
- "arduino-upload" "*arduino-upload*" arduino-executable "--upload"
(buffer-file-name)))
+ (make-process
+ :command (list "arduino" "--upload" (buffer-file-name))
+ :name "arduino-upload"
+ :buffer "*arduino-upload*"
+ :sentinel (lambda (proc event)
+ (when (string= event "finished\n")
+ (message "Arduino upload succeed.")))
+ ))
(defun arduino-verify ()
"Verify the sketch by building it."
(interactive)
- (start-file-process
- "arduino-verify" "*arduino-verify*" arduino-executable "--verify"
(buffer-file-name)))
+ (make-process
+ :command (list "arduino" "--verify" (buffer-file-name))
+ :name "arduino-verify"
+ :buffer "*arduino-verify*"
+ :sentinel (lambda (proc event)
+ (when (string= event "finished\n")
+ (message "Arduino verify build succeed.")))
+ ))
(defun arduino-open-with-arduino ()
"Open the sketch with the Arduino IDE."
(interactive)
- (start-file-process
- "arduino-open" "*arduino-open*" arduino-executable (buffer-file-name)))
+ (make-process
+ :command (list "arduino" (buffer-file-name))
+ :name "arduino-open"
+ :buffer "*arduino-open*"
+ :sentinel (lambda (proc event)
+ (when (string= event "finished\n")
+ (message "Opened with Arduino succeed.")))
+ ))
(defun arduino-install-boards (board)
"Install `BOARD' support for Arduino."
- [nongnu] elpa/arduino-mode 1424952 039/107: add new keywords, (continued)
- [nongnu] elpa/arduino-mode 1424952 039/107: add new keywords, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 411815d 041/107: change arduino-upload keybinding to [C-c C-c], ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 20e284a 042/107: format code, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 59806cc 043/107: add .ino file extension to auto-mode-alist, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode a95ebba 044/107: remove XEmacs support part, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 3d8aa47 045/107: improve and add some commands for command-line arduino., ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 3fc0851 046/107: use define-derived-mode for arduino-mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 0150970 050/107: support org-mode babel Arduino src block, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 139b154 051/107: add support for --board option with header argument :boarder, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 3f0b3a4 057/107: rename command arduino-build -> arduino-verify, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 7b94f5b 058/107: creating process with make-process to use process sentinel to get notification.,
ELPA Syncer <=
- [nongnu] elpa/arduino-mode 714e0f0 059/107: add missing menu entries, ELPA Syncer, 2021/08/29
- [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