[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: <em> rendered in standalone w3m, but not emacs-w3m



>>>>> In [emacs-w3m : No.10382] jidanni@xxxxxxxxxxx wrote:

> <em> Is rendered (as underline) in standalone w3m on xterm, but not at all
> in emacs-w3m 1.4.263!

<em> is rendered as italic using the `w3m-italic' face.  You can
modify it so as to be a underline face by `M-x customize-face'.
But most terminal emulators don't seem to be able to display
italic text, so I think making it be a underline face by default
for a non-window system is a good idea.  I've installed the
following change in the emacs-w3m CVS trunk:

--8<---------------cut here---------------start------------->8---
--- w3m.el~	2008-09-24 10:47:04 +0000
+++ w3m.el	2008-10-08 22:30:24 +0000
@@ -937,8 +937,10 @@
 ;; backward-compatibility alias
 (put 'w3m-bold-face 'face-alias 'w3m-bold)
 
-(defface w3m-italic '((t (:italic t)))
-  "Face used for displaying italic text."
+(defface w3m-italic '((((type tty)) (:underline t))
+		      (t (:italic t)))
+  "Face used for displaying italic text.
+By default it will be a underline face on a non-window system."
   :group 'w3m-face)
 ;; backward-compatibility alias
 (put 'w3m-italic-face 'face-alias 'w3m-italic)
--8<---------------cut here---------------end--------------->8---

Regards,