aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Colascione2014-01-13 15:41:43 -0800
committerDaniel Colascione2014-01-13 15:41:43 -0800
commit1b49bd5d72d012cd349c29822fd6985bb4e5a158 (patch)
treea01e23e78d0b04eb7092c181419607d6697f5527 /src
parent7199b6d4f8e8133459e45985f1eb49b25038d317 (diff)
parent7d29a37a5bcd753536311b0aa87bdbb317eed42b (diff)
downloademacs-1b49bd5d72d012cd349c29822fd6985bb4e5a158.tar.gz
emacs-1b49bd5d72d012cd349c29822fd6985bb4e5a158.zip
Correctly handle reaching the end of the interval tree. (Bug#15344)
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/textprop.c13
2 files changed, 18 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 950d4a34b12..53b8b747118 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12014-01-13 Daniel Colascione <dancol@dancol.org>
2
3 * textprop.c (Fremove_list_of_text_properties): Correctly
4 handle reaching the end of the interval tree. (Bug#15344)
5
12014-01-13 Martin Rudalics <rudalics@gmx.at> 62014-01-13 Martin Rudalics <rudalics@gmx.at>
2 7
3 * xdisp.c (resize_mini_window): Round height to a multiple of 8 * xdisp.c (resize_mini_window): Round height to a multiple of
diff --git a/src/textprop.c b/src/textprop.c
index 3fff8c42b33..67f517182ea 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -1741,6 +1741,19 @@ Return t if any property was actually removed, nil otherwise. */)
1741 } 1741 }
1742 len -= LENGTH (i); 1742 len -= LENGTH (i);
1743 i = next_interval (i); 1743 i = next_interval (i);
1744 if(!i)
1745 {
1746 if (modified)
1747 {
1748 if (BUFFERP (object))
1749 signal_after_change (XINT (start),
1750 XINT (end) - XINT (start),
1751 XINT (end) - XINT (start));
1752 return Qt;
1753 }
1754 else
1755 return Qnil;
1756 }
1744 } 1757 }
1745} 1758}
1746 1759