Subject: bug#56156: 29.0.50; Options/Save not saving desktop-save-mode

From: Gerd Möllmann <[email-masked]>
Date: Thu, 23 Jun 2022 11:14:43 +0200

Select Options/Save State Between Sessions, then Options/Save Options.

This does not save the value of desktop-save-mode.  M-x customize-group
shows that it has been changed.

Patch attaches

>From b505a909a6d761fce303c8ecd7771d7e3e20ff15 Mon Sep 17 00:00:00 2001
From: Gerd Moellmann <[email-masked]>
Date: Thu, 23 Jun 2022 10:54:05 +0200
Subject: [PATCH] Save desktop-save-mode when changed from menu

* lisp/menu-bar.el (menu-bar-options-save): Save desktop-save-mode.
---
 lisp/menu-bar.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 488bf05f3a..4a943d2528 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -792,6 +792,7 @@ menu-bar-options-save
     (dolist (elt '(scroll-bar-mode
 		   debug-on-quit debug-on-error
 		   ;; Somehow this works, when tool-bar and menu-bar don't.
+                   desktop-save-mode
 		   tooltip-mode window-divider-mode
 		   save-place-mode uniquify-buffer-name-style fringe-mode
 		   indicate-empty-lines indicate-buffer-boundaries
-- 
2.36.1