all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@is.elta.co.il>
Subject: Re: Loading files at startup (desktop) and revert-buffer leave buffers **.
Date: Wed, 27 Nov 2002 08:20:02 +0200 (IST)	[thread overview]
Message-ID: <Pine.SUN.3.91.1021127081446.8482E-100000@is> (raw)
In-Reply-To: <579ura.v5.ln@acm.acm>


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.

  reply	other threads:[~2002-11-27  6:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <j7phha.ab.ln@acm.acm>
2002-11-23 15:27 ` Loading files at startup (desktop) and revert-buffer leave buffers ** Alan Mackenzie
2002-11-24  6:01   ` Eli Zaretskii
2002-11-25 17:02   ` Kevin Rodgers
2002-11-25 22:45     ` Alan Mackenzie
2002-11-27  6:20       ` Eli Zaretskii [this message]
     [not found] <mailman.1038117744.12302.help-gnu-emacs@gnu.org>
2002-11-24 23:02 ` Alan Mackenzie
2002-11-25  6:22   ` Eli Zaretskii
     [not found] <mailman.1038205410.31195.help-gnu-emacs@gnu.org>
2002-11-25 23:26 ` Alan Mackenzie
2002-11-27  6:14   ` Eli Zaretskii
2002-11-27  6:52   ` Miles Bader

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.SUN.3.91.1021127081446.8482E-100000@is \
    --to=eliz@is.elta.co.il \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.