Applied Eli's comments and added support for customizing which flag toggle-window-dedicated sets by default. New patch attached. Eli Zaretskii writes: >> From: sbaugh@catern.com >> Date: Sat, 19 Aug 2023 20:02:35 +0000 (UTC) >> Cc: Spencer Baugh , Eli Zaretskii , >> martin rudalics , Drew Adams , >> 64619@debbugs.gnu.org >> + >> +@kindex C-x w d >> +@findex toggle-window-dedicated >> + Toggle whether the current window is dedicated to the current > ^^^^^^^ > "selected", not "current". Or maybe "currently-selected". Selected seems more common than currently-selected so went with that. >> @@ -675,6 +696,7 @@ mode-line-end-spaces >> 'mode-line-modified >> 'mode-line-remote) >> 'display '(min-width (5.0))) >> + 'mode-line-window-dedicated >> 'mode-line-frame-identification >> 'mode-line-buffer-identification >> " " > > Why not add this to the group with the min-width property (and enlarge > that to 6.0)? That way, we prevent annoying horizontal movement of > the rest of the mode-line display when toggling the state. Hm, I tried doing that, but maybe I don't understand min-width, because there's still horizontal movement of the mode-line when I toggle it on and off. I tried various combinations of strings, but they all had this behavior, maybe I'm doing something obviously wrong? Also, if we make it fixed-size in this way, should we display "-" instead of nothing when the window is not dedicated? Or just an empty space?