olivetti-mode 闪烁问题

toggle olivetti-mode 没有效果。在用olivetti-{expand, shrink}的时候会短暂闪烁一下,之后又恢复原状。连带着似乎也影响了split-window的效果。有人碰到过类似问题吗?给作者写邮件,结果他服务器似乎出问题了,没法寄出去 :confused:

GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.17.4) of 2021-01-25。系统 Arch 。

开启的 Minor modes: Enabled minor modes: Abbrev Aggressive-Indent Async-Bytecomp-Package Auto-Composition Auto-Compression Auto-Correct Auto-Encryption Auto-Fill Beacon Column-Number Company Company-Quickhelp Company-Quickhelp-Local Counsel Counsel-Projectile Csv-Field-Index Delete-Selection Dired-Async Diredfl-Global Display-Time Dumb-Jump Editorconfig Eldoc Electric-Indent Eyebrowse File-Name-Shadow Flycheck Flycheck-Posframe Flyspell Font-Lock Global-Auto-Revert Global-Company Global-Eldoc Global-Font-Lock Global-Git-Commit Global-Hl-Todo Global-Hungry-Delete Global-Origami Global-Page-Break-Lines Global-Prettify-Symbols Global-So-Long Global-Undo-Tree Global-Whitespace-Cleanup Hl-Todo Hs Hungry-Delete Ivy Ivy-Rich Keyfreq Keyfreq-Autosave Line-Number Magit-Auto-Revert Minibuffer-Depth-Indicate Minions Mouse-Wheel Olivetti Org-Recent-Headings Org-Roam Org-Roam-Bibtex Org-Roam-Server Org-Super-Agenda Origami Outline Outshine Override-Global Page-Break-Lines Pdf-Occur-Global Prettify-Symbols Projectile Rainbow-Delimiters Recentf Selected Selected-Global Shell-Dirtrack Show-Paren Smartparens Smartparens-Strict Solaire Solaire-Global Straight-Package-Neutering Straight-Use-Package Super-Save Tex-Pdf Tooltip Transient-Mark Undo-Tree Visual-Fill-Column Visual-Line Which-Key Whitespace-Cleanup Whole-Line-Or-Region-Global Whole-Line-Or-Region-Local Winner Wrap-Region Yas Yas-Global

olivetti-flash

我这里 olivetti-mode 是正常的,排查一下是不是其他的配置影响

我使用emacs -Q -l olivetti.el启动也是正常的。发上来主要是想问下高手们意见。曾经试过把绝大部分mode关掉了,不过依然不行。也用edebug-defun看过olivetti.el里面的函数,逐个step debug,不过似乎因为涉及窗口重绘,step时没法复现闪烁这个现象。

我的config在这里:https://github.com/yiufung/dot-emacs

可以试试2分法排出问题,去掉一半的配置,试试有没问题,然后在有问题的部分再二分,逐步缩小范围。这个办法比较笨,但有效。希望对你有帮助!

谢谢建议!找到原因了,是因为这么一句

(add-hook 'visual-line-mode-hook #'visual-fill-column-mode)

看来visual-fill-column-mode和olivetti之间是有些冲突了。再次感谢建议。