From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: EWW/SHR Feature Request Date: Fri, 21 Mar 2014 22:03:19 +0100 Message-ID: References: <21292.24135.442736.223060@lapdog.roam.corp.google.com> <21292.34491.425345.339570@retriever.mtv.corp.google.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1395435824 25281 80.91.229.3 (21 Mar 2014 21:03:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Mar 2014 21:03:44 +0000 (UTC) Cc: vibhavp@gmail.com, emacs-devel@gnu.org To: raman@google.com (T.V Raman) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 21 22:03:54 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WR6bU-0004xN-7r for ged-emacs-devel@m.gmane.org; Fri, 21 Mar 2014 22:03:48 +0100 Original-Received: from localhost ([::1]:54668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WR6bT-0008KD-N1 for ged-emacs-devel@m.gmane.org; Fri, 21 Mar 2014 17:03:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WR6bK-0008HA-CT for emacs-devel@gnu.org; Fri, 21 Mar 2014 17:03:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WR6bE-0000B9-3p for emacs-devel@gnu.org; Fri, 21 Mar 2014 17:03:38 -0400 Original-Received: from galore.getmail.no ([84.210.184.6]:43654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WR6bD-00009s-TX for emacs-devel@gnu.org; Fri, 21 Mar 2014 17:03:32 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by galore.getmail.no (Postfix) with ESMTP id D8D0B4457E; Fri, 21 Mar 2014 22:03:23 +0100 (CET) Original-Received: from galore.getmail.no ([127.0.0.1]) by localhost (galore.get.c.bitbit.net [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id dfLX119Ipsgk; Fri, 21 Mar 2014 22:03:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by galore.getmail.no (Postfix) with ESMTP id 89556442A4; Fri, 21 Mar 2014 22:03:19 +0100 (CET) X-Virus-Scanned: amavisd-new at galore.get.c.bitbit.net Original-Received: from galore.getmail.no ([127.0.0.1]) by localhost (galore.get.c.bitbit.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id U26uOV1H89od; Fri, 21 Mar 2014 22:03:19 +0100 (CET) Original-Received: from stories.gnus.org (cm-84.215.51.58.getinternet.no [84.215.51.58]) by galore.getmail.no (Postfix) with ESMTPS id 59E6A41F11; Fri, 21 Mar 2014 22:03:19 +0100 (CET) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEV0VE5BJR/s5OFZNyyZ e3gqFhMVCQjSayStAAACbUlEQVQ4jXVUQXLbMAxELOUeDMPcy/EDBMPKWcOq93Ic6FxNQv7/CV1Q qdscSlvUGDsLLMClaf13EdZI40KU6R7M69mRFZFlXP4COaV0PgNYxmH6wjhSjetAg5DmnvUOLCAg 8EhTJhWe6B4fxy6AhkzMXAIthyI6GDQglUWzGoiWHr3ipcMw24kaVkE26jJBiIHZtgMw+wkFS5c1 H4EDaNv+hFxIIzHa1lq13IFqWxWVwPO72Bcg4kcRlgKNvNVSGMBWzVoBEKKVIMzR8GSq1fApG96v O7JBvZUST2S+Cm++GUNqq21XqDKEYikO83URfgFQBIzqsaCiKa0pDbI1BBoatBILB9VrOgN4cFnG rqqWV2NVvXRGB9i881rmmyjLJZ0lr7MdQEOqEDQAeE5LTt+6hhmtnah4YS4RDJy63fgY1okCq0Sb 3Av+JJHoUzqRsAZ7g0M8PALQDQzIRS0pb6trha7xrLG2tguAoi/WPtKxvpMPujUGgExx+/UJLOvc vHg5kUKU3Bnr+ohzBQBfMYCtA9mBH36e7QZfYU78+oHo2b/XxZyxZ2+QJIzpOS/XdcmKZADenTHR HC5pp4cbKXwlXhwMLpPGoGt8gjFZYh9JdWBXxUEFOHPC9NWHCwNAVRBrmLAv7N0l1gEfWo+LFN/g RfMaEms/wWnQuDvDj2QDEO1IMrDH9XCcj2S7DT05yvoeApwAj8Htf8r2Mtx1wWsnmvvv0GsLosJe HYAga6xF3bUcAKFHUHwkM1p1SkQ33IuBAlVBMJ3oN+MWjziLVZ+VxX5D/F7jCb39lmnCGQaf0oCL rPS58AeQ/rN+A8065sXvgCURAAAAAElFTkSuQmCC X-Now-Playing: Shearwater's _Fellow Travelers_: "Hurts Like Heaven" X-Hashcash: 1:23:140321:emacs-devel@gnu.org::BzvKyfSw+mhKFn3W:0000000000000000000000000000000000000000008HzB X-Hashcash: 1:23:140321:raman@google.com::mbXUE1h+mGmR0Xxq:0W0v/ X-Hashcash: 1:23:140321:vibhavp@gmail.com::4z3I9rDa74K0ncvd:00000000000000000000000000000000000000000000YDWD 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") User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 84.210.184.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:170738 Archived-At: 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