Subject: Re: bug#33492: 27.0.50; desktop-locals-to-save won't consider buffer-undo-list as local

From: Glenn Morris <[email-masked]>
Date: Tue, 27 Nov 2018 20:23:07 -0500

Terje Larsen wrote:

> https://emacs.stackexchange.com/questions/3725/why-is-the-buffer-undo-list-excluded-from-buffer-local-variables
>
> I can verify that the issue stems from desktop-save relying on the
> C-function buffer-local-variables and this function does not include
> the variable buffer-undo-list.

Thanks for the report.
This issue (buffer-local-variables does not include buffer-undo-list)
is present since Emacs 24.3, due to 36429c8, which moved undo_list to
the end of struct buffer.