emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/coterm 4debb2f924: Depend on compat and fix some issues


From: ELPA Syncer
Subject: [elpa] externals/coterm 4debb2f924: Depend on compat and fix some issues with Emacs 26
Date: Wed, 31 Aug 2022 16:57:31 -0400 (EDT)

branch: externals/coterm
commit 4debb2f9242e40bdace1ac50601a9cf4c3d14ac9
Author: Miha Rihtaršič <miha@kamnitnik.top>
Commit: Miha Rihtaršič <miha@kamnitnik.top>

    Depend on compat and fix some issues with Emacs 26
---
 coterm.el | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/coterm.el b/coterm.el
index 75e97327f7..1575ee1325 100644
--- a/coterm.el
+++ b/coterm.el
@@ -6,7 +6,7 @@
 ;; Author: jakanakaevangeli <jakanakaevangeli@chiru.no>
 ;; Version: 1.5
 ;; Keywords: processes
-;; Package-Requires: ((emacs "26.1"))
+;; Package-Requires: ((emacs "26.1") (compat "28.1.2.0"))
 ;; URL: https://repo.or.cz/emacs-coterm.git
 
 ;; This file is part of GNU Emacs.
@@ -129,8 +129,10 @@
 ;;; Code:
 
 (require 'term)
+(require 'compat)
 (eval-when-compile
-  (require 'cl-lib))
+  (require 'cl-lib)
+  (require 'subr-x))
 
 ;;; Mode functions and configuration
 
@@ -737,8 +739,12 @@ If STR contains newlines, the caller must take care that
   (when-let ((context ansi-color-context-region)
              (marker (cadr context)))
     (set-marker marker (point)))
-  (set-marker (process-mark process) (point))
-  (funcall proc-filt process str)
+  (let ((pmark (process-mark process)))
+    (set-marker pmark (point))
+    (funcall proc-filt process str)
+    ;; Needed for emacs version < 27 with buggy functions in
+    ;; `comint-output-filter-functions' which upredictably move point
+    (goto-char pmark))
   (unless (string-empty-p str)
     (setq coterm--t-col nil)))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]