aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/buffer.c b/src/buffer.c
index e6968e88d01..a1142479d04 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -3328,17 +3328,18 @@ record_overlay_string (struct sortstrlist *ssl, Lisp_Object str,
3328 } 3328 }
3329} 3329}
3330 3330
3331/* Return the concatenation of the strings associated with overlays that 3331/* Concatenate the strings associated with overlays that begin or end
3332 begin or end at POS, ignoring overlays that are specific to a window 3332 at POS, ignoring overlays that are specific to windows other than W.
3333 other than W. The strings are concatenated in the appropriate order: 3333 The strings are concatenated in the appropriate order: shorter
3334 shorter overlays nest inside longer ones, and higher priority inside 3334 overlays nest inside longer ones, and higher priority inside lower.
3335 lower. Normally all of the after-strings come first, but zero-sized 3335 Normally all of the after-strings come first, but zero-sized
3336 overlays have their after-strings ride along with the before-strings 3336 overlays have their after-strings ride along with the
3337 because it would look strange to print them inside-out. 3337 before-strings because it would look strange to print them
3338 3338 inside-out.
3339 Returns the string length, and stores the contents indirectly through 3339
3340 PSTR, if that variable is non-null. The string may be overwritten by 3340 Returns the concatenated string's length, and return the pointer to
3341 subsequent calls. */ 3341 that string via PSTR, if that variable is non-NULL. The storage of
3342 the concatenated strings may be overwritten by subsequent calls. */
3342 3343
3343ptrdiff_t 3344ptrdiff_t
3344overlay_strings (ptrdiff_t pos, struct window *w, unsigned char **pstr) 3345overlay_strings (ptrdiff_t pos, struct window *w, unsigned char **pstr)