aboutsummaryrefslogtreecommitdiffstats
path: root/src/frame.c
diff options
context:
space:
mode:
authorDaniel Colascione2012-09-17 04:07:36 -0800
committerDaniel Colascione2012-09-17 04:07:36 -0800
commit2ab329f3b5d52a39f0a45c3d9c129f1c19560142 (patch)
tree6dd6784d63e54cb18071df8e28fbdbc27d418728 /src/frame.c
parentf701ab72dd55460d23c8b029550aa4d7ecef3cfa (diff)
parentbb7dce392f6d9d5fc4b9d7de09ff920a52f07669 (diff)
downloademacs-2ab329f3b5d52a39f0a45c3d9c129f1c19560142.tar.gz
emacs-2ab329f3b5d52a39f0a45c3d9c129f1c19560142.zip
Merge from trunk
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/frame.c b/src/frame.c
index aa1508e6d28..73e46eff00f 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -24,7 +24,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
24#include <stdio.h> 24#include <stdio.h>
25#include <errno.h> 25#include <errno.h>
26#include <limits.h> 26#include <limits.h>
27#include <setjmp.h>
28 27
29#include <c-ctype.h> 28#include <c-ctype.h>
30 29
@@ -214,7 +213,7 @@ See also `frame-live-p'. */)
214 case output_ns: 213 case output_ns:
215 return Qns; 214 return Qns;
216 default: 215 default:
217 abort (); 216 emacs_abort ();
218 } 217 }
219} 218}
220 219
@@ -620,7 +619,7 @@ affects all frames on the same terminal device. */)
620#ifdef MSDOS 619#ifdef MSDOS
621 if (sf->output_method != output_msdos_raw 620 if (sf->output_method != output_msdos_raw
622 && sf->output_method != output_termcap) 621 && sf->output_method != output_termcap)
623 abort (); 622 emacs_abort ();
624#else /* not MSDOS */ 623#else /* not MSDOS */
625 624
626#ifdef WINDOWSNT /* This should work now! */ 625#ifdef WINDOWSNT /* This should work now! */
@@ -767,7 +766,7 @@ do_switch_frame (Lisp_Object frame, int track, int for_deletion, Lisp_Object nor
767 Lisp_Object focus; 766 Lisp_Object focus;
768 767
769 if (!FRAMEP (XCAR (tail))) 768 if (!FRAMEP (XCAR (tail)))
770 abort (); 769 emacs_abort ();
771 770
772 focus = FRAME_FOCUS_FRAME (XFRAME (XCAR (tail))); 771 focus = FRAME_FOCUS_FRAME (XFRAME (XCAR (tail)));
773 772
@@ -897,7 +896,7 @@ next_frame (Lisp_Object frame, Lisp_Object minibuf)
897 896
898 /* There must always be at least one frame in Vframe_list. */ 897 /* There must always be at least one frame in Vframe_list. */
899 if (! CONSP (Vframe_list)) 898 if (! CONSP (Vframe_list))
900 abort (); 899 emacs_abort ();
901 900
902 /* If this frame is dead, it won't be in Vframe_list, and we'll loop 901 /* If this frame is dead, it won't be in Vframe_list, and we'll loop
903 forever. Forestall that. */ 902 forever. Forestall that. */
@@ -975,7 +974,7 @@ prev_frame (Lisp_Object frame, Lisp_Object minibuf)
975 974
976 /* There must always be at least one frame in Vframe_list. */ 975 /* There must always be at least one frame in Vframe_list. */
977 if (! CONSP (Vframe_list)) 976 if (! CONSP (Vframe_list))
978 abort (); 977 emacs_abort ();
979 978
980 prev = Qnil; 979 prev = Qnil;
981 for (tail = Vframe_list; CONSP (tail); tail = XCDR (tail)) 980 for (tail = Vframe_list; CONSP (tail); tail = XCDR (tail))
@@ -984,7 +983,7 @@ prev_frame (Lisp_Object frame, Lisp_Object minibuf)
984 983
985 f = XCAR (tail); 984 f = XCAR (tail);
986 if (!FRAMEP (f)) 985 if (!FRAMEP (f))
987 abort (); 986 emacs_abort ();
988 987
989 if (EQ (frame, f) && !NILP (prev)) 988 if (EQ (frame, f) && !NILP (prev))
990 return prev; 989 return prev;
@@ -1299,6 +1298,11 @@ delete_frame (Lisp_Object frame, Lisp_Object force)
1299 structures can still refer to it. */ 1298 structures can still refer to it. */
1300 fset_menu_bar_vector (f, Qnil); 1299 fset_menu_bar_vector (f, Qnil);
1301 1300
1301 /* If FRAME's buffer lists contains killed
1302 buffers, this helps GC to reclaim them. */
1303 fset_buffer_list (f, Qnil);
1304 fset_buried_buffer_list (f, Qnil);
1305
1302 free_font_driver_list (f); 1306 free_font_driver_list (f);
1303 xfree (f->namebuf); 1307 xfree (f->namebuf);
1304 xfree (f->decode_mode_spec_buffer); 1308 xfree (f->decode_mode_spec_buffer);
@@ -1385,7 +1389,7 @@ delete_frame (Lisp_Object frame, Lisp_Object force)
1385 1389
1386 this = XCAR (frames); 1390 this = XCAR (frames);
1387 if (!FRAMEP (this)) 1391 if (!FRAMEP (this))
1388 abort (); 1392 emacs_abort ();
1389 f1 = XFRAME (this); 1393 f1 = XFRAME (this);
1390 1394
1391 if (kb == FRAME_KBOARD (f1)) 1395 if (kb == FRAME_KBOARD (f1))
@@ -1421,7 +1425,7 @@ delete_frame (Lisp_Object frame, Lisp_Object force)
1421 1425
1422 this = XCAR (frames); 1426 this = XCAR (frames);
1423 if (!FRAMEP (this)) 1427 if (!FRAMEP (this))
1424 abort (); 1428 emacs_abort ();
1425 f1 = XFRAME (this); 1429 f1 = XFRAME (this);
1426 1430
1427 /* Consider only frames on the same kboard 1431 /* Consider only frames on the same kboard
@@ -1447,7 +1451,7 @@ delete_frame (Lisp_Object frame, Lisp_Object force)
1447 that is prohibited at the top; you can't delete surrogate 1451 that is prohibited at the top; you can't delete surrogate
1448 minibuffer frames. */ 1452 minibuffer frames. */
1449 if (NILP (frame_with_minibuf)) 1453 if (NILP (frame_with_minibuf))
1450 abort (); 1454 emacs_abort ();
1451 1455
1452 kset_default_minibuffer_frame (kb, frame_with_minibuf); 1456 kset_default_minibuffer_frame (kb, frame_with_minibuf);
1453 } 1457 }
@@ -2108,7 +2112,7 @@ store_frame_param (struct frame *f, Lisp_Object prop, Lisp_Object val)
2108 swap_in_global_binding (sym); 2112 swap_in_global_binding (sym);
2109 break; 2113 break;
2110 } 2114 }
2111 default: abort (); 2115 default: emacs_abort ();
2112 } 2116 }
2113 } 2117 }
2114 2118
@@ -3835,7 +3839,7 @@ x_get_arg (Display_Info *dpyinfo, Lisp_Object alist, Lisp_Object param,
3835 } 3839 }
3836 3840
3837 default: 3841 default:
3838 abort (); 3842 emacs_abort ();
3839 } 3843 }
3840 } 3844 }
3841 else 3845 else