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

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

bug#19576: write-file writes the wrong buffer


From: martin rudalics
Subject: bug#19576: write-file writes the wrong buffer
Date: Mon, 30 Nov 2015 14:30:31 +0100

>> Here with emacs -Q evaluating
>>
>> (message "...\n")
>>
>> runs ‘window-size-change-functions’.  Evaluating
>>
>> (read-file-name "...\n")
>>
>> doesn't.  If this is intentional it should be documented.
>
> I don't know if it's intentional.  Could you please look into this and
> publish what you find?  I really could use some help here.

The attached patch runs ‘window-size-change-functions’ for any call of
‘read-from-minibuffer’ that changes the size of the minibuffer window
either via the prompt or user input.  I have no idea whether it handles
all possible cases nor whether it might baldy interact with the part
that traces messages resizing the echo area.

Also, saving match data around the ‘window-size-change-functions’ calls
and not saving current buffer and selected window constitutes a gross
inconsistency IMHO.  So I'd rather prefer to close my eyes to this part
of the code, if possible.

martin

Attachment: xdisp.diff
Description: Text document


reply via email to

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