From: Sebastian Luque <spluque@gmail.com>
Subject: Re: cannot view html after upgrade
Date: Sat, 16 Jul 2005 00:47:50 -0500 [thread overview]
Message-ID: <87br5347zt.fsf@gmail.com> (raw)
In-Reply-To: <yotlfyuf5q20.fsf@jpl.org>
Katsumi Yamaoka <yamaoka@jpl.org> wrote:
[...]
> The mm-w3m-local-map-property function was removed at 2004-01-06.
> You may need to check the ~/.gnus.el file (or possibly the ~/.emacs
> file).
Thank you Katsumi. Checking those files, I have the following:
(setq mm-text-html-renderer 'w3m
mm-inline-text-html-with-images nil)
but I realized the following in the indicated file of my Gnus version:
,-----[ mm-view.el (lines: 222 - 257) ]
| (defun mm-inline-text-html-render-with-w3m (handle)
| "Render a text/html part using emacs-w3m."
| (mm-setup-w3m)
| (let ((text (mm-get-part handle))
| (b (point))
| (charset (mail-content-type-get (mm-handle-type handle) 'charset)))
| (save-excursion
| (insert text)
| (save-restriction
| (narrow-to-region b (point))
| (goto-char (point-min))
| (when (setq charset (w3m-detect-meta-charset))
| (delete-region (point-min) (point-max))
| (insert (mm-decode-string text charset)))
| (let ((w3m-safe-url-regexp mm-w3m-safe-url-regexp)
| w3m-force-redisplay)
| (w3m-region (point-min) (point-max)))
| (when mm-inline-text-html-with-w3m-keymap
| (add-text-properties
| (point-min) (point-max)
| (nconc (mm-w3m-local-map-property)
| ;; Put the mark meaning this part was rendered by emacs-w3m.
| '(mm-inline-text-html-with-w3m t)))))
| (mm-handle-set-undisplayer
| handle
| `(lambda ()
| (let (buffer-read-only)
| (if (functionp 'remove-specifier)
| (mapcar (lambda (prop)
| (remove-specifier
| (face-property 'default prop)
| (current-buffer)))
| '(background background-pixmap foreground)))
| (delete-region ,(point-min-marker)
| ,(point-max-marker))))))))
`-----
Please note the (nconc (mm-w3m-local-map-property)... line. I'm confused.
Cheers,
--
Sebastian P. Luque
next prev parent reply other threads:[~2005-07-16 5:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-16 0:00 Sebastian Luque
2005-07-16 4:32 ` Katsumi Yamaoka
2005-07-16 5:47 ` Sebastian Luque [this message]
2005-07-16 10:19 ` Katsumi Yamaoka
2005-07-16 18:17 ` Sebastian Luque
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87br5347zt.fsf@gmail.com \
--to=spluque@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).