From d50fde57ba2ee23bd11ba69fa52b935814bdb9ad Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 8 Dec 2025 16:19:59 +0200 Subject: [PATCH] ; Fix commentary in xfaces.c * src/xfaces.c (face_at_buffer_position) (face_at_string_position): Fix commentary. --- src/xfaces.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/xfaces.c b/src/xfaces.c index b0052cdd455..9a3c95436a3 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -6872,9 +6872,6 @@ compute_char_face (struct frame *f, int ch, Lisp_Object prop) ATTR_FILTER is passed merge_face_ref. - REGION_BEG, REGION_END delimit the region, so it can be - highlighted. - LIMIT is a position not to scan beyond. That is to limit the time this function can take. @@ -6883,9 +6880,12 @@ compute_char_face (struct frame *f, int ch, Lisp_Object prop) i.e. don't merge different mouse-face values if more than one source specifies it. - BASE_FACE_ID, if non-negative, specifies a base face id to use + BASE_FACE_ID, if non-negative, specifies a base face ID to use instead of DEFAULT_FACE_ID. + Set *ENDPTR to the next position where to check for face or + mouse-face. + The face returned is suitable for displaying ASCII characters. */ int @@ -7085,8 +7085,6 @@ face_for_overlay_string (struct window *w, ptrdiff_t pos, If STRING is an overlay string, it comes from position BUFPOS in current_buffer, otherwise BUFPOS is zero to indicate that STRING is not an overlay string. W must display the current buffer. - REGION_BEG and REGION_END give the start and end positions of the - region; both are -1 if no region is visible. BASE_FACE_ID is the id of a face to merge with. For strings coming from overlays or the `display' property it is the face at BUFPOS.