[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Misunderstanding set-buffer-modified-p?
From: |
Lars Ingebrigtsen |
Subject: |
Re: Misunderstanding set-buffer-modified-p? |
Date: |
Sat, 02 Jan 2021 07:02:23 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> It "doesn't work", in the sense that the buffer modeline is still marked
> modified after the function completes. It's not just a redisplay issue,
> either: running M-: (buffer-modified-p) returns t.
[...]
> Can anyone tell me if I'm doing something wrong, or I've understood
> something incorrectly?
I think what you're doing should work, so I'm wondering whether
something in the code is changing the current buffer, and you're calling
(set-buffer-modified-p nil) in the wrong buffer? Not that any of the
functions between `with-current-buffer' and setting the modified flag
look suspicious, but...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no