From: Alan Mackenzie<none@example.invalid>
Subject: Re: Loading files at startup (desktop) and revert-buffer leave buffers **.
Date: Sat, 23 Nov 2002 15:27:35 +0000 [thread overview]
Message-ID: <7p6ora.r5.ln@acm.acm> (raw)
In-Reply-To: j7phha.ab.ln@acm.acm
Alan Mackenzie <none@example.invalid> wrote on Mon, 22 Jul 2002 20:16:51
+0000:
> Emacs 21.1.
> I am using desktop (i.e. I have
> (load "desktop")
> (desktop-load-default)
> (desktop-read)
> in my .emacs)
> Some of my files which get loaded continually (and which I rarely/never
> save) are marked as changed in the mode-line ("**") each time I start
> emacs.
> Whenever I perform a revert-buffer for any of these files, the buffer
> gets reverted, yet the mode-line continues to display "**".
> For what it's worth, there is a file called #filename# for each of these
> files.
> Is this a bug, or have I misunderstood something?
> Thanks in advance.
Hi, everybody. My problem was nothing whatsoever to do with desktop.
What was happening was that I was setting text properties on these files'
buffers immediately after loading them (I think that loading a file
counts as a "change" for after-change-functions). Setting text
properties marks a file as changed.
I don't see why setting text properties should mark a file as changed.
It seems to me that text properties are more an internal lisp structure,
and the buffer-changed flag should reflect only changes to the contents
of the buffer - i.e. that were the buffer to be saved, it would have
different contents from the file that had been loaded. What is the
thinking behind this use of the buffer-changed flag?
Anyhow, apologies to anybody I sent off on a wild goose chase tracking
down this non-existent bug.
--
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").
next parent reply other threads:[~2002-11-23 15:27 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 ` Alan Mackenzie [this message]
2002-11-24 6:01 ` Loading files at startup (desktop) and revert-buffer leave buffers ** Eli Zaretskii
2002-11-25 17:02 ` Kevin Rodgers
2002-11-25 22:45 ` Alan Mackenzie
2002-11-27 6:20 ` Eli Zaretskii
[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=7p6ora.r5.ln@acm.acm \
--to=none@example.invalid \
/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.