From b8b2e7784b0d409e0ed6a0bbad9ff5e56b0a86cc Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 20 Jun 2022 12:59:30 +0530 Subject: Always append to paper tape buffer. * thogai.el (thogai-gemini-protocol-filter): ALways append to paper tape buffer. --- thogai.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/thogai.el b/thogai.el index efcc506..fbbc2f5 100644 --- a/thogai.el +++ b/thogai.el @@ -645,6 +645,9 @@ BYTES is a list of 6 bytes in the Gemini protocol." (let ((stroke (thogai-gemini-decode-stroke (reverse bytes)))) ;; Log to paper tape. (with-current-buffer (process-buffer process) + ;; Explicitly go to end of buffer, just in case + ;; someone messed up the point. + (goto-char (point-max)) (insert stroke) (insert "\n")) ;; Insert into stroke ring, and process translation. -- cgit v1.2.3