aboutsummaryrefslogtreecommitdiffstats
path: root/src/frame.c
diff options
context:
space:
mode:
authorHelmut Eller2026-04-04 20:59:46 +0200
committerHelmut Eller2026-04-04 20:59:46 +0200
commit6eec001187e8551f32b6498e6dc60cdc58c2e515 (patch)
tree13233de9f0a05ef86a51500e8b1870b75ff20c81 /src/frame.c
parente4ea27119e79012f9d651cb61d1115589d91ef39 (diff)
parent01a9d78a7e4c7d7fa5b799e4fdc2caf77a012734 (diff)
downloademacs-feature/igc3.tar.gz
emacs-feature/igc3.zip
Merge branch 'master' into feature/igc3feature/igc3
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/frame.c b/src/frame.c
index 20481c230d1..2475eb84df3 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -214,7 +214,7 @@ frame_inhibit_resize (struct frame *f, bool horizontal, Lisp_Object parameter)
214 && !NILP (fullscreen) && !EQ (fullscreen, Qfullheight)) 214 && !NILP (fullscreen) && !EQ (fullscreen, Qfullheight))
215 || (!horizontal 215 || (!horizontal
216 && !NILP (fullscreen) && !EQ (fullscreen, Qfullwidth)) 216 && !NILP (fullscreen) && !EQ (fullscreen, Qfullwidth))
217 || FRAME_TERMCAP_P (f) || FRAME_MSDOS_P (f)))); 217 || is_tty_frame (f))));
218} 218}
219 219
220 220
@@ -349,8 +349,6 @@ If FRAME is nil, use the selected frame.
349Return nil if the id has not been set. */) 349Return nil if the id has not been set. */)
350 (Lisp_Object frame) 350 (Lisp_Object frame)
351{ 351{
352 if (NILP (frame))
353 frame = selected_frame;
354 struct frame *f = decode_live_frame (frame); 352 struct frame *f = decode_live_frame (frame);
355 if (f->id == 0) 353 if (f->id == 0)
356 return Qnil; 354 return Qnil;
@@ -562,7 +560,7 @@ frame_windows_min_size (Lisp_Object frame, Lisp_Object horizontal,
562 560
563 /* Don't allow too small height of text-mode frames, or else cm.c 561 /* Don't allow too small height of text-mode frames, or else cm.c
564 might abort in cmcheckmagic. */ 562 might abort in cmcheckmagic. */
565 if ((FRAME_TERMCAP_P (f) || FRAME_MSDOS_P (f)) && NILP (horizontal)) 563 if (is_tty_frame (f) && NILP (horizontal))
566 { 564 {
567 int min_height = (FRAME_MENU_BAR_LINES (f) + FRAME_TAB_BAR_LINES (f) 565 int min_height = (FRAME_MENU_BAR_LINES (f) + FRAME_TAB_BAR_LINES (f)
568 + FRAME_WANTS_MODELINE_P (f) 566 + FRAME_WANTS_MODELINE_P (f)
@@ -1573,7 +1571,7 @@ make_terminal_frame (struct terminal *terminal, Lisp_Object parent,
1573 f->output_data.tty->display_info = &the_only_display_info; 1571 f->output_data.tty->display_info = &the_only_display_info;
1574 if (!inhibit_window_system 1572 if (!inhibit_window_system
1575 && (!FRAMEP (selected_frame) || !FRAME_LIVE_P (XFRAME (selected_frame)) 1573 && (!FRAMEP (selected_frame) || !FRAME_LIVE_P (XFRAME (selected_frame))
1576 || XFRAME (selected_frame)->output_method == output_msdos_raw)) 1574 || FRAME_MSDOS_P (XFRAME (selected_frame))))
1577 f->output_method = output_msdos_raw; 1575 f->output_method = output_msdos_raw;
1578 else 1576 else
1579 f->output_method = output_termcap; 1577 f->output_method = output_termcap;
@@ -1763,13 +1761,12 @@ affects all frames on the same terminal device. */)
1763 struct frame *sf = SELECTED_FRAME (); 1761 struct frame *sf = SELECTED_FRAME ();
1764 1762
1765#ifdef MSDOS 1763#ifdef MSDOS
1766 if (sf->output_method != output_msdos_raw 1764 if (!is_tty_frame (sf))
1767 && sf->output_method != output_termcap)
1768 emacs_abort (); 1765 emacs_abort ();
1769#else /* not MSDOS */ 1766#else /* not MSDOS */
1770 1767
1771#ifdef WINDOWSNT /* This should work now! */ 1768#ifdef WINDOWSNT /* This should work now! */
1772 if (sf->output_method != output_termcap) 1769 if (!FRAME_TERMCAP_P (sf))
1773 error ("Not using an ASCII terminal now; cannot make a new ASCII frame"); 1770 error ("Not using an ASCII terminal now; cannot make a new ASCII frame");
1774#endif 1771#endif
1775#endif /* not MSDOS */ 1772#endif /* not MSDOS */
@@ -1986,7 +1983,7 @@ do_switch_frame (Lisp_Object frame, int track, int for_deletion, Lisp_Object nor
1986 if (!for_deletion && FRAME_HAS_MINIBUF_P (sf)) 1983 if (!for_deletion && FRAME_HAS_MINIBUF_P (sf))
1987 resize_mini_window (XWINDOW (FRAME_MINIBUF_WINDOW (sf)), 1); 1984 resize_mini_window (XWINDOW (FRAME_MINIBUF_WINDOW (sf)), 1);
1988 1985
1989 if (FRAME_TERMCAP_P (f) || FRAME_MSDOS_P (f)) 1986 if (is_tty_frame (f))
1990 { 1987 {
1991 struct tty_display_info *tty = FRAME_TTY (f); 1988 struct tty_display_info *tty = FRAME_TTY (f);
1992 Lisp_Object top_frame = tty->top_frame; 1989 Lisp_Object top_frame = tty->top_frame;
@@ -2800,7 +2797,7 @@ delete_frame (Lisp_Object frame, Lisp_Object force)
2800 && FRAME_LIVE_P (f1) 2797 && FRAME_LIVE_P (f1)
2801 && !FRAME_TOOLTIP_P (f1)) 2798 && !FRAME_TOOLTIP_P (f1))
2802 { 2799 {
2803 if (FRAME_TERMCAP_P (f1) || FRAME_MSDOS_P (f1)) 2800 if (is_tty_frame (f1))
2804 { 2801 {
2805 Lisp_Object top_frame = FRAME_TTY (f1)->top_frame; 2802 Lisp_Object top_frame = FRAME_TTY (f1)->top_frame;
2806 2803