GNU bug report logs - #19576
24.4; Broken function in `window-size-change-functions' cause `write-file' to write the wrong buffer

Previous Next

Package: emacs;

Reported by: Anders Lindgren <andlind <at> gmail.com>

Date: Mon, 12 Jan 2015 23:39:02 UTC

Severity: normal

Found in version 24.4

Done: Anders Lindgren <andlind <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #214 received at 19576 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: acm <at> muc.de, 19576 <at> debbugs.gnu.org, andlind <at> gmail.com, juri <at> linkov.net
Subject: Re: bug#19576: write-file writes the wrong buffer
Date: Tue, 24 Nov 2015 09:27:52 +0100
>> A silly example with emacs -Q is
>>
>> (defvar fun 0)
>>
>> (defun fun (frame)
>>     "..."
>>     (message "\n%s\n" (setq fun (1+ fun))) (ding))
>>
>> (add-hook 'window-size-change-functions 'fun)
>>
>> This gets me complete erratic behavior when moving point.
>
> Maybe I'm blind, but I don't see anything erratic.

OK.  Here the erratic behavior is caused by ‘eldoc-mode’.  In any case
‘window-size-change-functions’ is executed twice per redisplay IIUC.

> I see that, but does that mean we should remove the "once only"
> promise?

I'd just remove the qualifier "just".

martin






This bug report was last modified 9 years and 179 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.