aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index bc28ac7d1aa..76670b89545 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -4179,6 +4179,12 @@ If SORTED is non-nil, then sort them by decreasing priority. */)
4179 /* Make a list of them all. */ 4179 /* Make a list of them all. */
4180 result = Flist (noverlays, overlay_vec); 4180 result = Flist (noverlays, overlay_vec);
4181 4181
4182 /* The doc string says the list should be in decreasing order of
4183 priority, so we reverse the list, because sort_overlays sorts in
4184 the increasing order of priority. */
4185 if (!NILP (sorted))
4186 result = Fnreverse (result);
4187
4182 xfree (overlay_vec); 4188 xfree (overlay_vec);
4183 return result; 4189 return result;
4184} 4190}