I am modifying desktop.el
to support restoring the buffer-undo-list
, and am push
-ing that list at the tail end of the function desktop-buffer-info
because the buffer-undo-list
is not included in the output of the function buffer-local-variables
.
Q: Is there a built-in method to include the buffer-undo-list
in the output of the function buffer-local-variables
? If not, is there a reason why it's not included?
To make the buffer-undo-list
get stored into the desktop file, I add:
(push (cons 'buffer-undo-list buffer-undo-list) ll)
It works, but I'd like to understand why a seemingly buffer-local variable is excluded from the function buffer-local-variables
.