Subject: Re: bug#28814: [BUMP, PATCH] (26.0.90; When *xref* window is needed, original window-switching intent is lost )

From: martin rudalics <[email-masked]>
Date: Wed, 25 Oct 2017 09:46:07 +0200

> * 0003-Allow-split-window-sensibly-to-split-threshold-in-fu.patch
 >
 > This extends the exception granted by split-window-sensibly to
 > single-window frames whose dimensions are below those of splitting
 > thresholds to consider multi-window frames where all but one window is
 > dedicated.

Maybe the new behavior should be made customizable but this is for users
of dedicated windows to decide.  In either case, instead of constructing
‘window-list’ please consider using ‘walk-window-tree’ for that part

+            (let ((windows (delete window (window-list frame)))
+                  w)
+              (while (and (setq w (pop windows))
+                          (window-dedicated-p w)))
+              (not windows))))

Thank you, martin