Situation: I use a monitor and a laptop screen as my multimonitor setup.
Unfortunately the monitor and the laptop differs in resolution.
So I use 2 frames, one frame on the monitor and one frame on the laptop screen.
Both frames are connected to one Emacs instance.
MONITOR:
I will call the frame that's opened on monitor as frame 1.
In the frame 1 on the monitor, I have a buffer opened with the EDBI query window.
LAPTOP:
On the laptop screen, there is the query result window being displayed in the Emacs frame 2.
SITUATION:
In the frame 1, in the buffer with EDBI query window, I do C-c C-cedbi:dbview-query-editor-execute-command to send a SQL-statement to the SQL-process.
I see the result on the laptop screen in frame 2. But in the meanwhile, EDBI propably have detected there is no window in the Emacs frame 1, so EDBI opens a new window with the same buffer of the ctbl-table-mode.
As the result, there are two windows on two screens, viewing the same buffer (the ctbl-table-mode).
I solved it with trying to reuse windows from another frame only for EDBI process buffer, with adding an entry to display-buffer-alist:
But the problem is that the number of *edbi:query-result 1 changes sometimes. The documentation of display-buffer-alist and display-buffer (via C-h v and C-h f) explains them in great detail. You can readrelatedpages from the Elisp manual to learn more.
I would prevent that the EDBI uses number to label the query result window. So there is no need anymore to change the window name and pushing it to display-buffer-alist everytime. How could I 'tell' EDBI to use edbi:query-result without any number?
Situation: I use a monitor and a laptop screen as my multimonitor setup.
Unfortunately the monitor and the laptop differs in resolution. So I use 2 frames, one frame on the monitor and one frame on the laptop screen.
Both frames are connected to one Emacs instance.
MONITOR: I will call the frame that's opened on monitor as
frame 1
. In theframe 1
on the monitor, I have a buffer opened with the EDBI query window.LAPTOP: On the laptop screen, there is the query result window being displayed in the Emacs
frame 2
.SITUATION: In the
frame 1
, in the buffer with EDBI query window, I do C-c C-cedbi:dbview-query-editor-execute-command
to send a SQL-statement to the SQL-process.I see the result on the laptop screen in
frame 2
. But in the meanwhile, EDBI propably have detected there is no window in the Emacsframe 1
, so EDBI opens a new window with the same buffer of the ctbl-table-mode.As the result, there are two windows on two screens, viewing the same buffer (the ctbl-table-mode).
I solved it with trying to reuse windows from another frame only for EDBI process buffer, with adding an entry to
display-buffer-alist
:But the problem is that the number of
*edbi:query-result 1
changes sometimes. The documentation ofdisplay-buffer-alist
anddisplay-buffer
(viaC-h v
andC-h f
) explains them in great detail. You can read related pages from the Elisp manual to learn more.I would prevent that the
EDBI
uses number to label the query result window. So there is no need anymore to change the window name and pushing it todisplay-buffer-alist
everytime. How could I 'tell'EDBI
to useedbi:query-result
without any number?