Patch shr-add-font after loading shr
This commit is contained in:
parent
3b7d86919a
commit
56a332187b
@ -3818,6 +3818,7 @@ faces to the existing face-list, rather than prepending the shr
|
|||||||
face. This means that e.g. links don't actually get rendered correctly
|
face. This means that e.g. links don't actually get rendered correctly
|
||||||
if there is some non-link face already on the text. The fix:
|
if there is some non-link face already on the text. The fix:
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(with-eval-after-load 'shr
|
||||||
(defun shr-add-font (start end type)
|
(defun shr-add-font (start end type)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(goto-char start)
|
(goto-char start)
|
||||||
@ -3829,7 +3830,7 @@ if there is some non-link face already on the text. The fix:
|
|||||||
(add-face-text-property (point) (min (line-end-position) end) type)
|
(add-face-text-property (point) (min (line-end-position) end) type)
|
||||||
(if (< (line-end-position) end)
|
(if (< (line-end-position) end)
|
||||||
(forward-line 1)
|
(forward-line 1)
|
||||||
(goto-char end)))))
|
(goto-char end))))))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* w3m
|
* w3m
|
||||||
|
Loading…
Reference in New Issue
Block a user