unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: raman@google.com (T.V Raman)
Cc: vibhavp@gmail.com, emacs-devel@gnu.org
Subject: Re: EWW/SHR Feature Request
Date: Fri, 21 Mar 2014 22:03:19 +0100	[thread overview]
Message-ID: <m3fvmbjmco.fsf@stories.gnus.org> (raw)
In-Reply-To: <21292.34491.425345.339570@retriever.mtv.corp.google.com> (T. V. Raman's message of "Fri, 21 Mar 2014 11:36:43 -0700")

raman@google.com (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	other threads:[~2014-03-21 21:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-21 15:44 EWW/SHR Feature Request T. V. Raman
2014-03-21 16:48 ` Nicolas Richard
2014-03-21 18:04 ` Vibhav Pant
2014-03-21 18:36   ` T.V Raman
2014-03-21 21:03     ` Lars Magne Ingebrigtsen [this message]
2014-03-22 10:22 ` Willem Rein Oudshoorn
2016-07-14  2:44 ` raman

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3fvmbjmco.fsf@stories.gnus.org \
    --to=larsi@gnus.org \
    --cc=emacs-devel@gnu.org \
    --cc=raman@google.com \
    --cc=vibhavp@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).