删除 Emacs 上的 DocView 欢迎页面
Emacs 23 可以在编辑器中查看 PDF 文件,这很棒。但是,它还为每个 PDF 页面显示一个欢迎页面,如下所示:
如何删除此欢迎 页面页?我知道 Emacs 正在对 PDF 页面进行一些处理,并且它可能不希望用户在执行此操作时一遍又一遍地尝试打开文件,但我更喜欢沙漏而不是整个页面。
我尝试将 doc-view-conversion-refresh-interval 设置为 nil 顺便说一句,它不起作用。
我使用的是 GNU Emacs 23.2.1(i686-pc-linux-gnu,GTK+ 版本 2.24.4)。
谢谢,
Emacs 23 can view PDF files inside the editor which is great. However it also shows a welcome page, for every PDF page, like this:
How can I remove this welcome page? I understand Emacs is doing some processing for the PDF page, and it probably does not want the user to try to open the file over and over again while it is doing that, but I'd prefer and hourglass instead of a whole page.
I tried setting doc-view-conversion-refresh-interval to nil BTW, it didnt work.
I am on GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.24.4).
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
WRT 你的答案,听起来你要么编辑了原始文件,要么制作了整个库的替换副本。
当你更新 Emacs 时,第一种方法将会丢失。第二种方式意味着当您更新 Emacs 时,您不会对该库进行任何改进。两者都不是一个很好的选择。
相反,您可以告诉 Emacs,如果它加载原始库,它应该在那时重新定义该函数。
这可以最大程度地减少与升级相关的潜在问题,并且不需要您在 .emacs 中无条件加载库(这会不必要地增加未加载任何 PDF 的会话的启动时间)。
WRT your answer, it sounds like you either edited the original file, or made a replacement copy of that entire library.
The first way will be lost when you update Emacs. The second way means you won't get any improvements to that library when you update Emacs. Neither is a very good option.
Instead you can tell Emacs that if and when it loads the original library, it should re-define that one function at that time.
This minimises the potential problems associated with upgrades, and does not require you to load the library unconditionally in your .emacs (which would increase your start-up time unnecessarily for sessions where you didn't load any PDFs).
我认为您需要按
抄送
I think you need to press
C-c C-c
我找到了 Emacs 23 的 doc-view.el 源代码,并从 doc-view-buffer-message 函数中删除了该消息。现在,当加载 PDF 时,会显示一个空白页面,这样就不那么混乱了,欢迎页面使它看起来像是 PDF 已加载。
更改后,我对 el 文件进行了字节编译文件,并在 .emacs 末尾加载了此文件,覆盖了原始文档视图。
I found doc-view.el source for Emacs 23, and I removed the message from doc-view-buffer-message function. So now when PDF is loaded an empty page is shown which is less confusing, welcome page made it look like the PDF was loaded.
After the changes I did byte-compile-file on the el file, and at the end of my .emacs I load this overriding the original doc-view.