diff options
| author | jave | 2015-01-05 14:12:26 +0100 |
|---|---|---|
| committer | jave | 2015-01-05 14:12:26 +0100 |
| commit | 5a0d5b71d55c73573c331e1e1a1dde9f206966e1 (patch) | |
| tree | abe791ef1dd1838121b43ab63aea630bd439a842 /src | |
| parent | 9681f300de4dddb250770d18dc417ec0027beb94 (diff) | |
| parent | c477f2073018ed4deb3810059c1032c1709164fa (diff) | |
| download | emacs-5a0d5b71d55c73573c331e1e1a1dde9f206966e1.tar.gz emacs-5a0d5b71d55c73573c331e1e1a1dde9f206966e1.zip | |
Merge branch 'master' into xwidget
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 61 | ||||
| -rw-r--r-- | src/frame.c | 17 | ||||
| -rw-r--r-- | src/window.c | 9 |
3 files changed, 67 insertions, 20 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b503a40640f..8cf269680de 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,14 @@ | |||
| 1 | 2015-01-04 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2015-01-04 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | 'temacs -nw' should not call missing functions | ||
| 4 | Without this patch, "temacs -nw" fails with the diagnostic | ||
| 5 | "emacs: Symbol's function definition is void: frame-windows-min-size" | ||
| 6 | and messes up the tty's state. | ||
| 7 | * frame.c (Fframe_windows_min_size): New placeholder function. | ||
| 8 | (syms_of_frame): Define it. | ||
| 9 | * window.c (Fwindow__sanitize_window_sizes): New placeholder. | ||
| 10 | (syms_of_window): Define it. | ||
| 11 | |||
| 3 | Less 'make' chatter for lisp dir | 12 | Less 'make' chatter for lisp dir |
| 4 | * Makefile.in (%.elc): Adjust to compile-onefile change in | 13 | * Makefile.in (%.elc): Adjust to compile-onefile change in |
| 5 | ../lisp/Makefile.in. | 14 | ../lisp/Makefile.in. |
| @@ -188,6 +197,24 @@ | |||
| 188 | (x_session_initialize, Fhandle_save_session): | 197 | (x_session_initialize, Fhandle_save_session): |
| 189 | Prefer NILP (x) to EQ (x, Qnil). | 198 | Prefer NILP (x) to EQ (x, Qnil). |
| 190 | 199 | ||
| 200 | 2014-12-25 Paul Eggert <eggert@cs.ucla.edu> | ||
| 201 | |||
| 202 | * callproc.c (child_setup): | ||
| 203 | * dbusbind.c (xd_signature_cat): | ||
| 204 | * doc.c (get_doc_string, Fsnarf_documentation): | ||
| 205 | * editfns.c (Fuser_full_name): | ||
| 206 | * frame.c (xrdb_get_resource): | ||
| 207 | * gtkutil.c (xg_get_file_with_chooser): | ||
| 208 | * tparam.c (tparam1): | ||
| 209 | * xfns.c (xic_create_fontsetname): | ||
| 210 | * xrdb.c (gethomedir, get_user_db, get_environ_db): | ||
| 211 | * xsmfns.c (smc_save_yourself_CB): | ||
| 212 | Rewrite to avoid the need for strcat, typically by using stpcpy | ||
| 213 | and/or lispstpcpy. strcat tends to be part of O(N**2) algorithms. | ||
| 214 | * doc.c (sibling_etc): | ||
| 215 | * xrdb.c (xdefaults): | ||
| 216 | Now a top-level static constant. | ||
| 217 | |||
| 191 | 2014-12-23 Didier Verna <didier@didierverna.net> (tiny change). | 218 | 2014-12-23 Didier Verna <didier@didierverna.net> (tiny change). |
| 192 | 219 | ||
| 193 | * nsselect.m (Fns_selection_owner_p): Return a Lisp boolean, not a | 220 | * nsselect.m (Fns_selection_owner_p): Return a Lisp boolean, not a |
| @@ -595,7 +622,7 @@ | |||
| 595 | 2014-11-29 Paul Eggert <eggert@cs.ucla.edu> | 622 | 2014-11-29 Paul Eggert <eggert@cs.ucla.edu> |
| 596 | 623 | ||
| 597 | Improve clarity of USE_LSB_TAG definition. | 624 | Improve clarity of USE_LSB_TAG definition. |
| 598 | Problem reported by Lee Duhem. Suggestion by Andreas Schwab in: | 625 | Reported by Lee Duhem. Suggested by Andreas Schwab in: |
| 599 | http://lists.gnu.org/archive/html/emacs-devel/2014-11/msg02222.html | 626 | http://lists.gnu.org/archive/html/emacs-devel/2014-11/msg02222.html |
| 600 | * lisp.h (USE_LSB_TAG): Define in terms of the (simpler) | 627 | * lisp.h (USE_LSB_TAG): Define in terms of the (simpler) |
| 601 | VAL_MAX / 2 rather than in terms of the (more complicated) | 628 | VAL_MAX / 2 rather than in terms of the (more complicated) |
| @@ -621,7 +648,7 @@ | |||
| 621 | 648 | ||
| 622 | 2014-11-27 Oscar Fuentes <ofv@wanadoo.es> | 649 | 2014-11-27 Oscar Fuentes <ofv@wanadoo.es> |
| 623 | 650 | ||
| 624 | * src/w32.c, src/w32heap.c, src/w32term.c: | 651 | * w32.c, w32heap.c, w32term.c: |
| 625 | Use MINGW_W64 instead of _W64. | 652 | Use MINGW_W64 instead of _W64. |
| 626 | 653 | ||
| 627 | 2014-11-27 Stefan Monnier <monnier@iro.umontreal.ca> | 654 | 2014-11-27 Stefan Monnier <monnier@iro.umontreal.ca> |
| @@ -1091,7 +1118,7 @@ | |||
| 1091 | 1118 | ||
| 1092 | 2014-10-25 Noam Postavsky <npostavs@users.sourceforget.net> | 1119 | 2014-10-25 Noam Postavsky <npostavs@users.sourceforget.net> |
| 1093 | 1120 | ||
| 1094 | * src/w32proc.c (create_child): If calling a quoted batch file, | 1121 | * w32proc.c (create_child): If calling a quoted batch file, |
| 1095 | pass NULL for exe. (Bug#18745) | 1122 | pass NULL for exe. (Bug#18745) |
| 1096 | 1123 | ||
| 1097 | 2014-10-24 Eli Zaretskii <eliz@gnu.org> | 1124 | 2014-10-24 Eli Zaretskii <eliz@gnu.org> |
| @@ -1510,7 +1537,7 @@ | |||
| 1510 | On x86 platforms this works around GCC bug 63495 | 1537 | On x86 platforms this works around GCC bug 63495 |
| 1511 | <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63495>, | 1538 | <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63495>, |
| 1512 | and more generally should fix a portability problem in Emacs. | 1539 | and more generally should fix a portability problem in Emacs. |
| 1513 | Problem reported by Stefan Monnier in: | 1540 | Reported by Stefan Monnier in: |
| 1514 | http://lists.gnu.org/archive/html/emacs-devel/2014-10/msg00261.html | 1541 | http://lists.gnu.org/archive/html/emacs-devel/2014-10/msg00261.html |
| 1515 | 1542 | ||
| 1516 | 2014-10-08 Leo Liu <sdl.web@gmail.com> | 1543 | 2014-10-08 Leo Liu <sdl.web@gmail.com> |
| @@ -2026,7 +2053,7 @@ | |||
| 2026 | 2014-09-23 Paul Eggert <eggert@cs.ucla.edu> | 2053 | 2014-09-23 Paul Eggert <eggert@cs.ucla.edu> |
| 2027 | 2054 | ||
| 2028 | Fix SAFE_ALLOCA to not exhaust the stack when in a loop. | 2055 | Fix SAFE_ALLOCA to not exhaust the stack when in a loop. |
| 2029 | Problem reported by Dmitry Antipov in thread leading to: | 2056 | Reported by Dmitry Antipov in thread leading to: |
| 2030 | http://lists.gnu.org/archive/html/emacs-devel/2014-09/msg00713.html | 2057 | http://lists.gnu.org/archive/html/emacs-devel/2014-09/msg00713.html |
| 2031 | This patch fixes only SAFE_ALLOCA, SAFE_NALLOCA, and SAFE_ALLOCA_LISP; | 2058 | This patch fixes only SAFE_ALLOCA, SAFE_NALLOCA, and SAFE_ALLOCA_LISP; |
| 2032 | the experimental local_* macros enabled by USE_LOCAL_ALLOCATORS | 2059 | the experimental local_* macros enabled by USE_LOCAL_ALLOCATORS |
| @@ -2359,7 +2386,7 @@ | |||
| 2359 | 2014-09-10 Paul Eggert <eggert@cs.ucla.edu> | 2386 | 2014-09-10 Paul Eggert <eggert@cs.ucla.edu> |
| 2360 | 2387 | ||
| 2361 | Simplify lisp.h by removing the __COUNTER__ business. | 2388 | Simplify lisp.h by removing the __COUNTER__ business. |
| 2362 | Problem reported by Dmitry Antipov in: | 2389 | Reported by Dmitry Antipov in: |
| 2363 | http://lists.gnu.org/archive/html/emacs-devel/2014-09/msg00220.html | 2390 | http://lists.gnu.org/archive/html/emacs-devel/2014-09/msg00220.html |
| 2364 | * lisp.h (make_local_vector, make_local_string) | 2391 | * lisp.h (make_local_vector, make_local_string) |
| 2365 | (build_local_string): Simplify by not bothering with __COUNTER__. | 2392 | (build_local_string): Simplify by not bothering with __COUNTER__. |
| @@ -2390,7 +2417,7 @@ | |||
| 2390 | * lisp.h (DEFINE_GDB_SYMBOL_ENUM): Remove. | 2417 | * lisp.h (DEFINE_GDB_SYMBOL_ENUM): Remove. |
| 2391 | These can generate a constant with the correct value but the wrong | 2418 | These can generate a constant with the correct value but the wrong |
| 2392 | width, which doesn't work as a printf argument. All uses removed. | 2419 | width, which doesn't work as a printf argument. All uses removed. |
| 2393 | Problem reported by Dmitry Antipov in: | 2420 | Reported by Dmitry Antipov in: |
| 2394 | http://lists.gnu.org/archive/html/emacs-devel/2014-09/msg00213.html | 2421 | http://lists.gnu.org/archive/html/emacs-devel/2014-09/msg00213.html |
| 2395 | (ENUMABLE): Remove; no longer needed. | 2422 | (ENUMABLE): Remove; no longer needed. |
| 2396 | (ARRAY_MARK_FLAG_val, PSEUDOVECTOR_FLAG_val, VALMASK_val): | 2423 | (ARRAY_MARK_FLAG_val, PSEUDOVECTOR_FLAG_val, VALMASK_val): |
| @@ -4881,7 +4908,7 @@ | |||
| 4881 | 2014-06-03 Paul Eggert <eggert@cs.ucla.edu> | 4908 | 2014-06-03 Paul Eggert <eggert@cs.ucla.edu> |
| 4882 | 4909 | ||
| 4883 | * emacs.c: Include "sysselect.h", to define its inline functions. | 4910 | * emacs.c: Include "sysselect.h", to define its inline functions. |
| 4884 | Problem reported by Glenn Morris in: | 4911 | Reported by Glenn Morris in: |
| 4885 | http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00077.html | 4912 | http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00077.html |
| 4886 | 4913 | ||
| 4887 | Do not require libXt-devel when building with gtk. | 4914 | Do not require libXt-devel when building with gtk. |
| @@ -5981,7 +6008,7 @@ | |||
| 5981 | 2014-03-27 Paul Eggert <eggert@cs.ucla.edu> | 6008 | 2014-03-27 Paul Eggert <eggert@cs.ucla.edu> |
| 5982 | 6009 | ||
| 5983 | Port recent signal-related changes to FreeBSD. | 6010 | Port recent signal-related changes to FreeBSD. |
| 5984 | Problem reported by Herbert J. Skuhra. | 6011 | Reported by Herbert J. Skuhra. |
| 5985 | * lisp.h (block_tty_out_signal, unblock_tty_out_signal): | 6012 | * lisp.h (block_tty_out_signal, unblock_tty_out_signal): |
| 5986 | Move decls from here ... | 6013 | Move decls from here ... |
| 5987 | * syssignal.h: ... to here, so that lisp.h doesn't depend on signal.h. | 6014 | * syssignal.h: ... to here, so that lisp.h doesn't depend on signal.h. |
| @@ -6959,7 +6986,7 @@ | |||
| 6959 | 2014-01-20 Paul Eggert <eggert@cs.ucla.edu> | 6986 | 2014-01-20 Paul Eggert <eggert@cs.ucla.edu> |
| 6960 | 6987 | ||
| 6961 | Avoid undefined behavior by initializing buffer redisplay bit. | 6988 | Avoid undefined behavior by initializing buffer redisplay bit. |
| 6962 | Problem reported by Dmitry Antipov in | 6989 | Reported by Dmitry Antipov in |
| 6963 | <http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01756.html>. | 6990 | <http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01756.html>. |
| 6964 | * buffer.c (Fget_buffer_create): Initialize redisplay bit. | 6991 | * buffer.c (Fget_buffer_create): Initialize redisplay bit. |
| 6965 | 6992 | ||
| @@ -8800,7 +8827,7 @@ | |||
| 8800 | 2013-11-21 Paul Eggert <eggert@cs.ucla.edu> | 8827 | 2013-11-21 Paul Eggert <eggert@cs.ucla.edu> |
| 8801 | 8828 | ||
| 8802 | Fix some dependency problems that cause unnecessary recompiles. | 8829 | Fix some dependency problems that cause unnecessary recompiles. |
| 8803 | Problem reported by RMS in | 8830 | Reported by RMS in |
| 8804 | <http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg00421.html>. | 8831 | <http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg00421.html>. |
| 8805 | * Makefile.in (OLDXMENU_TARGET, OLDXMENU, OLDXMENU_DEPS) | 8832 | * Makefile.in (OLDXMENU_TARGET, OLDXMENU, OLDXMENU_DEPS) |
| 8806 | (really-lwlib, really-oldXMenu, stamp-oldxmenu) | 8833 | (really-lwlib, really-oldXMenu, stamp-oldxmenu) |
| @@ -9545,8 +9572,7 @@ | |||
| 9545 | 9572 | ||
| 9546 | 2013-10-23 Paul Eggert <eggert@cs.ucla.edu> | 9573 | 2013-10-23 Paul Eggert <eggert@cs.ucla.edu> |
| 9547 | 9574 | ||
| 9548 | Port to Solaris 10 and its bundled GCC. | 9575 | Port to Solaris 10 and its bundled GCC. Reported by Timothy C. Burt. |
| 9549 | Problem reported by Timothy C. Burt. | ||
| 9550 | * floatfns.c (isfinite, isnan): Redefine unconditionally. | 9576 | * floatfns.c (isfinite, isnan): Redefine unconditionally. |
| 9551 | 9577 | ||
| 9552 | 2013-10-21 Dmitry Antipov <dmantipov@yandex.ru> | 9578 | 2013-10-21 Dmitry Antipov <dmantipov@yandex.ru> |
| @@ -9950,7 +9976,7 @@ | |||
| 9950 | so it shouldn't be used all the time. Perhaps we need two | 9976 | so it shouldn't be used all the time. Perhaps we need two |
| 9951 | flavors of 'eassert', one for where 'assume' is far more likely | 9977 | flavors of 'eassert', one for where 'assume' is far more likely |
| 9952 | to help or to hurt; but that can be done later. | 9978 | to help or to hurt; but that can be done later. |
| 9953 | Problem reported by Dmitry Antipov in | 9979 | Reported by Dmitry Antipov in |
| 9954 | <http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00276.html>. | 9980 | <http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00276.html>. |
| 9955 | Also, don't include <verify.h>; no longer needed. | 9981 | Also, don't include <verify.h>; no longer needed. |
| 9956 | 9982 | ||
| @@ -13678,8 +13704,7 @@ | |||
| 13678 | 13704 | ||
| 13679 | 2013-07-07 Paul Eggert <eggert@cs.ucla.edu> | 13705 | 2013-07-07 Paul Eggert <eggert@cs.ucla.edu> |
| 13680 | 13706 | ||
| 13681 | Port to Ubuntu 10 (Bug#14803). | 13707 | Port to Ubuntu 10 (Bug#14803). Reported by T.V. Raman. |
| 13682 | Problem reported by T.V. Raman. | ||
| 13683 | * process.c (close_on_exec, accept4, process_socket): | 13708 | * process.c (close_on_exec, accept4, process_socket): |
| 13684 | Define these if !HAVE_ACCEPT4, not if !SOCK_CLOEXEC. | 13709 | Define these if !HAVE_ACCEPT4, not if !SOCK_CLOEXEC. |
| 13685 | 13710 | ||
| @@ -13944,7 +13969,7 @@ | |||
| 13944 | * emacs.c (malloc_enable_thread): Hoist extern decl to top level. | 13969 | * emacs.c (malloc_enable_thread): Hoist extern decl to top level. |
| 13945 | (main) [HAVE_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]: | 13970 | (main) [HAVE_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]: |
| 13946 | Invoke malloc_enable_thread even when not interactive. | 13971 | Invoke malloc_enable_thread even when not interactive. |
| 13947 | Problem reported by Ken Brown in <http://bugs.gnu.org/14569#275>. | 13972 | Reported by Ken Brown in <http://bugs.gnu.org/14569#275>. |
| 13948 | * process.c (init_process_emacs) [CYGWIN]: Tickle glib even | 13973 | * process.c (init_process_emacs) [CYGWIN]: Tickle glib even |
| 13949 | in this case, since the underlying bug has now been fixed. | 13974 | in this case, since the underlying bug has now been fixed. |
| 13950 | 13975 | ||
| @@ -15169,7 +15194,7 @@ | |||
| 15169 | * unexelf.c: Don't assume ElfW (Half) fits in int. | 15194 | * unexelf.c: Don't assume ElfW (Half) fits in int. |
| 15170 | (entry_address, find_section, unexec): Use ptrdiff_t, not int, | 15195 | (entry_address, find_section, unexec): Use ptrdiff_t, not int, |
| 15171 | when dealing with ElfW (Half) values, since they can exceed 2**31 | 15196 | when dealing with ElfW (Half) values, since they can exceed 2**31 |
| 15172 | on 64-bit OpenBSD hosts. Problem reported privately by Han Boetes. | 15197 | on 64-bit OpenBSD hosts. Reported by Han Boetes (privately). |
| 15173 | (entry_address): Omit unused NUM arg. All uses changed. | 15198 | (entry_address): Omit unused NUM arg. All uses changed. |
| 15174 | 15199 | ||
| 15175 | 2013-05-07 Juri Linkov <juri@jurta.org> | 15200 | 2013-05-07 Juri Linkov <juri@jurta.org> |
diff --git a/src/frame.c b/src/frame.c index 5a0d142afbb..9394ae481f5 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -334,10 +334,22 @@ predicates which report frame's specific UI-related capabilities. */) | |||
| 334 | return type; | 334 | return type; |
| 335 | } | 335 | } |
| 336 | 336 | ||
| 337 | /* Placeholder used by temacs -nw before window.el is loaded. */ | ||
| 338 | DEFUN ("frame-windows-min-size", Fframe_windows_min_size, | ||
| 339 | Sframe_windows_min_size, 4, 4, 0, | ||
| 340 | doc: /* */) | ||
| 341 | (Lisp_Object frame, Lisp_Object horizontal, | ||
| 342 | Lisp_Object ignore, Lisp_Object pixelwise) | ||
| 343 | { | ||
| 344 | return make_number (0); | ||
| 345 | } | ||
| 346 | |||
| 337 | static int | 347 | static int |
| 338 | frame_windows_min_size (Lisp_Object frame, Lisp_Object horizontal, Lisp_Object ignore, Lisp_Object pixelwise) | 348 | frame_windows_min_size (Lisp_Object frame, Lisp_Object horizontal, |
| 349 | Lisp_Object ignore, Lisp_Object pixelwise) | ||
| 339 | { | 350 | { |
| 340 | return XINT (call4 (Qframe_windows_min_size, frame, horizontal, ignore, pixelwise)); | 351 | return XINT (call4 (Qframe_windows_min_size, frame, horizontal, |
| 352 | ignore, pixelwise)); | ||
| 341 | } | 353 | } |
| 342 | 354 | ||
| 343 | 355 | ||
| @@ -5081,6 +5093,7 @@ even if this option is non-nil. */); | |||
| 5081 | defsubr (&Sframep); | 5093 | defsubr (&Sframep); |
| 5082 | defsubr (&Sframe_live_p); | 5094 | defsubr (&Sframe_live_p); |
| 5083 | defsubr (&Swindow_system); | 5095 | defsubr (&Swindow_system); |
| 5096 | defsubr (&Sframe_windows_min_size); | ||
| 5084 | defsubr (&Smake_terminal_frame); | 5097 | defsubr (&Smake_terminal_frame); |
| 5085 | defsubr (&Shandle_switch_frame); | 5098 | defsubr (&Shandle_switch_frame); |
| 5086 | defsubr (&Sselect_frame); | 5099 | defsubr (&Sselect_frame); |
diff --git a/src/window.c b/src/window.c index 65a837dbbad..4da33501323 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -3017,6 +3017,14 @@ resize_root_window (Lisp_Object window, Lisp_Object delta, Lisp_Object horizonta | |||
| 3017 | return call5 (Qwindow_resize_root_window, window, delta, horizontal, ignore, pixelwise); | 3017 | return call5 (Qwindow_resize_root_window, window, delta, horizontal, ignore, pixelwise); |
| 3018 | } | 3018 | } |
| 3019 | 3019 | ||
| 3020 | /* Placeholder used by temacs -nw before window.el is loaded. */ | ||
| 3021 | DEFUN ("window--sanitize-window-sizes", Fwindow__sanitize_window_sizes, | ||
| 3022 | Swindow__sanitize_window_sizes, 2, 2, 0, | ||
| 3023 | doc: /* */) | ||
| 3024 | (Lisp_Object frame, Lisp_Object horizontal) | ||
| 3025 | { | ||
| 3026 | return Qnil; | ||
| 3027 | } | ||
| 3020 | 3028 | ||
| 3021 | Lisp_Object | 3029 | Lisp_Object |
| 3022 | sanitize_window_sizes (Lisp_Object frame, Lisp_Object horizontal) | 3030 | sanitize_window_sizes (Lisp_Object frame, Lisp_Object horizontal) |
| @@ -7569,6 +7577,7 @@ displayed after a scrolling operation to be somewhat inaccurate. */); | |||
| 7569 | defsubr (&Sset_window_display_table); | 7577 | defsubr (&Sset_window_display_table); |
| 7570 | defsubr (&Snext_window); | 7578 | defsubr (&Snext_window); |
| 7571 | defsubr (&Sprevious_window); | 7579 | defsubr (&Sprevious_window); |
| 7580 | defsubr (&Swindow__sanitize_window_sizes); | ||
| 7572 | defsubr (&Sget_buffer_window); | 7581 | defsubr (&Sget_buffer_window); |
| 7573 | defsubr (&Sdelete_other_windows_internal); | 7582 | defsubr (&Sdelete_other_windows_internal); |
| 7574 | defsubr (&Sdelete_window_internal); | 7583 | defsubr (&Sdelete_window_internal); |