[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/subed 3baf5c1 296/389: subed-mpv--client-filter: Store pro
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/subed 3baf5c1 296/389: subed-mpv--client-filter: Store process mark in variable |
Date: |
Fri, 3 Dec 2021 11:00:45 -0500 (EST) |
branch: elpa/subed
commit 3baf5c138b9c307ad3948fb48a4fdfefeb36d5a8
Author: Random User <rndusr@posteo.de>
Commit: Random User <rndusr@posteo.de>
subed-mpv--client-filter: Store process mark in variable
---
subed/subed-mpv.el | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/subed/subed-mpv.el b/subed/subed-mpv.el
index e66d3c6..096a7cb 100644
--- a/subed/subed-mpv.el
+++ b/subed/subed-mpv.el
@@ -220,13 +220,15 @@ string."
(let ((orig-buffer (current-buffer)))
(with-current-buffer (process-buffer proc)
;; Insert new response where previous response ended
- (let ((moving (= (point) (process-mark proc))))
+ (let* ((proc-mark (process-mark proc))
+ (moving (= (point) proc-mark)))
(save-excursion
- (goto-char (process-mark proc))
+ (goto-char proc-mark)
(insert response)
- (set-marker (process-mark proc) (point)))
- (if moving (goto-char (process-mark proc))))
- ;; Process and remove all complete lines of JSON
+ (set-marker proc-mark (point)))
+ (if moving (goto-char proc-mark)))
+ ;; Process and remove all complete lines of JSON (lines are
complete if
+ ;; they end with \n)
(let ((p0 (point-min)))
(while (progn (goto-char p0)
(end-of-line)
- [nongnu] elpa/subed c76ba50 387/389: Prompt for playback speed factor, (continued)
- [nongnu] elpa/subed c76ba50 387/389: Prompt for playback speed factor, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 9d0aa0f 388/389: Make make-subtitle a generic function, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed d0dfa1a 389/389: Preliminary support for .ass files (Advanced SubStation Alpha), ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed f30780e 249/389: Default keybinding: C-M-i -> subed-insert-subtitle-adjacent, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed f8793fb 330/389: Move motion hooks from subed-config.el to subed-common.el, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 31556c6 372/389: Add functions for bold and italic and change keybindings, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed ba22919 289/389: Add subed-mpv-jump-to-current-subtitle, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 14ebbbb 293/389: subed-srt--subtitle-id-at-msecs: Return nil if no matching subtitle, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 2e18727 294/389: Pause video initially, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 3d5902b 295/389: Reword comment, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 3baf5c1 296/389: subed-mpv--client-filter: Store process mark in variable,
ELPA Syncer <=
- [nongnu] elpa/subed 08d5033 301/389: Remove unused variable subed-mode--enabled-p, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 070384b 302/389: subed--set-subtitle-loop: Don't croak on empty file, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 89df304 304/389: subed-srt--sanitize: Don't insert newline in empty buffer, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed b0a4ff0 307/389: Fix parentheses, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 8007c12 308/389: Make debugging window a bit smaller, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed ec38a0b 317/389: Add function: subed-mpv-add-subtitles, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 7764909 324/389: Add some (require ...)s to prevent compiler warnings, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed a084f5d 326/389: Improve comment, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed cd3af86 328/389: Silence checkdoc, ELPA Syncer, 2021/12/03
- [nongnu] elpa/subed 29d8b84 337/389: Initial implementation of subed-vtt.el, ELPA Syncer, 2021/12/03