diff options
Diffstat (limited to 'src/frame.c')
| -rw-r--r-- | src/frame.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c index 94ec9fbdc7d..09c0e79bdef 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -1608,6 +1608,8 @@ next_frame (Lisp_Object frame, Lisp_Object minibuf) | |||
| 1608 | Lisp_Object f, tail; | 1608 | Lisp_Object f, tail; |
| 1609 | int passed = 0; | 1609 | int passed = 0; |
| 1610 | 1610 | ||
| 1611 | eassume (CONSP (Vframe_list)); | ||
| 1612 | |||
| 1611 | while (passed < 2) | 1613 | while (passed < 2) |
| 1612 | FOR_EACH_FRAME (tail, f) | 1614 | FOR_EACH_FRAME (tail, f) |
| 1613 | { | 1615 | { |
| @@ -1630,6 +1632,8 @@ prev_frame (Lisp_Object frame, Lisp_Object minibuf) | |||
| 1630 | { | 1632 | { |
| 1631 | Lisp_Object f, tail, prev = Qnil; | 1633 | Lisp_Object f, tail, prev = Qnil; |
| 1632 | 1634 | ||
| 1635 | eassume (CONSP (Vframe_list)); | ||
| 1636 | |||
| 1633 | FOR_EACH_FRAME (tail, f) | 1637 | FOR_EACH_FRAME (tail, f) |
| 1634 | { | 1638 | { |
| 1635 | if (EQ (frame, f) && !NILP (prev)) | 1639 | if (EQ (frame, f) && !NILP (prev)) |
| @@ -1915,6 +1919,7 @@ delete_frame (Lisp_Object frame, Lisp_Object force) | |||
| 1915 | if (f == sf) | 1919 | if (f == sf) |
| 1916 | { | 1920 | { |
| 1917 | Lisp_Object tail; | 1921 | Lisp_Object tail; |
| 1922 | eassume (CONSP (Vframe_list)); | ||
| 1918 | 1923 | ||
| 1919 | /* Look for another visible frame on the same terminal. | 1924 | /* Look for another visible frame on the same terminal. |
| 1920 | Do not call next_frame here because it may loop forever. | 1925 | Do not call next_frame here because it may loop forever. |