[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 6f10a3f: Add assertion in adjust_point_for_property
From: |
Nicolas Richard |
Subject: |
[Emacs-diffs] master 6f10a3f: Add assertion in adjust_point_for_property |
Date: |
Sat, 06 Jun 2015 11:23:43 +0000 |
branch: master
commit 6f10a3f90fb94506031712140246f1a5dbee71eb
Author: Nicolas Richard <address@hidden>
Commit: Nicolas Richard <address@hidden>
Add assertion in adjust_point_for_property
* src/keyboard.c (adjust_point_for_property): Add eassert for
current buffer being shown in selected window.
---
src/keyboard.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/keyboard.c b/src/keyboard.c
index bedd10b..23f7ce7 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1687,6 +1687,8 @@ adjust_point_for_property (ptrdiff_t last_pt, bool
modified)
bool check_composition = ! modified, check_display = 1, check_invisible = 1;
ptrdiff_t orig_pt = PT;
+ eassert (XBUFFER (XWINDOW (selected_window)->contents) == current_buffer);
+
/* FIXME: cycling is probably not necessary because these properties
can't be usefully combined anyway. */
while (check_composition || check_display || check_invisible)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 6f10a3f: Add assertion in adjust_point_for_property,
Nicolas Richard <=