From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: image cache Date: Tue, 16 Dec 2008 10:41:59 +0900 Message-ID: <87prjssxp4.fsf@catnip.gol.com> References: <87oczeuo0a.fsf@cyd.mit.edu> <87r649ifph.fsf@cyd.mit.edu> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229391747 16919 80.91.229.12 (16 Dec 2008 01:42:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Dec 2008 01:42:27 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org, Stefan Monnier , handa@m17n.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 16 02:43: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 1LCOy7-0002La-Cm for ged-emacs-devel@m.gmane.org; Tue, 16 Dec 2008 02:43:28 +0100 Original-Received: from localhost ([127.0.0.1]:51927 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCOwv-0000qq-CZ for ged-emacs-devel@m.gmane.org; Mon, 15 Dec 2008 20:42:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LCOwp-0000oh-Va for emacs-devel@gnu.org; Mon, 15 Dec 2008 20:42:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LCOwo-0000nP-QH for emacs-devel@gnu.org; Mon, 15 Dec 2008 20:42:07 -0500 Original-Received: from [199.232.76.173] (port=56377 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCOwo-0000n3-D4 for emacs-devel@gnu.org; Mon, 15 Dec 2008 20:42:06 -0500 Original-Received: from smtp12.dentaku.gol.com ([203.216.5.74]:44595) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LCOwk-0001wI-Nx; Mon, 15 Dec 2008 20:42:03 -0500 Original-Received: from 218.231.174.254.eo.eaccess.ne.jp ([218.231.174.254] helo=catnip.gol.com) by smtp12.dentaku.gol.com with esmtpa (Dentaku) id 1LCOwh-0005ME-KG; Tue, 16 Dec 2008 10:41:59 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 14E14DFBF; Tue, 16 Dec 2008 10:41:59 +0900 (JST) System-Type: x86_64-unknown-linux-gnu In-Reply-To: <87r649ifph.fsf@cyd.mit.edu> (Chong Yidong's message of "Mon, 15 Dec 2008 11:08:26 -0500") Original-Lines: 18 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:106947 Archived-At: 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. -Miles -- You can hack anything you want, with TECO and DDT.