From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andy Tai Newsgroups: gmane.emacs.devel Subject: Re: Possible problem with Gnus Date: Sat, 22 May 2004 20:46:58 -0700 (PDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20040523034658.74396.qmail@web50908.mail.yahoo.com> References: Reply-To: atai@atai.org NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1085291944 9146 80.91.224.253 (23 May 2004 05:59:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 23 May 2004 05:59:04 +0000 (UTC) Cc: Andy Tai , monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun May 23 07:58:51 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BRm0Z-0001O0-00 for ; Sun, 23 May 2004 07:58:51 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BRm0Y-0005dd-01 for ; Sun, 23 May 2004 07:58:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BRktd-0001uh-F3 for emacs-devel@quimby.gnus.org; Sun, 23 May 2004 00:47:37 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BRktX-0001uT-QI for emacs-devel@gnu.org; Sun, 23 May 2004 00:47:31 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BRkt1-0001pe-LA for emacs-devel@gnu.org; Sun, 23 May 2004 00:47:30 -0400 Original-Received: from [206.190.38.128] (helo=web50908.mail.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.34) id 1BRkt1-0001pa-CQ for emacs-devel@gnu.org; Sun, 23 May 2004 00:46:59 -0400 Original-Received: from [210.21.224.54] by web50908.mail.yahoo.com via HTTP; Sat, 22 May 2004 20:46:58 PDT X-RocketYMMF: lichengtai Original-To: rms@gnu.org, David Kastrup In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:23837 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23837 Hi, I would be glad to develop such an interfce; I believe ghostscript should have most infrasturcture in place already. I cannot promise on a time fr Thanks, Andy --- Richard Stallman wrote: > Andy, we have been talking about problems in Emacs > code > to display postscript in the middle of a document. > > > The sane thing to do is to serialize the > whole GhostScript > > operation to have at most one GhostScript > process running, and > > to not restart this process as long as > images remain to be > > rendered. > > > > That does sound desirable. However, > > > > For this to work, one has to stop > passing the information > > through an XPixMap but has to go through a > file or pipe. > > > > Using a pixmap is preferable, in general. Why > do you think > > using a single Ghostscript process is > incompatible with using > > a pixmap? > > Because the interface to GhostScript that is > used for passing the > XPixMap Id and the respective sizes is queried > just at the start of > GhostScript. > > I think the solution for this is to make a new > interface > to allow Emacs to specify the pixmap to an existing > GhostScript > process when reusing it for another image. > > Andy, can you implement such an interface for Emacs > to use? > > > In contrast, preview-latex first deals > with on-screen images. > > Once they are dealt with, it reverts to > rendering the rest > > off-screen. > > > > That would be a good optimization to add. > > Rendering off-screen material is actually not as > much an optimization, > but an interactivity feature. It means that > once GhostScript is > through, scrolling through the file is not > computationally expensive. > > However, if some document has thousands of > images, it would be saner > to render them just to disk in case you'll need > them, but not burden > Emacs' memory with them unless one actually > moves there. > > That makes sense. Can that be done easily with > reuse of a > single GhostScript process, with the existing > GhostScript features? > If not, what new feature do we need? ===== Andy Tai, atai@atai.org Free Software: the software by the people, of the people and for the people! Develop! Share! Enhance! Enjoy!