From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: image cache Date: Mon, 15 Dec 2008 15:09:30 -0500 Message-ID: References: <87oczeuo0a.fsf@cyd.mit.edu> <87r649ifph.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229371820 20321 80.91.229.12 (15 Dec 2008 20:10:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Dec 2008 20:10:20 +0000 (UTC) Cc: Eli Zaretskii , handa@m17n.org, emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 15 21:11:26 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 1LCJmN-0000JA-Hx for ged-emacs-devel@m.gmane.org; Mon, 15 Dec 2008 21:10:59 +0100 Original-Received: from localhost ([127.0.0.1]:59139 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCJlB-0002x1-Af for ged-emacs-devel@m.gmane.org; Mon, 15 Dec 2008 15:09:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LCJl5-0002uc-Fw for emacs-devel@gnu.org; Mon, 15 Dec 2008 15:09:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LCJl0-0002rM-4k for emacs-devel@gnu.org; Mon, 15 Dec 2008 15:09:38 -0500 Original-Received: from [199.232.76.173] (port=33576 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCJkz-0002rD-97 for emacs-devel@gnu.org; Mon, 15 Dec 2008 15:09:33 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:4677 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LCJkx-00055W-Bq; Mon, 15 Dec 2008 15:09:31 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AroEALNIRknO+J7J/2dsb2JhbACBbMt1gn6BMQ X-IronPort-AV: E=Sophos;i="4.36,226,1228107600"; d="scan'208";a="31083790" Original-Received: from 206-248-158-201.dsl.teksavvy.com (HELO pastel.home) ([206.248.158.201]) by ironport2-out.teksavvy.com with ESMTP; 15 Dec 2008 15:09:29 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 338317F41; Mon, 15 Dec 2008 15:09:30 -0500 (EST) In-Reply-To: <87r649ifph.fsf@cyd.mit.edu> (Chong Yidong's message of "Mon, 15 Dec 2008 11:08:26 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:106942 Archived-At: >>>> BTW, does anyone know why each frame has an image cache (even though >>>> there's really only one image cache per terminal)? >>> A left-over from before multi-tty? >> I don't think it's related. The same "problem" was there in Emacs-22, >> and Emacs-21. > 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. Yes, such a change will/would imply a whole bunch of changes, indeed. I'm just wondering what is the reason for having chosen frames rather than terminals when writing the code. Seeing the current state of the code, it appears that terminals would have been a much more natural choice, so either I'm missing something, or something has changed which makes it the natural choice now even tho it wasn't earlier, or the author had some odd notion of "natural" (or maybe didn't even think much about it and just chose it arbitrarily). Stefan