diff options
| author | Yuuki Harano | 2021-03-21 15:54:46 +0900 |
|---|---|---|
| committer | Yuuki Harano | 2021-03-21 15:54:46 +0900 |
| commit | 5d2f319eec33fea2cb29a02210952ee590b4b21b (patch) | |
| tree | 8dd6a5502f4cedcc060598ce0c8a3ef6e8688b6a /src | |
| parent | 7a7bc15242896b20c7af49f77f0e22c3d78e4d88 (diff) | |
| parent | e9e691093ab843911b0ac7a9a9188d477415db2e (diff) | |
| download | emacs-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.c | 8 | ||||
| -rw-r--r-- | src/frame.c | 4 | ||||
| -rw-r--r-- | src/keyboard.c | 6 |
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. */) | |||
| 1697 | DEFUN ("buffer-string", Fbuffer_string, Sbuffer_string, 0, 0, 0, | 1697 | DEFUN ("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. |
| 1699 | If narrowing is in effect, this function returns only the visible part | 1699 | If narrowing is in effect, this function returns only the visible part |
| 1700 | of the buffer. */) | 1700 | of the buffer. |
| 1701 | |||
| 1702 | This function copies the text properties of that part of the buffer | ||
| 1703 | into the result string; if you don’t want the text properties, | ||
| 1704 | use `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 | ||
| 3600 | DEFUN ("set-frame-height", Fset_frame_height, Sset_frame_height, 2, 4, | 3600 | DEFUN ("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. |
| 3603 | Optional third arg PRETEND non-nil means that redisplay should use | 3603 | Optional third arg PRETEND non-nil means that redisplay should use |
| 3604 | HEIGHT lines but that the idea of the actual height of the frame should | 3604 | HEIGHT 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 | ||
| 3625 | DEFUN ("set-frame-width", Fset_frame_width, Sset_frame_width, 2, 4, | 3625 | DEFUN ("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. |
| 3628 | Optional third arg PRETEND non-nil means that redisplay should use WIDTH | 3628 | Optional third arg PRETEND non-nil means that redisplay should use WIDTH |
| 3629 | columns but that the idea of the actual width of the frame should not | 3629 | columns 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 | ||