Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Emacs how to prevent the same buffer from showing up in different windows in the same frame?

Tags:

emacs

elisp

I'm not sure how to comprehensively accomplish this.

Currently I build my own bzr Emacs on Windows, so I can see that `display-buffer' now takes a SPECIFIERS option, which could be interesting, but I couldn't find concrete examples of how to use it.

But this problem really has to be solved before display-buffer is called.

For example a Help window previously was visiting Buffer-A, but I've visited Buffer-A in another window while reading the help. Now when I quit the Help window, Buffer-A appears there as well. I want some other useful buffer to appear there.

like image 290
event_jr Avatar asked Nov 13 '22 17:11

event_jr


1 Answers

I have some experimental code that appears to work here.

I emphasize experimental. This could melt your Emacs.

I'd appreciate it if you could contact me on github or here to let me know your experiences with this.

like image 149
event_jr Avatar answered Dec 19 '22 02:12

event_jr