diff options
| author | Joakim Verona | 2012-03-13 08:23:14 +0100 |
|---|---|---|
| committer | Joakim Verona | 2012-03-13 08:23:14 +0100 |
| commit | 4b2cea2874f3a699ebe96349ef34fb7206cc0fa5 (patch) | |
| tree | bbd39cf660d9b79b2cff9e39ef6209af4cf9fb8b /src/buffer.c | |
| parent | 1de331c486475093aa6b75ef6c259f7164e7620c (diff) | |
| parent | 6ea7151ba66df966974060711512b49b9059566e (diff) | |
| download | emacs-4b2cea2874f3a699ebe96349ef34fb7206cc0fa5.tar.gz emacs-4b2cea2874f3a699ebe96349ef34fb7206cc0fa5.zip | |
upstream
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index 1577254d92a..1fea19b0d65 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -2864,6 +2864,12 @@ compare_overlays (const void *v1, const void *v2) | |||
| 2864 | return s1->beg < s2->beg ? -1 : 1; | 2864 | return s1->beg < s2->beg ? -1 : 1; |
| 2865 | if (s1->end != s2->end) | 2865 | if (s1->end != s2->end) |
| 2866 | return s2->end < s1->end ? -1 : 1; | 2866 | return s2->end < s1->end ? -1 : 1; |
| 2867 | /* Avoid the non-determinism of qsort by choosing an arbitrary ordering | ||
| 2868 | between "equal" overlays. The result can still change between | ||
| 2869 | invocations of Emacs, but it won't change in the middle of | ||
| 2870 | `find_field' (bug#6830). */ | ||
| 2871 | if (XHASH (s1->overlay) != XHASH (s2->overlay)) | ||
| 2872 | return XHASH (s1->overlay) < XHASH (s2->overlay) ? -1 : 1; | ||
| 2867 | return 0; | 2873 | return 0; |
| 2868 | } | 2874 | } |
| 2869 | 2875 | ||