help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: when nothing happens, buffer still marked as modified


From: Eli Zaretskii
Subject: Re: when nothing happens, buffer still marked as modified
Date: Wed, 05 Dec 2018 12:58:56 +0200

> From: Emanuel Berg <moasenwood@zoho.eu>
> Date: Wed, 05 Dec 2018 11:09:24 +0100
> 
> Eli Zaretskii wrote:
> 
> >> But how do I determine if the buffer has
> >> changed or not? If it has, of course it
> >> should be marked `**'!
> >
> > That's the same problem that M-q has, and it
> > leaves the modified status intact. Why not do
> > as it does?
> 
> I'm not following, "Why not do as it does"?

I mean why not follow M-q's example?  It marks the buffer modified
even if re-filling the text arrived at the same text as before the
command.

> > You could, of course, save a copy of the
> > buffer before the changes, and then compare,
> > but why bother?
> 
> Don't you think it is confusing, even
> incorrect, to have the buffer change status
> when the data hasn't changed from the command?

The data did change, it just eventually arrived at the same contents.
Sheer luck.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]