aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Kangas2023-01-03 06:30:17 +0100
committerStefan Kangas2023-01-03 06:30:17 +0100
commit55e41707ea727ea4b5c4d3c85f68b62e32dcdfb5 (patch)
tree436b76d5358aa17d126090d63691a7661cc93f20 /src
parent2ee6012b3faaf12710ec63626795148caeef0f6a (diff)
parent6dd3e352f44eb402c9b76c8f6e5bef032317cc55 (diff)
downloademacs-55e41707ea727ea4b5c4d3c85f68b62e32dcdfb5.tar.gz
emacs-55e41707ea727ea4b5c4d3c85f68b62e32dcdfb5.zip
Merge from origin/emacs-29
6dd3e352f44 Extract common code into ruby-base-mode to derive from 94e330243e1 ruby-ts-mode: Indentation fixes 9b24417dda8 ruby-ts--font-lock-settings: Use more standard faces 9e6536e4d96 ruby-ts-mode: Standardize the string literal highlights 1a9a1fdebf6 Improve fontification in java-ts-mode (bug#60492) dfdf9c21cbe Fontification improvements in typescript-ts-mode (bug#60500) 68e68dfeefe Improve fontification consistency in js-ts-mode (bug#60503) aef869e74f4 ; Update tree-sitter manual 4ef12cfb1fc ; Fix tree-sitter manual title case aab8ddca5e1 ; nt/INSTALL: Update for Emacs 29. 809fbb0e8c4 ; Update copyright notice in tramp-sh.el f8f5202487c (typescript/tsx-ts-mode): Split font-lock feature list in... a86a213e1ac js-ts-mode: Move 'string-interpolation' to font-lock level 3 d26b523886e Fix shrinking of the tab-bar 3f7ea621b90 ; Fix typos in ruby-ts-mode.el 9599b054316 ; Skip ruby-ts tests if grammar is not available ff35ac9dfab Fix default-port regression in erc-select-read-args b7ad0b40148 ; Clarify doc strings of 'call-process' and 'call-process...
Diffstat (limited to 'src')
-rw-r--r--src/callproc.c5
-rw-r--r--src/haikufns.c14
-rw-r--r--src/nsfns.m14
-rw-r--r--src/pgtkfns.c14
-rw-r--r--src/w32fns.c14
-rw-r--r--src/xfns.c14
6 files changed, 38 insertions, 37 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 7208ceb5d2f..5e1e1a8cc0a 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -259,8 +259,8 @@ input come from an Emacs buffer, use `call-process-region' instead.
259Third argument DESTINATION specifies how to handle program's output. 259Third argument DESTINATION specifies how to handle program's output.
260(\"Output\" here means both standard output and standard error 260(\"Output\" here means both standard output and standard error
261output.) 261output.)
262If DESTINATION is a buffer, or t that stands for the current buffer, 262If DESTINATION is a buffer or the name of a buffer, or t (which stands for
263 it means insert output in that buffer before point. 263the current buffer), it means insert output in that buffer before point.
264If DESTINATION is nil, it means discard output; 0 means discard 264If DESTINATION is nil, it means discard output; 0 means discard
265 and don't wait for the program to terminate. 265 and don't wait for the program to terminate.
266If DESTINATION is `(:file FILE)', where FILE is a file name string, 266If DESTINATION is `(:file FILE)', where FILE is a file name string,
@@ -1055,6 +1055,7 @@ Insert output in BUFFER before point; t means current buffer; nil for
1055 BUFFER means discard it; 0 means discard and don't wait; and `(:file 1055 BUFFER means discard it; 0 means discard and don't wait; and `(:file
1056 FILE)', where FILE is a file name string, means that it should be 1056 FILE)', where FILE is a file name string, means that it should be
1057 written to that file (if the file already exists it is overwritten). 1057 written to that file (if the file already exists it is overwritten).
1058BUFFER can be a string which is the name of a buffer.
1058BUFFER can also have the form (REAL-BUFFER STDERR-FILE); in that case, 1059BUFFER can also have the form (REAL-BUFFER STDERR-FILE); in that case,
1059REAL-BUFFER says what to do with standard output, as above, 1060REAL-BUFFER says what to do with standard output, as above,
1060while STDERR-FILE says what to do with standard error in the child. 1061while STDERR-FILE says what to do with standard error in the child.
diff --git a/src/haikufns.c b/src/haikufns.c
index 59332346dab..b591c143900 100644
--- a/src/haikufns.c
+++ b/src/haikufns.c
@@ -175,19 +175,17 @@ haiku_change_tool_bar_height (struct frame *f, int height)
175void 175void
176haiku_change_tab_bar_height (struct frame *f, int height) 176haiku_change_tab_bar_height (struct frame *f, int height)
177{ 177{
178 int unit, old_height, lines; 178 int unit = FRAME_LINE_HEIGHT (f);
179 Lisp_Object fullscreen; 179 int old_height = FRAME_TAB_BAR_HEIGHT (f);
180
181 unit = FRAME_LINE_HEIGHT (f);
182 old_height = FRAME_TAB_BAR_HEIGHT (f);
183 fullscreen = get_frame_param (f, Qfullscreen);
184 180
185 /* This differs from the tool bar code in that the tab bar height is 181 /* This differs from the tool bar code in that the tab bar height is
186 not rounded up. Otherwise, if redisplay_tab_bar decides to grow 182 not rounded up. Otherwise, if redisplay_tab_bar decides to grow
187 the tab bar by even 1 pixel, FRAME_TAB_BAR_LINES will be changed, 183 the tab bar by even 1 pixel, FRAME_TAB_BAR_LINES will be changed,
188 leading to the tab bar height being incorrectly set upon the next 184 leading to the tab bar height being incorrectly set upon the next
189 call to x_set_font. (bug#59285) */ 185 call to x_set_font. (bug#59285) */
190 lines = height / unit; 186 int lines = height / unit;
187 if (lines == 0 && height != 0)
188 lines = 1;
191 189
192 /* Make sure we redisplay all windows in this frame. */ 190 /* Make sure we redisplay all windows in this frame. */
193 fset_redisplay (f); 191 fset_redisplay (f);
@@ -208,6 +206,8 @@ haiku_change_tab_bar_height (struct frame *f, int height)
208 206
209 if (!f->tab_bar_resized) 207 if (!f->tab_bar_resized)
210 { 208 {
209 Lisp_Object fullscreen = get_frame_param (f, Qfullscreen);
210
211 /* As long as tab_bar_resized is false, effectively try to change 211 /* As long as tab_bar_resized is false, effectively try to change
212 F's native height. */ 212 F's native height. */
213 if (NILP (fullscreen) || EQ (fullscreen, Qfullwidth)) 213 if (NILP (fullscreen) || EQ (fullscreen, Qfullwidth))
diff --git a/src/nsfns.m b/src/nsfns.m
index 8c78657db50..8804a7df7cf 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -632,19 +632,17 @@ ns_set_menu_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval)
632void 632void
633ns_change_tab_bar_height (struct frame *f, int height) 633ns_change_tab_bar_height (struct frame *f, int height)
634{ 634{
635 int unit, old_height, lines; 635 int unit = FRAME_LINE_HEIGHT (f);
636 Lisp_Object fullscreen; 636 int old_height = FRAME_TAB_BAR_HEIGHT (f);
637
638 unit = FRAME_LINE_HEIGHT (f);
639 old_height = FRAME_TAB_BAR_HEIGHT (f);
640 fullscreen = get_frame_param (f, Qfullscreen);
641 637
642 /* This differs from the tool bar code in that the tab bar height is 638 /* This differs from the tool bar code in that the tab bar height is
643 not rounded up. Otherwise, if redisplay_tab_bar decides to grow 639 not rounded up. Otherwise, if redisplay_tab_bar decides to grow
644 the tab bar by even 1 pixel, FRAME_TAB_BAR_LINES will be changed, 640 the tab bar by even 1 pixel, FRAME_TAB_BAR_LINES will be changed,
645 leading to the tab bar height being incorrectly set upon the next 641 leading to the tab bar height being incorrectly set upon the next
646 call to x_set_font. (bug#59285) */ 642 call to x_set_font. (bug#59285) */
647 lines = height / unit; 643 int lines = height / unit;
644 if (lines == 0 && height != 0)
645 lines = 1;
648 646
649 /* Make sure we redisplay all windows in this frame. */ 647 /* Make sure we redisplay all windows in this frame. */
650 fset_redisplay (f); 648 fset_redisplay (f);
@@ -665,6 +663,8 @@ ns_change_tab_bar_height (struct frame *f, int height)
665 663
666 if (!f->tab_bar_resized) 664 if (!f->tab_bar_resized)
667 { 665 {
666 Lisp_Object fullscreen = get_frame_param (f, Qfullscreen);
667
668 /* As long as tab_bar_resized is false, effectively try to change 668 /* As long as tab_bar_resized is false, effectively try to change
669 F's native height. */ 669 F's native height. */
670 if (NILP (fullscreen) || EQ (fullscreen, Qfullwidth)) 670 if (NILP (fullscreen) || EQ (fullscreen, Qfullwidth))
diff --git a/src/pgtkfns.c b/src/pgtkfns.c
index 57591d2693c..6b3a0459d36 100644
--- a/src/pgtkfns.c
+++ b/src/pgtkfns.c
@@ -473,19 +473,17 @@ pgtk_set_tab_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval)
473void 473void
474pgtk_change_tab_bar_height (struct frame *f, int height) 474pgtk_change_tab_bar_height (struct frame *f, int height)
475{ 475{
476 int unit, old_height, lines; 476 int unit = FRAME_LINE_HEIGHT (f);
477 Lisp_Object fullscreen; 477 int old_height = FRAME_TAB_BAR_HEIGHT (f);
478
479 unit = FRAME_LINE_HEIGHT (f);
480 old_height = FRAME_TAB_BAR_HEIGHT (f);
481 fullscreen = get_frame_param (f, Qfullscreen);
482 478
483 /* This differs from the tool bar code in that the tab bar height is 479 /* This differs from the tool bar code in that the tab bar height is
484 not rounded up. Otherwise, if redisplay_tab_bar decides to grow 480 not rounded up. Otherwise, if redisplay_tab_bar decides to grow
485 the tab bar by even 1 pixel, FRAME_TAB_BAR_LINES will be changed, 481 the tab bar by even 1 pixel, FRAME_TAB_BAR_LINES will be changed,
486 leading to the tab bar height being incorrectly set upon the next 482 leading to the tab bar height being incorrectly set upon the next
487 call to x_set_font. (bug#59285) */ 483 call to x_set_font. (bug#59285) */
488 lines = height / unit; 484 int lines = height / unit;
485 if (lines == 0 && height != 0)
486 lines = 1;
489 487
490 /* Make sure we redisplay all windows in this frame. */ 488 /* Make sure we redisplay all windows in this frame. */
491 fset_redisplay (f); 489 fset_redisplay (f);
@@ -506,6 +504,8 @@ pgtk_change_tab_bar_height (struct frame *f, int height)
506 504
507 if (!f->tab_bar_resized) 505 if (!f->tab_bar_resized)
508 { 506 {
507 Lisp_Object fullscreen = get_frame_param (f, Qfullscreen);
508
509 /* As long as tab_bar_resized is false, effectively try to change 509 /* As long as tab_bar_resized is false, effectively try to change
510 F's native height. */ 510 F's native height. */
511 if (NILP (fullscreen) || EQ (fullscreen, Qfullwidth)) 511 if (NILP (fullscreen) || EQ (fullscreen, Qfullwidth))
diff --git a/src/w32fns.c b/src/w32fns.c
index 9d02e680fe8..192d3ddf27a 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -1717,19 +1717,17 @@ w32_set_tab_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval)
1717void 1717void
1718w32_change_tab_bar_height (struct frame *f, int height) 1718w32_change_tab_bar_height (struct frame *f, int height)
1719{ 1719{
1720 int unit, old_height, lines; 1720 int unit = FRAME_LINE_HEIGHT (f);
1721 Lisp_Object fullscreen; 1721 int old_height = FRAME_TAB_BAR_HEIGHT (f);
1722
1723 unit = FRAME_LINE_HEIGHT (f);
1724 old_height = FRAME_TAB_BAR_HEIGHT (f);
1725 fullscreen = get_frame_param (f, Qfullscreen);
1726 1722
1727 /* This differs from the tool bar code in that the tab bar height is 1723 /* This differs from the tool bar code in that the tab bar height is
1728 not rounded up. Otherwise, if redisplay_tab_bar decides to grow 1724 not rounded up. Otherwise, if redisplay_tab_bar decides to grow
1729 the tab bar by even 1 pixel, FRAME_TAB_BAR_LINES will be changed, 1725 the tab bar by even 1 pixel, FRAME_TAB_BAR_LINES will be changed,
1730 leading to the tab bar height being incorrectly set upon the next 1726 leading to the tab bar height being incorrectly set upon the next
1731 call to x_set_font. (bug#59285) */ 1727 call to x_set_font. (bug#59285) */
1732 lines = height / unit; 1728 int lines = height / unit;
1729 if (lines == 0 && height != 0)
1730 lines = 1;
1733 1731
1734 /* Make sure we redisplay all windows in this frame. */ 1732 /* Make sure we redisplay all windows in this frame. */
1735 fset_redisplay (f); 1733 fset_redisplay (f);
@@ -1758,6 +1756,8 @@ w32_change_tab_bar_height (struct frame *f, int height)
1758 1756
1759 if (!f->tab_bar_resized) 1757 if (!f->tab_bar_resized)
1760 { 1758 {
1759 Lisp_Object fullscreen = get_frame_param (f, Qfullscreen);
1760
1761 /* As long as tab_bar_resized is false, effectively try to change 1761 /* As long as tab_bar_resized is false, effectively try to change
1762 F's native height. */ 1762 F's native height. */
1763 if (NILP (fullscreen) || EQ (fullscreen, Qfullwidth)) 1763 if (NILP (fullscreen) || EQ (fullscreen, Qfullwidth))
diff --git a/src/xfns.c b/src/xfns.c
index dac347e4661..3a129211463 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -1757,19 +1757,17 @@ x_set_tab_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval)
1757void 1757void
1758x_change_tab_bar_height (struct frame *f, int height) 1758x_change_tab_bar_height (struct frame *f, int height)
1759{ 1759{
1760 int unit, old_height, lines; 1760 int unit = FRAME_LINE_HEIGHT (f);
1761 Lisp_Object fullscreen; 1761 int old_height = FRAME_TAB_BAR_HEIGHT (f);
1762
1763 unit = FRAME_LINE_HEIGHT (f);
1764 old_height = FRAME_TAB_BAR_HEIGHT (f);
1765 fullscreen = get_frame_param (f, Qfullscreen);
1766 1762
1767 /* This differs from the tool bar code in that the tab bar height is 1763 /* This differs from the tool bar code in that the tab bar height is
1768 not rounded up. Otherwise, if redisplay_tab_bar decides to grow 1764 not rounded up. Otherwise, if redisplay_tab_bar decides to grow
1769 the tab bar by even 1 pixel, FRAME_TAB_BAR_LINES will be changed, 1765 the tab bar by even 1 pixel, FRAME_TAB_BAR_LINES will be changed,
1770 leading to the tab bar height being incorrectly set upon the next 1766 leading to the tab bar height being incorrectly set upon the next
1771 call to x_set_font. (bug#59285) */ 1767 call to x_set_font. (bug#59285) */
1772 lines = height / unit; 1768 int lines = height / unit;
1769 if (lines == 0 && height != 0)
1770 lines = 1;
1773 1771
1774 /* Make sure we redisplay all windows in this frame. */ 1772 /* Make sure we redisplay all windows in this frame. */
1775 fset_redisplay (f); 1773 fset_redisplay (f);
@@ -1790,6 +1788,8 @@ x_change_tab_bar_height (struct frame *f, int height)
1790 1788
1791 if (!f->tab_bar_resized) 1789 if (!f->tab_bar_resized)
1792 { 1790 {
1791 Lisp_Object fullscreen = get_frame_param (f, Qfullscreen);
1792
1793 /* As long as tab_bar_resized is false, effectively try to change 1793 /* As long as tab_bar_resized is false, effectively try to change
1794 F's native height. */ 1794 F's native height. */
1795 if (NILP (fullscreen) || EQ (fullscreen, Qfullwidth)) 1795 if (NILP (fullscreen) || EQ (fullscreen, Qfullwidth))