REPL buffer scrolls uncontrollably

オープン
#121 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
clojure, emacs-lisp
領域
tooling

調査の方向性

まず、REPL で Clojure のシンボル上を移動しているときのスクロールを再現し、次に Emacs の comint.el で comint-postoutput-scroll-to-bottom 周辺と、issue で言及されている comint-output-filter-functions のエントリを読みます。arglists が表示されたときに REPL が予期せずスクロールしなくなり、通常の出力処理も失われなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

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?

主要言語
Emacs Lisp
スター
260
フォーク
43
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

clojure-emacs/inf-clojure のほかの issue

clojure-emacs/inf-clojure の issue をすべて見る

似ている issue

DevTools の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。