Thanks for sharing, I start to seriously thinking this shift.
1 个赞
避免浏览器中后台打开标签的时候闪烁页面。
@cireu 不行吧,我去 GitHub - m-parashar/emax64: 64-bit Emacs for Windows with ImageMagick 7 下了一个含有imagemagick的emacs,也有安装了imagemagick环境,但打不开webp,然后imagemagick-types也找不到webp支持
不错不错, 现在识别度更好了。
今天pdf浏览器是不是不小心引入bug了,鼠标一动就 “EAF 已放弃”
在 eaf buffer 中有什么错误输出吗?
EAF process starting...
Session is not restored, as no data present in session file.
Session is not restored, as no data present in session file.
Session restored: d40a-4a92-b9ed-d165-a23c-acca-c1e9 app.pdf-viewer.buffer /home/feng/.emacs.d/eaf/session.json
Traceback (most recent call last):
File "/home/feng/projects/emacs-packages/emacs-application-framework/app/pdf-viewer/buffer.py", line 958, in eventFilter
self.hover_annot()
File "/home/feng/projects/emacs-packages/emacs-application-framework/app/pdf-viewer/buffer.py", line 854, in hover_annot
annots = page.annots()
AttributeError: 'Page' object has no attribute 'annots'
EAF process starting...
Session restored: ff00-281f-5ad6-cbd4-dfad-6f01-5c35 app.pdf-viewer.buffer /home/feng/.emacs.d/eaf/session.json
Traceback (most recent call last):
File "/home/feng/projects/emacs-packages/emacs-application-framework/app/pdf-viewer/buffer.py", line 958, in eventFilter
self.hover_annot()
File "/home/feng/projects/emacs-packages/emacs-application-framework/app/pdf-viewer/buffer.py", line 854, in hover_annot
annots = page.annots()
AttributeError: 'Page' object has no attribute 'annots'
EAF process starting...
Session restored: 68ec-efe1-afea-e95b-3296-2c79-a102 app.pdf-viewer.buffer /home/feng/.emacs.d/eaf/session.json
Traceback (most recent call last):
File "/home/feng/projects/emacs-packages/emacs-application-framework/app/pdf-viewer/buffer.py", line 958, in eventFilter
self.hover_annot()
File "/home/feng/projects/emacs-packages/emacs-application-framework/app/pdf-viewer/buffer.py", line 854, in hover_annot
annots = page.annots()
AttributeError: 'Page' object has no attribute 'annots'
EAF process starting...
Session restored: 65b7-db15-758b-c6d3-feb4-c5e9-4f97 app.pdf-viewer.buffer /home/feng/.emacs.d/eaf/session.json
Traceback (most recent call last):
File "/home/feng/projects/emacs-packages/emacs-application-framework/app/pdf-viewer/buffer.py", line 958, in eventFilter
self.hover_annot()
File "/home/feng/projects/emacs-packages/emacs-application-framework/app/pdf-viewer/buffer.py", line 854, in hover_annot
annots = page.annots()
AttributeError: 'Page' object has no attribute 'annots'
感谢! 我怀疑是 pymupdf
的版本问题, Page.annots()
是在 1.16.4
引入的, 你可以看一下你的 pymupdf
版本
import fitz
fitz.version
我用1.15的mupdf,因为debian还没有1.16
pymupdf 应该是1.14 (‘1.14.21’, ‘1.14.0’, ‘20190916030349’)
merge了
EAF process starting...
Session restored: 4cb1-3951-77a3-8211-f413-5c7b-5b14 app.pdf-viewer.buffer /home/feng/.emacs.d/eaf/session.json
Traceback (most recent call last):
File "/home/feng/projects/emacs-packages/emacs-application-framework/app/pdf-viewer/buffer.py", line 966, in eventFilter
self.hover_annot()
File "/home/feng/projects/emacs-packages/emacs-application-framework/app/pdf-viewer/buffer.py", line 864, in hover_annot
if annot.rect.contains(fitz.Point(ex, ey)):
AttributeError: 'Rect' object has no attribute 'contains'
你在 pdf-viewer buffer.py
864 行 改成 if fitz.Point(ex, ey) in annot.rect:
看看。我的版本是 1.16.10 的,测试不了
我测试了一下,好像可以
不过我又发现选择操作有点小问题, 比如我在当前行的行首双击了一下,开始选择, 选择区会跳过1-2行操作
可能是 PDF 文档的问题吗? 我这边重现不了