Skip to content

Commit c585a93

Browse files
committed
tweak(adb): print the command set to adb
1 parent 61081fe commit c585a93

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/extras/me-adb.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
;;; Code:
1212

1313
(defvar +adb-buffer-name "*adb*")
14+
(defvar +adb-process-name "adb-command")
1415
(defvar +adb-no-quote nil)
1516
(defvar +adb-push-dest-history nil)
1617
(defvar +adb-push-src-dest-cache nil)
@@ -27,7 +28,9 @@ By default, qutote the arguments unless `+adb-no-quote' is non-nil."
2728
(out-buf (get-buffer-create +adb-buffer-name))
2829
(cmd (string-join `("adb" ,@(mapcar (if +adb-no-quote #'identity #'shell-quote-argument) (seq-filter #'identity args))) " ")))
2930
(let ((shell-command-with-editor-mode nil))
30-
(async-shell-command cmd out-buf))
31+
(with-current-buffer out-buf
32+
(insert (propertize (format "\n%s\n- Sending command:\n- %S\n\n" (make-string 20 ?-) cmd) 'face 'error)))
33+
(start-process-shell-command +adb-process-name out-buf cmd))
3134
(pop-to-buffer out-buf)))
3235

3336
;;;###autoload

0 commit comments

Comments
 (0)