From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: image cache Date: Mon, 15 Dec 2008 11:08:26 -0500 Message-ID: <87r649ifph.fsf@cyd.mit.edu> References: <87oczeuo0a.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 1229357346 31129 80.91.229.12 (15 Dec 2008 16:09:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Dec 2008 16:09:06 +0000 (UTC) Cc: Eli Zaretskii , handa@m17n.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 15 17:10:11 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 1LCG0u-0008Sr-EJ for ged-emacs-devel@m.gmane.org; Mon, 15 Dec 2008 17:09:44 +0100 Original-Received: from localhost ([127.0.0.1]:42135 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCFzi-0006T4-1k for ged-emacs-devel@m.gmane.org; Mon, 15 Dec 2008 11:08:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LCFzd-0006Sz-Jk for emacs-devel@gnu.org; Mon, 15 Dec 2008 11:08:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LCFza-0006R2-VA for emacs-devel@gnu.org; Mon, 15 Dec 2008 11:08:25 -0500 Original-Received: from [199.232.76.173] (port=57416 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCFza-0006Qu-Qj for emacs-devel@gnu.org; Mon, 15 Dec 2008 11:08:22 -0500 Original-Received: from cyd.mit.edu ([18.115.2.24]:52129) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LCFzX-0000Ot-9c; Mon, 15 Dec 2008 11:08:19 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 9FDC757E197; Mon, 15 Dec 2008 11:08:26 -0500 (EST) In-Reply-To: (Stefan Monnier's message of "Mon, 15 Dec 2008 10:19:16 -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:106937 Archived-At: Stefan Monnier writes: >>> 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.