2

我最近升级到 Emacs 23.2.1。我正在使用 VM 版本 8.1.93a 来阅读我的电子邮件。我曾经通过我的 vm 配置文件中的以下行将 html 邮件更改为文本:

(add-to-list 'vm-mime-type-converter-alist 
'("text/html" "text/plain" "lynx -force_html -dump -stdin"))

但在 emacs 23 下,我收到以下错误消息:

Inline text/html by emacs-w3m display failed: 
(error "Emacs-w3m of this version does not support 
Emacs 23; try the development version")

在 Emacs 文档中搜索了一下,我以为我找到了解决方案,顺便说一句

(load-library "mm-decode")
(setq mm-text-html-renderer "lynx")

但似乎 vm-8 完全忽略了 vm-mime-type-converter-alist (仍然记录在案)和 mm-text-html-renderer (记录在案,设置为 w3m 直到我将其设置为 lynx)。我错过了什么还是 vm 搞砸了,我应该选择另一个 emacs 邮件阅读器?

4

2 回答 2

1

我在 vm-8.1 (http://savannah.c3sl.ufpr.br/viewmail/NEWS) 的发布描述中通过谷歌搜索找到了答案

    text/html handling controlled by a new variable
    `vm-mime-text/html-handler' which is set to 'auto-select by
    default.  It causes VM to locate the best library among
    emacs-w3m, external w3m, w3 and lynx to display html
    internally.  (This replaces the earlier variable
    `vm-mime-use-w3-for-text/html'.)

请注意,此变量设置为“自动选择”,而是默认设置为“emacs--w3m”。将以下内容添加到我的 vm 配置中对我有用:(setq vm-mime-text/html-handler "lynx") 并且 html 电子邮件的 yanking 工作(与 w3m-emacs 发生在我身上的情况相反)

于 2011-02-25T18:45:41.113 回答
0

试试(setq vm-mime-renderer-for-text/html 'lynx)。它曾经在某个时候为使用 vm 8.0 的人工作过,如此处所示

于 2011-02-25T17:46:57.383 回答