unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#56156: 29.0.50; Options/Save not saving desktop-save-mode
@ 2022-06-23  9:14 Gerd Möllmann
  2022-06-23 12:38 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Gerd Möllmann @ 2022-06-23  9:14 UTC (permalink / raw)
  To: 56156

[-- Attachment #1: Type: text/plain, Size: 193 bytes --]

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Patch --]
[-- Type: text/x-patch, Size: 861 bytes --]

From b505a909a6d761fce303c8ecd7771d7e3e20ff15 Mon Sep 17 00:00:00 2001
From: Gerd Moellmann <gerd.moellmann@gmail.com>
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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-23 12:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-23  9:14 bug#56156: 29.0.50; Options/Save not saving desktop-save-mode Gerd Möllmann
2022-06-23 12:38 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).