REPL buffer scrolls uncontrollably

Đang mở
#121 6 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
clojure, emacs-lisp
Lĩnh vực
tooling

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện việc cuộn khi di chuyển qua các ký hiệu Clojure trong REPL, sau đó đọc trong comint.el của Emacs phần xung quanh comint-postoutput-scroll-to-bottom và mục comint-output-filter-functions được đề cập trong issue. Hoàn tất có nghĩa là REPL không còn cuộn ngoài ý muốn khi arglists xuất hiện, mà không làm mất việc xử lý đầu ra thông thường.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

This is quite annoying in my opinion, every time the point is on a symbol (say def in lumo) that does not have arglists and then one that has arglists, you see the REPL buffer scrolling up or down.

I dug into it and it seems that this var in comint sets comint-postoutput-scroll-to-bottom which is responsible for the scrolling.

I could not find a way to customize the behavior, except from removing it from the var completely with:

(seq-filter (lambda (sym) (not (eq 'comint-postoutput-scroll-to-bottom sym))) comint-output-filter-functions)

I know it is extreme but I would like to set this as default. An alternative would be to pass in a custom lambda in comint-output-filter-functions that checks what is the REPL return and decides whether to scroll or not - it seems quite some work for no gain.

Thoughts?

Ngôn ngữ chính
Emacs Lisp
Star
260
Fork
43
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của clojure-emacs/inf-clojure

Tất cả issue của clojure-emacs/inf-clojure

Issue tương tự

Thêm issue về DevTools

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.