Why does set-default-font affect find-file-other-window?

I recently added a line

(set-default-font "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1")

to the .emacs file. After that, it find-file-other-windowalways opens a new window instead of using existing windows. Why is this going to happen !? How can i fix this?

I don’t understand how all this font-config magic works, so if it’s really obvious, I'm sorry.

Edit: I have a fairly large resolution, and the font size has decreased significantly. Does the find-file-other-windowavailable character space take into account ? Perhaps he will decide that there is a lot of space that he can afford to simply open the windows willingly or not.

+3
source share
1 answer

find-file-other-window display-buffer, , , . , display-buffer , , split-window-preferred-function, . split-window-preferred-function split-window-sensibly, , split-height-threshold , split-width-threshold .

,

(setq split-width-threshold nil)
(setq split-height-threshold nil)

N.B. GNU Emacs 23. . .


( ):

  • , , , : M-x apropos RET split RET , , . , , ( ), C-h v split- TAB .
  • find-file-other-window , ( Elisp , Emacs C-h i m elisp RET Elisp, i find-file-other-window RET .) , pop-to-buffer - ; " " , .
  • C-h f find-file-other-window RET . display-buffer. display-buffer , Elisp, , display-buffer, window.el.
+5

Source: https://habr.com/ru/post/1782826/


All Articles