diff options
| author | Eli Zaretskii | 2012-10-18 20:19:55 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-10-18 20:19:55 +0200 |
| commit | 81f8ee3ff0b25c479c6a8095d32d762610009e29 (patch) | |
| tree | f5e9719730673fad05308d6d18923eb8afe5e73a /src | |
| parent | 9e1821d3a2350a87de85d19208a63cfcd27d7b50 (diff) | |
| parent | 14145a1e84e9c84af22d66ed272bf1b28f597e24 (diff) | |
| download | emacs-81f8ee3ff0b25c479c6a8095d32d762610009e29.tar.gz emacs-81f8ee3ff0b25c479c6a8095d32d762610009e29.zip | |
Merge from trunk.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 23 | ||||
| -rw-r--r-- | src/alloc.c | 4 | ||||
| -rw-r--r-- | src/window.c | 35 |
3 files changed, 25 insertions, 37 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 007a73f7988..65f1c086260 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,10 +1,23 @@ | |||
| 1 | 2012-10-18 Daniel Colascione <dancol@dancol.org> | ||
| 2 | |||
| 3 | * alloc.c (NSTATICS): Increase from 0x650 to 0x1000 | ||
| 4 | (staticpro): If we run out of staticpro slots, die with an | ||
| 5 | informative error instead of just calling emacs_abort. | ||
| 6 | |||
| 7 | 2012-10-18 Martin Rudalics <rudalics@gmx.at> | ||
| 8 | |||
| 9 | Fix two flaws reported by Dmitry Antipov. | ||
| 10 | * window.c (Ftemp_output_buffer_show): Remove. | ||
| 11 | (Fwindow_vscroll, Fset_window_vscroll): Use decode_live_window. | ||
| 12 | (syms_of_window): Remove defsubr for Stemp_output_buffer_show. | ||
| 13 | |||
| 1 | 2012-10-17 Eli Zaretskii <eliz@gnu.org> | 14 | 2012-10-17 Eli Zaretskii <eliz@gnu.org> |
| 2 | 15 | ||
| 3 | * makefile.w32-in ($(BLD)/w32.$(O)): | 16 | * makefile.w32-in ($(BLD)/w32.$(O)): |
| 4 | ($(BLD)/vm-limit.$(O)): | 17 | ($(BLD)/vm-limit.$(O)): |
| 5 | ($(BLD)/term.$(O)): | 18 | ($(BLD)/term.$(O)): |
| 6 | ($(BLD)/unexw32.$(O)): | 19 | ($(BLD)/unexw32.$(O)): |
| 7 | ($(BLD)/fileio.$(O)): | 20 | ($(BLD)/fileio.$(O)): |
| 8 | ($(BLD)/dispnew.$(O)): Update dependencies. | 21 | ($(BLD)/dispnew.$(O)): Update dependencies. |
| 9 | 22 | ||
| 10 | * w32term.h (w32_initialize_display_info, initialize_w32_display): | 23 | * w32term.h (w32_initialize_display_info, initialize_w32_display): |
diff --git a/src/alloc.c b/src/alloc.c index f2dd7c8cee7..08dc26784cc 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -376,7 +376,7 @@ struct gcpro *gcprolist; | |||
| 376 | /* Addresses of staticpro'd variables. Initialize it to a nonzero | 376 | /* Addresses of staticpro'd variables. Initialize it to a nonzero |
| 377 | value; otherwise some compilers put it into BSS. */ | 377 | value; otherwise some compilers put it into BSS. */ |
| 378 | 378 | ||
| 379 | #define NSTATICS 0x660 | 379 | #define NSTATICS 0x1000 |
| 380 | static Lisp_Object *staticvec[NSTATICS] = {&Vpurify_flag}; | 380 | static Lisp_Object *staticvec[NSTATICS] = {&Vpurify_flag}; |
| 381 | 381 | ||
| 382 | /* Index of next unused slot in staticvec. */ | 382 | /* Index of next unused slot in staticvec. */ |
| @@ -5030,7 +5030,7 @@ staticpro (Lisp_Object *varaddress) | |||
| 5030 | { | 5030 | { |
| 5031 | staticvec[staticidx++] = varaddress; | 5031 | staticvec[staticidx++] = varaddress; |
| 5032 | if (staticidx >= NSTATICS) | 5032 | if (staticidx >= NSTATICS) |
| 5033 | emacs_abort (); | 5033 | fatal ("NSTATICS too small. Try increasing and recompiling Emacs."); |
| 5034 | } | 5034 | } |
| 5035 | 5035 | ||
| 5036 | 5036 | ||
diff --git a/src/window.c b/src/window.c index b4fee61cac8..dfcabda59b9 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -3339,7 +3339,7 @@ displaying that buffer. */) | |||
| 3339 | return Qnil; | 3339 | return Qnil; |
| 3340 | } | 3340 | } |
| 3341 | 3341 | ||
| 3342 | 3342 | /* Obsolete since 24.3. */ | |
| 3343 | void | 3343 | void |
| 3344 | temp_output_buffer_show (register Lisp_Object buf) | 3344 | temp_output_buffer_show (register Lisp_Object buf) |
| 3345 | { | 3345 | { |
| @@ -3392,16 +3392,6 @@ temp_output_buffer_show (register Lisp_Object buf) | |||
| 3392 | } | 3392 | } |
| 3393 | } | 3393 | } |
| 3394 | } | 3394 | } |
| 3395 | |||
| 3396 | DEFUN ("internal-temp-output-buffer-show", | ||
| 3397 | Ftemp_output_buffer_show, Stemp_output_buffer_show, | ||
| 3398 | 1, 1, 0, | ||
| 3399 | doc: /* Internal function for `with-output-to-temp-buffer'. */) | ||
| 3400 | (Lisp_Object buf) | ||
| 3401 | { | ||
| 3402 | temp_output_buffer_show (buf); | ||
| 3403 | return Qnil; | ||
| 3404 | } | ||
| 3405 | 3395 | ||
| 3406 | /* Make new window, have it replace WINDOW in window-tree, and make | 3396 | /* Make new window, have it replace WINDOW in window-tree, and make |
| 3407 | WINDOW its only vertical child (HORFLAG 1 means make WINDOW its only | 3397 | WINDOW its only vertical child (HORFLAG 1 means make WINDOW its only |
| @@ -6423,15 +6413,8 @@ optional second arg PIXELS-P means value is measured in pixels. */) | |||
| 6423 | (Lisp_Object window, Lisp_Object pixels_p) | 6413 | (Lisp_Object window, Lisp_Object pixels_p) |
| 6424 | { | 6414 | { |
| 6425 | Lisp_Object result; | 6415 | Lisp_Object result; |
| 6426 | struct frame *f; | 6416 | struct window *w = decode_live_window (window); |
| 6427 | struct window *w; | 6417 | struct frame *f = XFRAME (w->frame); |
| 6428 | |||
| 6429 | if (NILP (window)) | ||
| 6430 | window = selected_window; | ||
| 6431 | else | ||
| 6432 | CHECK_WINDOW (window); | ||
| 6433 | w = XWINDOW (window); | ||
| 6434 | f = XFRAME (w->frame); | ||
| 6435 | 6418 | ||
| 6436 | if (FRAME_WINDOW_P (f)) | 6419 | if (FRAME_WINDOW_P (f)) |
| 6437 | result = (NILP (pixels_p) | 6420 | result = (NILP (pixels_p) |
| @@ -6455,18 +6438,11 @@ result of this rounding. | |||
| 6455 | If PIXELS-P is non-nil, the return value is VSCROLL. */) | 6438 | If PIXELS-P is non-nil, the return value is VSCROLL. */) |
| 6456 | (Lisp_Object window, Lisp_Object vscroll, Lisp_Object pixels_p) | 6439 | (Lisp_Object window, Lisp_Object vscroll, Lisp_Object pixels_p) |
| 6457 | { | 6440 | { |
| 6458 | struct window *w; | 6441 | struct window *w = decode_live_window (window); |
| 6459 | struct frame *f; | 6442 | struct frame *f = XFRAME (w->frame); |
| 6460 | 6443 | ||
| 6461 | if (NILP (window)) | ||
| 6462 | window = selected_window; | ||
| 6463 | else | ||
| 6464 | CHECK_WINDOW (window); | ||
| 6465 | CHECK_NUMBER_OR_FLOAT (vscroll); | 6444 | CHECK_NUMBER_OR_FLOAT (vscroll); |
| 6466 | 6445 | ||
| 6467 | w = XWINDOW (window); | ||
| 6468 | f = XFRAME (w->frame); | ||
| 6469 | |||
| 6470 | if (FRAME_WINDOW_P (f)) | 6446 | if (FRAME_WINDOW_P (f)) |
| 6471 | { | 6447 | { |
| 6472 | int old_dy = w->vscroll; | 6448 | int old_dy = w->vscroll; |
| @@ -6923,7 +6899,6 @@ respectively are not installed by `window-state-put'. */); | |||
| 6923 | defsubr (&Srun_window_configuration_change_hook); | 6899 | defsubr (&Srun_window_configuration_change_hook); |
| 6924 | defsubr (&Sselect_window); | 6900 | defsubr (&Sselect_window); |
| 6925 | defsubr (&Sforce_window_update); | 6901 | defsubr (&Sforce_window_update); |
| 6926 | defsubr (&Stemp_output_buffer_show); | ||
| 6927 | defsubr (&Ssplit_window_internal); | 6902 | defsubr (&Ssplit_window_internal); |
| 6928 | defsubr (&Sscroll_up); | 6903 | defsubr (&Sscroll_up); |
| 6929 | defsubr (&Sscroll_down); | 6904 | defsubr (&Sscroll_down); |