From d1c2c8c35bc9143d3ffd073a3acde1b0e95300f3 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 29 Aug 2024 02:46:21 -0400 Subject: [PATCH] fix(popup): don't disable hide-mode-line if enabled globally Ref: hlissner/emacs-hide-mode-line#11 --- modules/ui/popup/autoload/popup.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ui/popup/autoload/popup.el b/modules/ui/popup/autoload/popup.el index 3a8a9e61e..5bd44a299 100644 --- a/modules/ui/popup/autoload/popup.el +++ b/modules/ui/popup/autoload/popup.el @@ -297,7 +297,8 @@ Any non-nil value besides the above will be used as the raw value for (defun +popup-unset-modeline-on-disable-h () "Restore the modeline when `+popup-buffer-mode' is deactivated." (when (and (not (bound-and-true-p +popup-buffer-mode)) - (bound-and-true-p hide-mode-line-mode)) + (bound-and-true-p hide-mode-line-mode) + (not (bound-and-true-p global-hide-mode-line-mode))) (hide-mode-line-mode -1))) ;;;###autoload