diff options
| author | Eli Zaretskii | 2013-09-22 10:13:14 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-09-22 10:13:14 +0300 |
| commit | 76880d884d87d0bc674249e292ccda70f31cca0e (patch) | |
| tree | d11641e939732ac9c621fbf2d26a7ff72bb77dc9 /src | |
| parent | c6cfd9101e70010bcd4ba6831b0d42ebc84728fe (diff) | |
| download | emacs-76880d884d87d0bc674249e292ccda70f31cca0e.tar.gz emacs-76880d884d87d0bc674249e292ccda70f31cca0e.zip | |
Fix bug #15365 with aborts in try_window_id.
src/xdisp.c (try_window_id): Don't abort if cursor row could not be
found (which can legitimately happen when the glyph row at the
window start is disabled in the current_matrix.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/xdisp.c | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 084ae983b6f..1442650d432 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-09-22 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * xdisp.c (try_window_id): Don't abort if cursor row could not be | ||
| 4 | found (which can legitimately happen when the glyph row at the | ||
| 5 | window start is disabled in the current_matrix. (Bug#15365) | ||
| 6 | |||
| 1 | 2013-09-22 Paul Eggert <eggert@cs.ucla.edu> | 7 | 2013-09-22 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 8 | ||
| 3 | Fix syntax.h bug introduced by recent INLINE change. | 9 | Fix syntax.h bug introduced by recent INLINE change. |
diff --git a/src/xdisp.c b/src/xdisp.c index c4f7b205119..bfd86758a1e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -17291,8 +17291,6 @@ try_window_id (struct window *w) | |||
| 17291 | row = row_containing_pos (w, PT, r0, NULL, 0); | 17291 | row = row_containing_pos (w, PT, r0, NULL, 0); |
| 17292 | if (row) | 17292 | if (row) |
| 17293 | set_cursor_from_row (w, row, current_matrix, 0, 0, 0, 0); | 17293 | set_cursor_from_row (w, row, current_matrix, 0, 0, 0, 0); |
| 17294 | else | ||
| 17295 | emacs_abort (); | ||
| 17296 | return 1; | 17294 | return 1; |
| 17297 | } | 17295 | } |
| 17298 | } | 17296 | } |
| @@ -17333,8 +17331,6 @@ try_window_id (struct window *w) | |||
| 17333 | row = row_containing_pos (w, PT, r0, NULL, 0); | 17331 | row = row_containing_pos (w, PT, r0, NULL, 0); |
| 17334 | if (row) | 17332 | if (row) |
| 17335 | set_cursor_from_row (w, row, current_matrix, 0, 0, 0, 0); | 17333 | set_cursor_from_row (w, row, current_matrix, 0, 0, 0, 0); |
| 17336 | else | ||
| 17337 | emacs_abort (); | ||
| 17338 | return 2; | 17334 | return 2; |
| 17339 | } | 17335 | } |
| 17340 | } | 17336 | } |