aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2025-12-08 16:19:59 +0200
committerEli Zaretskii2025-12-08 16:19:59 +0200
commitd50fde57ba2ee23bd11ba69fa52b935814bdb9ad (patch)
treeed3715a13e46df4d6a415695497b9ce446317c52 /src
parent22bf7158a5803aa98d5b580e5a00a6356343d90b (diff)
downloademacs-d50fde57ba2ee23bd11ba69fa52b935814bdb9ad.tar.gz
emacs-d50fde57ba2ee23bd11ba69fa52b935814bdb9ad.zip
; Fix commentary in xfaces.c
* src/xfaces.c (face_at_buffer_position) (face_at_string_position): Fix commentary.
Diffstat (limited to 'src')
-rw-r--r--src/xfaces.c10
1 files 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)
6872 6872
6873 ATTR_FILTER is passed merge_face_ref. 6873 ATTR_FILTER is passed merge_face_ref.
6874 6874
6875 REGION_BEG, REGION_END delimit the region, so it can be
6876 highlighted.
6877
6878 LIMIT is a position not to scan beyond. That is to limit the time 6875 LIMIT is a position not to scan beyond. That is to limit the time
6879 this function can take. 6876 this function can take.
6880 6877
@@ -6883,9 +6880,12 @@ compute_char_face (struct frame *f, int ch, Lisp_Object prop)
6883 i.e. don't merge different mouse-face values if more than one 6880 i.e. don't merge different mouse-face values if more than one
6884 source specifies it. 6881 source specifies it.
6885 6882
6886 BASE_FACE_ID, if non-negative, specifies a base face id to use 6883 BASE_FACE_ID, if non-negative, specifies a base face ID to use
6887 instead of DEFAULT_FACE_ID. 6884 instead of DEFAULT_FACE_ID.
6888 6885
6886 Set *ENDPTR to the next position where to check for face or
6887 mouse-face.
6888
6889 The face returned is suitable for displaying ASCII characters. */ 6889 The face returned is suitable for displaying ASCII characters. */
6890 6890
6891int 6891int
@@ -7085,8 +7085,6 @@ face_for_overlay_string (struct window *w, ptrdiff_t pos,
7085 If STRING is an overlay string, it comes from position BUFPOS in 7085 If STRING is an overlay string, it comes from position BUFPOS in
7086 current_buffer, otherwise BUFPOS is zero to indicate that STRING is 7086 current_buffer, otherwise BUFPOS is zero to indicate that STRING is
7087 not an overlay string. W must display the current buffer. 7087 not an overlay string. W must display the current buffer.
7088 REGION_BEG and REGION_END give the start and end positions of the
7089 region; both are -1 if no region is visible.
7090 7088
7091 BASE_FACE_ID is the id of a face to merge with. For strings coming 7089 BASE_FACE_ID is the id of a face to merge with. For strings coming
7092 from overlays or the `display' property it is the face at BUFPOS. 7090 from overlays or the `display' property it is the face at BUFPOS.