aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYuuki Harano2021-03-21 15:54:46 +0900
committerYuuki Harano2021-03-21 15:54:46 +0900
commit5d2f319eec33fea2cb29a02210952ee590b4b21b (patch)
tree8dd6a5502f4cedcc060598ce0c8a3ef6e8688b6a /src
parent7a7bc15242896b20c7af49f77f0e22c3d78e4d88 (diff)
parente9e691093ab843911b0ac7a9a9188d477415db2e (diff)
downloademacs-5d2f319eec33fea2cb29a02210952ee590b4b21b.tar.gz
emacs-5d2f319eec33fea2cb29a02210952ee590b4b21b.zip
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs into feature/pgtk
Diffstat (limited to 'src')
-rw-r--r--src/editfns.c8
-rw-r--r--src/frame.c4
-rw-r--r--src/keyboard.c6
3 files changed, 14 insertions, 4 deletions
diff --git a/src/editfns.c b/src/editfns.c
index fb20fc96550..87e743afc31 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -1697,7 +1697,11 @@ they can be in either order. */)
1697DEFUN ("buffer-string", Fbuffer_string, Sbuffer_string, 0, 0, 0, 1697DEFUN ("buffer-string", Fbuffer_string, Sbuffer_string, 0, 0, 0,
1698 doc: /* Return the contents of the current buffer as a string. 1698 doc: /* Return the contents of the current buffer as a string.
1699If narrowing is in effect, this function returns only the visible part 1699If narrowing is in effect, this function returns only the visible part
1700of the buffer. */) 1700of the buffer.
1701
1702This function copies the text properties of that part of the buffer
1703into the result string; if you don’t want the text properties,
1704use `buffer-substring-no-properties' instead. */)
1701 (void) 1705 (void)
1702{ 1706{
1703 return make_buffer_string_both (BEGV, BEGV_BYTE, ZV, ZV_BYTE, 1); 1707 return make_buffer_string_both (BEGV, BEGV_BYTE, ZV, ZV_BYTE, 1);
@@ -3134,7 +3138,7 @@ styled_format (ptrdiff_t nargs, Lisp_Object *args, bool message)
3134 char *format_start = SSDATA (args[0]); 3138 char *format_start = SSDATA (args[0]);
3135 bool multibyte_format = STRING_MULTIBYTE (args[0]); 3139 bool multibyte_format = STRING_MULTIBYTE (args[0]);
3136 ptrdiff_t formatlen = SBYTES (args[0]); 3140 ptrdiff_t formatlen = SBYTES (args[0]);
3137 bool fmt_props = string_intervals (args[0]); 3141 bool fmt_props = !!string_intervals (args[0]);
3138 3142
3139 /* Upper bound on number of format specs. Each uses at least 2 chars. */ 3143 /* Upper bound on number of format specs. Each uses at least 2 chars. */
3140 ptrdiff_t nspec_bound = SCHARS (args[0]) >> 1; 3144 ptrdiff_t nspec_bound = SCHARS (args[0]) >> 1;
diff --git a/src/frame.c b/src/frame.c
index c1ab34470b2..417a45f0b9e 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -3598,7 +3598,7 @@ check_frame_pixels (Lisp_Object size, Lisp_Object pixelwise, int item_size)
3598} 3598}
3599 3599
3600DEFUN ("set-frame-height", Fset_frame_height, Sset_frame_height, 2, 4, 3600DEFUN ("set-frame-height", Fset_frame_height, Sset_frame_height, 2, 4,
3601 "(list (selected-frame) (prefix-numeric-value current-prefix-arg))", 3601 "(set-frame-property--interactive \"Frame height: \" (frame-height))",
3602 doc: /* Set text height of frame FRAME to HEIGHT lines. 3602 doc: /* Set text height of frame FRAME to HEIGHT lines.
3603Optional third arg PRETEND non-nil means that redisplay should use 3603Optional third arg PRETEND non-nil means that redisplay should use
3604HEIGHT lines but that the idea of the actual height of the frame should 3604HEIGHT lines but that the idea of the actual height of the frame should
@@ -3623,7 +3623,7 @@ If FRAME is nil, it defaults to the selected frame. */)
3623} 3623}
3624 3624
3625DEFUN ("set-frame-width", Fset_frame_width, Sset_frame_width, 2, 4, 3625DEFUN ("set-frame-width", Fset_frame_width, Sset_frame_width, 2, 4,
3626 "(list (selected-frame) (prefix-numeric-value current-prefix-arg))", 3626 "(set-frame-property--interactive \"Frame width: \" (frame-width))",
3627 doc: /* Set text width of frame FRAME to WIDTH columns. 3627 doc: /* Set text width of frame FRAME to WIDTH columns.
3628Optional third arg PRETEND non-nil means that redisplay should use WIDTH 3628Optional third arg PRETEND non-nil means that redisplay should use WIDTH
3629columns but that the idea of the actual width of the frame should not 3629columns but that the idea of the actual width of the frame should not
diff --git a/src/keyboard.c b/src/keyboard.c
index c7765c4d6a3..9cb37c38edc 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -3614,6 +3614,12 @@ kbd_buffer_store_buffered_event (union buffered_input_event *event,
3614 case ICONIFY_EVENT: ignore_event = Qiconify_frame; break; 3614 case ICONIFY_EVENT: ignore_event = Qiconify_frame; break;
3615 case DEICONIFY_EVENT: ignore_event = Qmake_frame_visible; break; 3615 case DEICONIFY_EVENT: ignore_event = Qmake_frame_visible; break;
3616 case SELECTION_REQUEST_EVENT: ignore_event = Qselection_request; break; 3616 case SELECTION_REQUEST_EVENT: ignore_event = Qselection_request; break;
3617#ifdef USE_FILE_NOTIFY
3618 case FILE_NOTIFY_EVENT: ignore_event = Qfile_notify; break;
3619#endif
3620#ifdef HAVE_DBUS
3621 case DBUS_EVENT: ignore_event = Qdbus_event; break;
3622#endif
3617 default: ignore_event = Qnil; break; 3623 default: ignore_event = Qnil; break;
3618 } 3624 }
3619 3625