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: [dooglus@gmail.com: display problem after renaming open image files] Date: Sat, 07 Apr 2007 10:54:58 -0400 Message-ID: <87ejmwmdz1.fsf@stupidchicken.com> References: <87ircfu4eo.fsf@stupidchicken.com> <868xd998qo.fsf@lola.quinscape.zz> <87zm5mz89q.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1175957762 9575 80.91.229.12 (7 Apr 2007 14:56:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 7 Apr 2007 14:56:02 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 07 16:55:27 2007 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 1HaCK3-0006lQ-EQ for ged-emacs-devel@m.gmane.org; Sat, 07 Apr 2007 16:55:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HaCNe-0005Rk-DG for ged-emacs-devel@m.gmane.org; Sat, 07 Apr 2007 10:59:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HaCNZ-0005PT-2R for emacs-devel@gnu.org; Sat, 07 Apr 2007 10:59:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HaCNX-0005Nb-KC for emacs-devel@gnu.org; Sat, 07 Apr 2007 10:58:59 -0400 Original-Received: from south-station-annex.mit.edu ([18.72.1.2]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HaCJv-0001PC-Jn; Sat, 07 Apr 2007 10:55:15 -0400 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id l37EtEn8002648; Sat, 7 Apr 2007 10:55:14 -0400 (EDT) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by grand-central-station.mit.edu (8.13.6/8.9.2) with ESMTP id l37Et3P6009938; Sat, 7 Apr 2007 10:55:06 -0400 (EDT) Original-Received: from localhost (SYDNEYPACIFIC-SIXTY-ONE.MIT.EDU [18.95.5.61]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id l37Et3Kr012001; Sat, 7 Apr 2007 10:55:03 -0400 (EDT) Original-Received: from cyd by localhost with local (Exim 3.36 #1 (Debian)) id 1HaCJg-0000fQ-00; Sat, 07 Apr 2007 10:55:00 -0400 In-Reply-To: (Richard Stallman's message of "Sat\, 07 Apr 2007 08\:41\:01 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.97 (gnu/linux) X-Scanned-By: MIMEDefang 2.42 X-Spam-Score: -2.599 X-detected-kernel: Solaris 9.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:69166 Archived-At: Richard Stallman writes: > For all practical purposes, the current behavior is fine. After all, > image-mode (currently) functions as an image viewer, not an image > editor. So if you move the underlying image file, no one will be > surprised that you can't view the image anymore! Plenty of image > viewing programs have this behavior (see gqview for example.) > > When you visit a file in Emacs, looking at the buffer is not supposed > to depend on the existence of the file. The contents of the file are > supposed to be in the buffer. (That is what a buffer is for.) > > That is why this is so clearly a bug. > > If I agree to release without fixing this bug now, will you agree > in return to fix the problem next month for Emacs 23? Yes. The best way to do it is probably to implement the "using an overlay for the image spec" idea. As I said, that will require some deep changes in image.c. It will be big change, but not conceptually difficult.