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 20:56:05 -0800 (PST) Message-ID: <426990.79617.qm@web83204.mail.mud.yahoo.com> References: <87prjssxp4.fsf@catnip.gol.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 1229403381 8517 80.91.229.12 (16 Dec 2008 04:56:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Dec 2008 04:56:21 +0000 (UTC) Cc: Eli Zaretskii , handa@m17n.org, Stefan Monnier , emacs-devel@gnu.org To: Chong Yidong , Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 16 05:57:27 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 1LCRzq-0000wu-Id for ged-emacs-devel@m.gmane.org; Tue, 16 Dec 2008 05:57:26 +0100 Original-Received: from localhost ([127.0.0.1]:46192 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCRye-00057L-Rl for ged-emacs-devel@m.gmane.org; Mon, 15 Dec 2008 23:56:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LCRya-00057G-SV for emacs-devel@gnu.org; Mon, 15 Dec 2008 23:56:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LCRyZ-000574-Fb for emacs-devel@gnu.org; Mon, 15 Dec 2008 23:56:08 -0500 Original-Received: from [199.232.76.173] (port=52084 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCRyZ-000571-9a for emacs-devel@gnu.org; Mon, 15 Dec 2008 23:56:07 -0500 Original-Received: from web83204.mail.mud.yahoo.com ([216.252.101.48]:31276) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LCRyY-0004w7-KY for emacs-devel@gnu.org; Mon, 15 Dec 2008 23:56:07 -0500 Original-Received: (qmail 82825 invoked by uid 60001); 16 Dec 2008 04:56: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=PJEfPBrOdsimGzWSbs31kfJI/Asbd7CCyjtM9wZt351X32qS2JlGJTfaxGv/Dc0DD31a3cZTP0VZBp0kYQaEEUr5Ha+iyGJ+MEHm8+TyyZqVnWWi7vxN27xSV3fGeChgyljgxzXuc4iKY2dI0b2NvoThsenKhLwuHHSfkRy7NEY=; X-YMail-OSG: oBlHhkQVM1nrR9jQ2XLiC7f8Q7CgzUo3gvvORY_cALJ8fzBw07g52g9TuBPNSSDP_7AtBFrF39oY5nhnk3P1t4S.bH67gHtt7WRl5VnueLrRATyYAqRjFmw0mJ9UoQBK77uTD0dN.kzWgXOWRDD5OQ0ncFrvjjv5efUB0Ogg48YESK1FsuQz0UGrdweidSfXfRPaUnSbxX7J Original-Received: from [76.199.137.190] by web83204.mail.mud.yahoo.com via HTTP; Mon, 15 Dec 2008 20:56:05 PST X-Mailer: YahooMailWebService/0.7.218.2 In-Reply-To: <87prjssxp4.fsf@catnip.gol.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:106953 Archived-At: --- 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.