Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • :). Thanks for the C-x 5 b tip. I guess the question now is it possible to still use C-x b but it redirects to C-x 5 b for dedicated windows. I will look more into special-display-regexps (is a neat approach) and display-buffer-alist. My emacs fu is not up to par yet but hope to be their soon. Commented Dec 30, 2017 at 2:25
  • See #2 above. If you do that then C-x b automatically does what you are asking. Commented Dec 30, 2017 at 17:55
  • I know what I have to do but I don't how to achieve that in the code base above. Specifically, the elisp directive should be (setq special-display-buffer-names (current-buffer)) where current-buffer is obtained as shown in the above snippet. I need to figure how to chain this directive with the above snippet. Commented Dec 30, 2017 at 22:52
  • No. current-buffer returns a buffer, not a buffer name (a string). If you don't know the names of the buffers that you want to make special-display and you don't know even a pattern (regexp) that all of their names will match, then you cannot use the two options I mentioned. You'll perhaps have to wrestle with using display-buffer-alist. And what I said was not intended as something to do to your toggle-* code. It was a response to your question about to make a given buffer have a dedicated window and then switch to it in its own frame. Commented Dec 31, 2017 at 0:12