X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/9f76176c0ed91bb2e6b3f67db86aadb9f4f8985b..b52d2ce2162edb835884e9884e9a6ff839fd2cba:/el/dot-emacs.el diff --git a/el/dot-emacs.el b/el/dot-emacs.el index d7b4800..fc219b2 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -677,8 +677,8 @@ With a prefix argument, clear the designated window." "Display function to use the designated window." (prog1 mdw-designated-window (when mdw-designated-window - (select-window mdw-designated-window) - (switch-to-buffer buffer nil t)) + (with-selected-window mdw-designated-window + (switch-to-buffer buffer nil t))) (setq mdw-designated-window nil))) (setq display-buffer-base-action