From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chetan Pandya Newsgroups: gmane.emacs.devel Subject: Re: image cache Date: Mon, 15 Dec 2008 23:02:05 -0800 (PST) Message-ID: <535966.45305.qm@web83207.mail.mud.yahoo.com> References: <426990.79617.qm@web83204.mail.mud.yahoo.com> Reply-To: pandyacus@sbcglobal.net NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229410944 24990 80.91.229.12 (16 Dec 2008 07:02:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Dec 2008 07:02:24 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org, Stefan Monnier , handa@m17n.org To: Chong Yidong , Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 16 08:03:30 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LCTxp-0001MA-BY for ged-emacs-devel@m.gmane.org; Tue, 16 Dec 2008 08:03:30 +0100 Original-Received: from localhost ([127.0.0.1]:41329 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCTwd-00031N-B9 for ged-emacs-devel@m.gmane.org; Tue, 16 Dec 2008 02:02:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LCTwX-00031H-6n for emacs-devel@gnu.org; Tue, 16 Dec 2008 02:02:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LCTwV-000315-LN for emacs-devel@gnu.org; Tue, 16 Dec 2008 02:02:08 -0500 Original-Received: from [199.232.76.173] (port=46506 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCTwV-000312-Dl for emacs-devel@gnu.org; Tue, 16 Dec 2008 02:02:07 -0500 Original-Received: from web83207.mail.mud.yahoo.com ([216.252.101.63]:36037) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LCTwU-0002Im-Nv for emacs-devel@gnu.org; Tue, 16 Dec 2008 02:02:06 -0500 Original-Received: (qmail 45540 invoked by uid 60001); 16 Dec 2008 07:02:05 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=KqZyviv8Dw6B8gz6YqhJwVs8sAf34kjlIYhMQwTLI7z24mgPUOqIHqnbLd/OvjIg1o94DdjZiY4VLvbD01Z0AQxChYIzIc6juAyspaaHwb8qAV5AdnGlyqS3g/dcrdKkKoRtJ5GYm7dXvU3ttz8Uc0oIUx6ze15rDcjT1WpfjMs=; X-YMail-OSG: emqM9BsVM1kQAtLfoSMo2nLbkwzgRrklAyA7mHIA4Yy7m91Sw1p1WIVyKg3PbXSsfpG6CnvEILTIxMss9eiQuHnwuJ6fY.Rv5kgnTilgbZSz.WBk8zdw60VZuA8FZFRp8V7CwjJXPJagxfrOFPqiBAXC._Avv.lHBXYHbxu7mqCrY4If4E9q6iRwTXK5QMp2tnv9NS0GSDh3GtC2N2Y- Original-Received: from [75.37.23.14] by web83207.mail.mud.yahoo.com via HTTP; Mon, 15 Dec 2008 23:02:05 PST X-Mailer: YahooMailWebService/0.7.218.2 In-Reply-To: <426990.79617.qm@web83204.mail.mud.yahoo.com> X-detected-operating-system: by monty-python.gnu.org: FreeBSD 6.x (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:106954 Archived-At: I looked at this some more and looks like it is not so everywhere. However, there seem to be more problems. It isn't clear how this is organized. For examples images are shared across frames, but there is no reference counting to know when it can be refreshed without affecting other frames and when it cannot. --- On Tue, 12/16/08, Chetan Pandya wrote: > From: Chetan Pandya > Subject: Re: image cache > To: "Chong Yidong" , "Miles Bader" > Cc: "Eli Zaretskii" , handa@m17n.org, "Stefan Monnier" , emacs-devel@gnu.org > Date: Tuesday, December 16, 2008, 4:56 AM > --- On Tue, 12/16/08, Miles Bader > wrote: > > > > Chong Yidong writes: > > > Note that fixing requires changing all the > functions in image.c that > > > require a frame argument, so that they use a > terminal argument instead. > > > Otherwise, if you associate image caches to > terminals, you run into > > > problems with terminals that have no frame (e.g. > terminals created using > > > x-open-connection), because you can't supply > those image functions with > > > a frame argument. > > > > Frameless terminals can't use those functions > currently > > anyway, right? > > > > So one could change the current implementation to put > the > > cache in the > > terminal data structure, but preserve the current > > interfaces. This > > would yield more sharing, without losing > functionality. > > Isn't that how it is currently? > > From frame.h: > /* Return a pointer to the image cache of frame F. */ > #define FRAME_IMAGE_CACHE(F) > ((F)->terminal->image_cache) > > Chetan > > > > -Miles > > > > -- > > You can hack anything you want, with TECO and DDT.