From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Putting auto-image-file-mode in Options menu Date: Sun, 20 Mar 2005 01:54:24 +0100 Message-ID: References: <87acp8i6f1.fsf@jurta.org> <87wtsbbrlt.fsf-monnier+emacs@gnu.org> <87ll8qap2h.fsf@jurta.org> <87mzt3h43k.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1111280318 13993 80.91.229.2 (20 Mar 2005 00:58:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2005 00:58:38 +0000 (UTC) Cc: Juri Linkov , monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 20 01:58:38 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DColg-0002lA-OW for ged-emacs-devel@m.gmane.org; Sun, 20 Mar 2005 01:58:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DCp2U-0007Fc-0X for ged-emacs-devel@m.gmane.org; Sat, 19 Mar 2005 20:15:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DCp28-0007DA-V7 for emacs-devel@gnu.org; Sat, 19 Mar 2005 20:15:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DCp23-0007B9-LH for emacs-devel@gnu.org; Sat, 19 Mar 2005 20:15:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DCp22-00079y-O2 for emacs-devel@gnu.org; Sat, 19 Mar 2005 20:15:06 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DCoiG-00064b-5R for emacs-devel@gnu.org; Sat, 19 Mar 2005 19:54:40 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1DCoi9-00071m-Ib; Sat, 19 Mar 2005 19:54:33 -0500 Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Sat, 19 Mar 2005 19:22:35 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34802 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34802 Richard Stallman writes: > 3. By default this mode should be enabled for non-ascii based > image format files like .png, .jpg. This could be achieved > by enabling auto-compression-mode by default and turning > image-mode off by default for ascii based formats. > > I am completely lost here. What does auto-compression-mode have > to do with image-mode? > > 2. Perhaps image-mode should be minor mode for extensions like > .xbm and .xpm which already have associated major mode c-mode > in auto-mode-alist. > > Someone else can do that. > > 4. Calling `image-toggle-display' sets the modification flag, > so after visiting image files only for viewing buffers become > modified. > > I will make it restore the modified flag after its change. If you used an overlay instead of text properties, there would be no necessity to modify the buffer. It would also imply that copying the buffer content into the kill ring would not copy the image along. Since we are talking about a _mode_ here, it would appear more appropriate to make the image a property of the buffer rather than of its contents. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum