el/dot-emacs.el (mdw-display-buffer-in-tolerable-window): Maybe reuse current.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 9 May 2024 22:20:44 +0000 (23:20 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 9 May 2024 22:22:06 +0000 (23:22 +0100)
If the selected window is also the fallback window for the frame then
it's OK to use it.  That's what it's for.  So if there's a fallback
window then clear `selected' so that the later check doesn't complain.

el/dot-emacs.el

index 01d3ac5..542a6cb 100644 (file)
@@ -837,7 +837,8 @@ emphasis is on predictability rather than crazy DWIMmery."
      ((and fallback (window-live-p (cdr fallback)))
       ;; There's a fallback window set for this frame.  Use it.
 
-      (setq chosen (cdr fallback))
+      (setq chosen (cdr fallback)
+           selected nil)
       (display-buffer-record-window 'window chosen buffer))
 
      ((and full-height-p full-width-p)