从今天开始,Emacs里面可以运行任何你想要的程序 (Linux & Windows & Mac & BSD)

新写了一个补丁: Make all browser-base application support scroll interface to respond… · emacs-eaf/emacs-application-framework@14b91ab · GitHub

所有浏览器为基础的应用都可以响应 emacs 的 scroll-other-window

比如PDF和Org的预览应用, 分屏后, 光标专注在 emacs buffer 编辑, 可以直接用 scroll-other-window 操控预览进行上下滚动, 而不需要来回切换窗口

Shouldn’t we discourage to use sudo pip?

pip perhaps include by python2, i suggest use python3 and pip3

IIUC, the point is sudo, not py2/py3.

Besides, using sudo pip install will result in file conflicts when installing a package using pacman which contains the same files.

1 加载eaf抱错是因为没有在前面启动dbus-launch,已经解决

2 安装PyMuPDF,报错fitz.h找不到,不知道是不是要源代码安装mupdf,直接在debian9下aptitude安装,同样报错

3 pip3里面安装pyqt5,找不到包

You should paste error messages

善用debian的apt-file search foo.h

PyMuPDF报错

user@debian:~$ sudo pip3 install PyMuPDF [sudo] password for user: Collecting PyMuPDF Using cached https://files.pythonhosted.org/packages/55/01/8e24f2da13e85fd187c88f704849ca40135941b9c1b5e054f43 f059f75d5/PyMuPDF-1.13.13.tar.gz
Building wheels for collected packages: PyMuPDF Running setup.py bdist_wheel for PyMuPDF … error Complete output from command /usr/bin/python3 -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-xg5w 1vcn/PyMuPDF/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close() ;exec(compile(code, file, ‘exec’))” bdist_wheel -d /tmp/tmpm0mm9_efpip-wheel- --python-tag cp35:
running bdist_wheel running build running build_py creating build creating build/lib.linux-i686-3.5 creating build/lib.linux-i686-3.5/fitz copying fitz/init.py → build/lib.linux-i686-3.5/fitz copying fitz/fitz.py → build/lib.linux-i686-3.5/fitz copying fitz/utils.py → build/lib.linux-i686-3.5/fitz running build_ext building ‘fitz._fitz’ extension creating build/temp.linux-i686-3.5 creating build/temp.linux-i686-3.5/fitz i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/pyt hon3.5-wQ6Jnc/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY _SOURCE=2 -fPIC -I/usr/include/mupdf -I/usr/local/include/mupdf -I/usr/local/thirdparty/zlib -I/usr/include/pyth on3.5m -c fitz/fitz_wrap.c -o build/temp.linux-i686-3.5/fitz/fitz_wrap.o
fitz/fitz_wrap.c:3066:18: fatal error: fitz.h: No such file or directory #include <fitz.h> ^ compilation terminated. error: command ‘i686-linux-gnu-gcc’ failed with exit status 1


Failed building wheel for PyMuPDF Running setup.py clean for PyMuPDF Failed to build PyMuPDF Installing collected packages: PyMuPDF Running setup.py install for PyMuPDF … error Complete output from command /usr/bin/python3 -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-xg 5w1vcn/PyMuPDF/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close ();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-99hnvkul-record/install-record.txt --single- version-externally-managed --compile:
running install running build running build_py creating build creating build/lib.linux-i686-3.5 creating build/lib.linux-i686-3.5/fitz copying fitz/init.py → build/lib.linux-i686-3.5/fitz copying fitz/fitz.py → build/lib.linux-i686-3.5/fitz copying fitz/utils.py → build/lib.linux-i686-3.5/fitz running build_ext building ‘fitz._fitz’ extension creating build/temp.linux-i686-3.5 creating build/temp.linux-i686-3.5/fitz i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/p ython3.5-wQ6Jnc/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTI FY_SOURCE=2 -fPIC -I/usr/include/mupdf -I/usr/local/include/mupdf -I/usr/local/thirdparty/zlib -I/usr/include/py thon3.5m -c fitz/fitz_wrap.c -o build/temp.linux-i686-3.5/fitz/fitz_wrap.o
fitz/fitz_wrap.c:3066:18: fatal error: fitz.h: No such file or directory #include <fitz.h> ^ compilation terminated. error: command ‘i686-linux-gnu-gcc’ failed with exit status 1


Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-xg5w1vcn/PyMuPDF/setup.py’ ;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, __ file__, ‘exec’))” install --record /tmp/pip-99hnvkul-record/install-record.txt --single-version-externally-manag ed --compile” failed with error code 1 in /tmp/pip-build-xg5w1vcn/PyMuPDF/

pyqt报错

user@debian:~$ sudo pip3 install pyqt5 [sudo] password for user: Collecting pyqt5 Could not find a version that satisfies the requirement pyqt5 (from versions: ) No matching distribution found for pyqt5

谢谢 马上尝试

安装了mupdf库文件,跟着报了一大堆错误,弄不了了,毕竟是一个医生,等大神以后弄得更傻瓜化再来尝试吧,感谢上面几位好心的朋友给我解答,也感谢大神的开发,谢谢谢谢!!!

你安装的是 Debian, debian太老了, 安装一个包更新的发行版,比如 deepin/ubuntu/archlinux

现在应用程序可以通过 send_keystroke 接口来读取 eaf buffer 的Emacs快捷键了: Add eaf-dired-open-file to make pdf/video/image default binding eaf · emacs-eaf/emacs-application-framework@eb18641 · GitHub

比如, 现在按 M-f 和 M-b 可以在浏览器中前进后退了。

无意中发现,用eaf打开pdf时,用鼠标滚轮不会加载新页,而且有时窗口贴合会错位。

窗口有错位都是因为 xlib reparent 没有很好的执行, 你用的啥系统和啥窗口管理器?

滚轮那个是已知问题, 还在调查原因。

Manjaro Deepin

你用一下KDE使一下,排除一下窗口管理器的问题

安装好了archlinux,相关的库都正常安装,但是eaf open 打开文档 视频 图片都报错,如下

Importerror: libqt5webenginewidgets.so.5:cannot open shared object file:no such file or directory

Pacman 安装的python-pyqt5

更新到最新版, 然后用 pip install pyqt5, 现在不需要 pacman 来安装 pyqt5 了

更新了,pip里面没有 pyqt5,显示

No mamatching distribution found pyqt5

我的系统是I686,已经是最新了