aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-06-20 13:00:58 +0530
committerArun Isaac2022-06-20 13:03:30 +0530
commit3ed3a5a31f4bc05e8666c64ed605329703881343 (patch)
treed8d0308e00fa22bf5a3d5360c3378bece97f549a
parentb8b2e7784b0d409e0ed6a0bbad9ff5e56b0a86cc (diff)
downloadthogai-3ed3a5a31f4bc05e8666c64ed605329703881343.tar.gz
thogai-3ed3a5a31f4bc05e8666c64ed605329703881343.tar.lz
thogai-3ed3a5a31f4bc05e8666c64ed605329703881343.zip
Scroll to end of paper tape buffer after insertion.
* thogai.el (thogai-gemini-protocol-filter): Scroll all relevant windows to the end of paper tape buffer after insertion.
-rw-r--r--thogai.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/thogai.el b/thogai.el
index fbbc2f5..1d32dcd 100644
--- a/thogai.el
+++ b/thogai.el
@@ -649,7 +649,11 @@ BYTES is a list of 6 bytes in the Gemini protocol."
;; someone messed up the point.
(goto-char (point-max))
(insert stroke)
- (insert "\n"))
+ (insert "\n")
+ ;; Scroll to the end of windows showing the paper
+ ;; tape buffer.
+ (dolist (window (get-buffer-window-list (process-buffer process) nil t))
+ (set-window-point window (point-max))))
;; Insert into stroke ring, and process translation.
(ring-insert thogai-stroke-ring stroke)
(thogai-process-stroke thogai-stroke-ring))