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

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

[nongnu] elpa/eat 8fe46079df 1/2: Don't let automatic scrolling mess up


From: ELPA Syncer
Subject: [nongnu] elpa/eat 8fe46079df 1/2: Don't let automatic scrolling mess up the display
Date: Fri, 15 Dec 2023 12:59:40 -0500 (EST)

branch: elpa/eat
commit 8fe46079dfd8dbdea7b0834afe807763b9afafbf
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>

    Don't let automatic scrolling mess up the display
    
    * eat.el (eat-mode, eat--eshell-local-mode): Set both
    'scroll-margin' and 'hscroll-margin' to zero.
---
 eat.el | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/eat.el b/eat.el
index ac4826e7e8..ce6dbf0765 100644
--- a/eat.el
+++ b/eat.el
@@ -6582,6 +6582,8 @@ END if it's safe to do so."
           glyphless-char-display
           cursor-type
           track-mouse
+          scroll-margin
+          hscroll-margin
           eat-terminal
           eat--synchronize-scroll-function
           eat--mouse-grabbing-type
@@ -6604,6 +6606,8 @@ END if it's safe to do so."
           eat--shell-prompt-annotation-correction-timer))
   ;; This is intended; input methods don't work on read-only buffers.
   (setq buffer-read-only nil)
+  (setq scroll-margin 0)
+  (setq hscroll-margin 0)
   (setq eat--synchronize-scroll-function #'eat--synchronize-scroll)
   (setq filter-buffer-substring-function
         #'eat--filter-buffer-substring)
@@ -7553,6 +7557,8 @@ symbol `buffer', in which case the point of current 
buffer is set."
   :interactive nil
   (let ((locals '(cursor-type
                   glyphless-char-display
+                  scroll-margin
+                  hscroll-margin
                   track-mouse
                   filter-buffer-substring-function
                   eat-terminal
@@ -7565,6 +7571,8 @@ symbol `buffer', in which case the point of current 
buffer is set."
     (cond
      (eat--eshell-local-mode
       (mapc #'make-local-variable locals)
+      (setq scroll-margin 0)
+      (setq hscroll-margin 0)
       (setq eat--synchronize-scroll-function
             #'eat--eshell-synchronize-scroll)
       (setq filter-buffer-substring-function



reply via email to

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