From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Loading files at startup (desktop) and revert-buffer leave buffers **. Date: Wed, 27 Nov 2002 08:20:02 +0200 (IST) Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <579ura.v5.ln@acm.acm> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1038378078 21096 80.91.224.249 (27 Nov 2002 06:21:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 27 Nov 2002 06:21:18 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18GvZT-0005Ts-00 for ; Wed, 27 Nov 2002 07:21:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18GvZf-0000Sb-00; Wed, 27 Nov 2002 01:21:27 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18GvYT-0007Lq-00 for help-gnu-emacs@gnu.org; Wed, 27 Nov 2002 01:20:13 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18GvYP-0007Lb-00 for help-gnu-emacs@gnu.org; Wed, 27 Nov 2002 01:20:12 -0500 Original-Received: from is.elta.co.il ([199.203.121.2]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18GvYN-0007LN-00 for help-gnu-emacs@gnu.org; Wed, 27 Nov 2002 01:20:08 -0500 Original-Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id IAA08865 for ; Wed, 27 Nov 2002 08:20:02 +0200 (IST) X-Sender: eliz@is Original-To: help-gnu-emacs@gnu.org In-Reply-To: <579ura.v5.ln@acm.acm> Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:4087 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4087 On Mon, 25 Nov 2002, Alan Mackenzie wrote: > It seems to me that one should only be prompted to save a buffer to a > file (e.g. on C-x C-s, or C-x k) when one has changed the substance of > that buffer, not merely the way it has been displayed. What is the > rationale behind prompting a user to save a "changed" file, merely > because he has changed its display within emacs to yellow letters, for > example? The same goes for the two stars displayed on the mode-line. Think about Emacs as a word processor which can save the formatting and typeface of characters in the buffer's file. In that case, when a typeface changes, the file's contents change. The fact that Emacs currently doesn't save faces in the file is mostly irrelevant; it could start doing that in the future, if, for example, compilers will begin to accept XML files as sources. Or look at it this way: when the program's source is visited by Emacs in another session, it's again fontified as it was before. For all practical purposes, the face was ``saved and restored''; the fact that it didn't come from the file is something that you know about Emacs's internal operation, that's all.