emacs-devel
[Top][All Lists]
Advanced

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

Re: EWW/SHR Feature Request


From: Lars Magne Ingebrigtsen
Subject: Re: EWW/SHR Feature Request
Date: Fri, 21 Mar 2014 22:03:19 +0100
User-agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux)

address@hidden (T.V Raman) writes:

>   (with-temp-buffer "*html-format*"
>                     (setq buffer-undo-list t)
>                     (insert html-string)
>                     (shr-render-region  (point-min) (point-max))
>                     (buffer-string)))

Note that `with-temp-buffer' doesn't take a buffer name as a parameter,
so the "*html-format*" string isn't used.  And there is no undo in the
temporary buffers,  so the whole thing just devolves to

(with-temp-buffer
  (insert html-string)
  (shr-render-region (point-min) (point-max))
  (buffer-string))

and I'm not sure that's enough to warrant a function...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]