1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-28 10:56:36 +00:00

; Fix typos in commentary

* src/xdisp.c (windows_or_buffers_changed, update_mode_lines)
(get_phys_cursor_geometry, display_echo_area_1)
(resize_mini_window_1):
* src/dispextern.h (struct it): Fix typos in commentary.
This commit is contained in:
Charles A. Roelli 2018-08-08 21:26:33 +02:00
parent 5025fb617d
commit 7eef590870
2 changed files with 14 additions and 14 deletions

View File

@ -2482,7 +2482,7 @@ struct it
If `what' is anything else, these two are undefined (will If `what' is anything else, these two are undefined (will
probably hold values for the last IT_CHARACTER or IT_COMPOSITION probably hold values for the last IT_CHARACTER or IT_COMPOSITION
traversed by the iterator. traversed by the iterator).
The values are updated by get_next_display_element, so they are The values are updated by get_next_display_element, so they are
out of sync with the value returned by IT_CHARPOS between the out of sync with the value returned by IT_CHARPOS between the

View File

@ -467,12 +467,12 @@ static bool message_enable_multibyte;
looking for those `redisplay' bits (actually, there might be some such bits looking for those `redisplay' bits (actually, there might be some such bits
set, but then only on objects which aren't displayed anyway). set, but then only on objects which aren't displayed anyway).
OTOH if it's non-zero we wil have to loop through all windows and then check OTOH if it's non-zero we will have to loop through all windows and then
the `redisplay' bit of the corresponding window, frame, and buffer, in order check the `redisplay' bit of the corresponding window, frame, and buffer, in
to decide whether that window needs attention or not. Note that we can't order to decide whether that window needs attention or not. Note that we
just look at the frame's redisplay bit to decide that the whole frame can be can't just look at the frame's redisplay bit to decide that the whole frame
skipped, since even if the frame's redisplay bit is unset, some of its can be skipped, since even if the frame's redisplay bit is unset, some of
windows's redisplay bits may be set. its windows's redisplay bits may be set.
Mostly for historical reasons, windows_or_buffers_changed can also take Mostly for historical reasons, windows_or_buffers_changed can also take
other non-zero values. In that case, the precise value doesn't matter (it other non-zero values. In that case, the precise value doesn't matter (it
@ -483,7 +483,7 @@ static bool message_enable_multibyte;
int windows_or_buffers_changed; int windows_or_buffers_changed;
/* Nonzero if we should redraw the mode lines on the next redisplay. /* Nonzero if we should redraw the mode lines on the next redisplay.
Similarly to `windows_or_buffers_changed', If it has value REDISPLAY_SOME, Similarly to `windows_or_buffers_changed', if it has value REDISPLAY_SOME,
then only redisplay the mode lines in those buffers/windows/frames where the then only redisplay the mode lines in those buffers/windows/frames where the
`redisplay' bit has been set. `redisplay' bit has been set.
For any other value, redisplay all mode lines (the number used is then only For any other value, redisplay all mode lines (the number used is then only
@ -2281,9 +2281,9 @@ get_phys_cursor_geometry (struct window *w, struct glyph_row *row,
int x, y, wd, h, h0, y0, ascent; int x, y, wd, h, h0, y0, ascent;
/* Compute the width of the rectangle to draw. If on a stretch /* Compute the width of the rectangle to draw. If on a stretch
glyph, and `x-stretch-block-cursor' is nil, don't draw a glyph, and `x-stretch-cursor' is nil, don't draw a rectangle
rectangle as wide as the glyph, but use a canonical character as wide as the glyph, but use a canonical character width
width instead. */ instead. */
wd = glyph->pixel_width; wd = glyph->pixel_width;
x = w->phys_cursor.x; x = w->phys_cursor.x;
@ -11148,7 +11148,7 @@ display_echo_area (struct window *w)
/* Helper for display_echo_area. Display the current buffer which /* Helper for display_echo_area. Display the current buffer which
contains the current echo area message in window W, a mini-window, contains the current echo area message in window W, a mini-window,
a pointer to which is passed in A1. A2..A4 are currently not used. a pointer to which is passed in A1. A2 is currently not used.
Change the height of W so that all of the message is displayed. Change the height of W so that all of the message is displayed.
Value is true if height of W was changed. */ Value is true if height of W was changed. */
@ -11209,8 +11209,8 @@ resize_echo_area_exactly (void)
/* Callback function for with_echo_area_buffer, when used from /* Callback function for with_echo_area_buffer, when used from
resize_echo_area_exactly. A1 contains a pointer to the window to resize_echo_area_exactly. A1 contains a pointer to the window to
resize, EXACTLY non-nil means resize the mini-window exactly to the resize, EXACTLY non-nil means resize the mini-window exactly to the
size of the text displayed. A3 and A4 are not used. Value is what size of the text displayed. Value is what resize_mini_window
resize_mini_window returns. */ returns. */
static bool static bool
resize_mini_window_1 (ptrdiff_t a1, Lisp_Object exactly) resize_mini_window_1 (ptrdiff_t a1, Lisp_Object exactly)