diff options
| -rw-r--r-- | autogen/Makefile.in | 2 | ||||
| -rw-r--r-- | autogen/config.in | 6 | ||||
| -rwxr-xr-x | autogen/configure | 69 | ||||
| -rw-r--r-- | lisp/ChangeLog | 57 | ||||
| -rw-r--r-- | lisp/calc/calc-forms.el | 24 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 18 | ||||
| -rw-r--r-- | lisp/net/tramp-adb.el | 15 | ||||
| -rw-r--r-- | lisp/subr.el | 2 | ||||
| -rw-r--r-- | lisp/window.el | 30 | ||||
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/w32.c | 1 |
11 files changed, 184 insertions, 47 deletions
diff --git a/autogen/Makefile.in b/autogen/Makefile.in index 8c93ab869a0..168883bb656 100644 --- a/autogen/Makefile.in +++ b/autogen/Makefile.in | |||
| @@ -561,6 +561,7 @@ LIBRESOLV = @LIBRESOLV@ | |||
| 561 | LIBS = @LIBS@ | 561 | LIBS = @LIBS@ |
| 562 | LIBSELINUX_LIBS = @LIBSELINUX_LIBS@ | 562 | LIBSELINUX_LIBS = @LIBSELINUX_LIBS@ |
| 563 | LIBSOUND = @LIBSOUND@ | 563 | LIBSOUND = @LIBSOUND@ |
| 564 | LIBS_GNUSTEP = @LIBS_GNUSTEP@ | ||
| 564 | LIBS_MAIL = @LIBS_MAIL@ | 565 | LIBS_MAIL = @LIBS_MAIL@ |
| 565 | LIBS_SYSTEM = @LIBS_SYSTEM@ | 566 | LIBS_SYSTEM = @LIBS_SYSTEM@ |
| 566 | LIBS_TERMCAP = @LIBS_TERMCAP@ | 567 | LIBS_TERMCAP = @LIBS_TERMCAP@ |
| @@ -763,7 +764,6 @@ STDINT_H = @STDINT_H@ | |||
| 763 | STRIP = @STRIP@ | 764 | STRIP = @STRIP@ |
| 764 | SUBDIR_MAKEFILES_IN = @SUBDIR_MAKEFILES_IN@ | 765 | SUBDIR_MAKEFILES_IN = @SUBDIR_MAKEFILES_IN@ |
| 765 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ | 766 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ |
| 766 | TEMACS_LDFLAGS2 = @TEMACS_LDFLAGS2@ | ||
| 767 | TERMCAP_OBJ = @TERMCAP_OBJ@ | 767 | TERMCAP_OBJ = @TERMCAP_OBJ@ |
| 768 | TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ | 768 | TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@ |
| 769 | TOOLKIT_LIBW = @TOOLKIT_LIBW@ | 769 | TOOLKIT_LIBW = @TOOLKIT_LIBW@ |
diff --git a/autogen/config.in b/autogen/config.in index b05dbbdc5ba..df47c16a348 100644 --- a/autogen/config.in +++ b/autogen/config.in | |||
| @@ -479,12 +479,18 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 479 | /* Define to 1 if you have the `gtk_file_selection_new' function. */ | 479 | /* Define to 1 if you have the `gtk_file_selection_new' function. */ |
| 480 | #undef HAVE_GTK_FILE_SELECTION_NEW | 480 | #undef HAVE_GTK_FILE_SELECTION_NEW |
| 481 | 481 | ||
| 482 | /* Define to 1 if you have the `gtk_handle_box_new' function. */ | ||
| 483 | #undef HAVE_GTK_HANDLE_BOX_NEW | ||
| 484 | |||
| 482 | /* Define to 1 if you have the `gtk_main' function. */ | 485 | /* Define to 1 if you have the `gtk_main' function. */ |
| 483 | #undef HAVE_GTK_MAIN | 486 | #undef HAVE_GTK_MAIN |
| 484 | 487 | ||
| 485 | /* Define to 1 if you have the `gtk_orientable_set_orientation' function. */ | 488 | /* Define to 1 if you have the `gtk_orientable_set_orientation' function. */ |
| 486 | #undef HAVE_GTK_ORIENTABLE_SET_ORIENTATION | 489 | #undef HAVE_GTK_ORIENTABLE_SET_ORIENTATION |
| 487 | 490 | ||
| 491 | /* Define to 1 if you have the `gtk_tearoff_menu_item_new' function. */ | ||
| 492 | #undef HAVE_GTK_TEAROFF_MENU_ITEM_NEW | ||
| 493 | |||
| 488 | /* Define to 1 if you have the `gtk_widget_get_mapped' function. */ | 494 | /* Define to 1 if you have the `gtk_widget_get_mapped' function. */ |
| 489 | #undef HAVE_GTK_WIDGET_GET_MAPPED | 495 | #undef HAVE_GTK_WIDGET_GET_MAPPED |
| 490 | 496 | ||
diff --git a/autogen/configure b/autogen/configure index d63c16bb528..a37c2af83e5 100755 --- a/autogen/configure +++ b/autogen/configure | |||
| @@ -1237,7 +1237,7 @@ NS_OBJC_OBJ | |||
| 1237 | NS_OBJ | 1237 | NS_OBJ |
| 1238 | ns_self_contained | 1238 | ns_self_contained |
| 1239 | INSTALL_ARCH_INDEP_EXTRA | 1239 | INSTALL_ARCH_INDEP_EXTRA |
| 1240 | TEMACS_LDFLAGS2 | 1240 | LIBS_GNUSTEP |
| 1241 | LD_SWITCH_X_SITE_RPATH | 1241 | LD_SWITCH_X_SITE_RPATH |
| 1242 | XMKMF | 1242 | XMKMF |
| 1243 | DEPFLAGS | 1243 | DEPFLAGS |
| @@ -1411,6 +1411,7 @@ enable_checking | |||
| 1411 | enable_check_lisp_object_type | 1411 | enable_check_lisp_object_type |
| 1412 | enable_profiling | 1412 | enable_profiling |
| 1413 | enable_autodepend | 1413 | enable_autodepend |
| 1414 | enable_gtk_deprecation_warnings | ||
| 1414 | enable_dependency_tracking | 1415 | enable_dependency_tracking |
| 1415 | enable_largefile | 1416 | enable_largefile |
| 1416 | enable_gcc_warnings | 1417 | enable_gcc_warnings |
| @@ -2070,6 +2071,8 @@ Optional Features: | |||
| 2070 | --enable-autodepend automatically generate dependencies to .h-files. | 2071 | --enable-autodepend automatically generate dependencies to .h-files. |
| 2071 | Requires GNU Make and Gcc. Enabled if GNU Make and | 2072 | Requires GNU Make and Gcc. Enabled if GNU Make and |
| 2072 | Gcc is found | 2073 | Gcc is found |
| 2074 | --enable-gtk-deprecation-warnings | ||
| 2075 | Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0 | ||
| 2073 | --disable-dependency-tracking speeds up one-time build | 2076 | --disable-dependency-tracking speeds up one-time build |
| 2074 | --enable-dependency-tracking do not reject slow dependency extractors | 2077 | --enable-dependency-tracking do not reject slow dependency extractors |
| 2075 | --disable-largefile omit support for large files | 2078 | --disable-largefile omit support for large files |
| @@ -4396,6 +4399,12 @@ else | |||
| 4396 | fi | 4399 | fi |
| 4397 | 4400 | ||
| 4398 | 4401 | ||
| 4402 | # Check whether --enable-gtk-deprecation-warnings was given. | ||
| 4403 | if test "${enable_gtk_deprecation_warnings+set}" = set; then : | ||
| 4404 | enableval=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings="${enableval}" | ||
| 4405 | fi | ||
| 4406 | |||
| 4407 | |||
| 4399 | #### Make srcdir absolute, if it isn't already. It's important to | 4408 | #### Make srcdir absolute, if it isn't already. It's important to |
| 4400 | #### avoid running the file name through pwd unnecessarily, since pwd can | 4409 | #### avoid running the file name through pwd unnecessarily, since pwd can |
| 4401 | #### give you automounter prefixes, which can go away. We do all this | 4410 | #### give you automounter prefixes, which can go away. We do all this |
| @@ -9511,8 +9520,8 @@ tmp_CPPFLAGS="$CPPFLAGS" | |||
| 9511 | tmp_CFLAGS="$CFLAGS" | 9520 | tmp_CFLAGS="$CFLAGS" |
| 9512 | CPPFLAGS="$CPPFLAGS -x objective-c" | 9521 | CPPFLAGS="$CPPFLAGS -x objective-c" |
| 9513 | CFLAGS="$CFLAGS -x objective-c" | 9522 | CFLAGS="$CFLAGS -x objective-c" |
| 9514 | TEMACS_LDFLAGS2="\${LDFLAGS}" | ||
| 9515 | GNU_OBJC_CFLAGS= | 9523 | GNU_OBJC_CFLAGS= |
| 9524 | LIBS_GNUSTEP= | ||
| 9516 | if test "${with_ns}" != no; then | 9525 | if test "${with_ns}" != no; then |
| 9517 | if test "${opsys}" = darwin; then | 9526 | if test "${opsys}" = darwin; then |
| 9518 | NS_IMPL_COCOA=yes | 9527 | NS_IMPL_COCOA=yes |
| @@ -9537,9 +9546,9 @@ if test "${with_ns}" != no; then | |||
| 9537 | CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}" | 9546 | CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}" |
| 9538 | CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}" | 9547 | CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}" |
| 9539 | LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}" | 9548 | LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}" |
| 9549 | LIBS_GNUSTEP="-lgnustep-gui -lgnustep-base -lobjc -lpthread" | ||
| 9540 | LIB_STANDARD= | 9550 | LIB_STANDARD= |
| 9541 | START_FILES= | 9551 | START_FILES= |
| 9542 | TEMACS_LDFLAGS2= | ||
| 9543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5 | 9552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5 |
| 9544 | $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; } | 9553 | $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; } |
| 9545 | if test "${emacs_cv_objc_exceptions+set}" = set; then : | 9554 | if test "${emacs_cv_objc_exceptions+set}" = set; then : |
| @@ -10854,6 +10863,9 @@ $as_echo "#define HAVE_GTK3 1" >>confdefs.h | |||
| 10854 | GTK_OBJ=emacsgtkfixed.o | 10863 | GTK_OBJ=emacsgtkfixed.o |
| 10855 | term_header=gtkutil.h | 10864 | term_header=gtkutil.h |
| 10856 | USE_GTK_TOOLKIT="GTK3" | 10865 | USE_GTK_TOOLKIT="GTK3" |
| 10866 | if test "x$ac_enable_gtk_deprecation_warnings" = x; then | ||
| 10867 | GTK_CFLAGS="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS" | ||
| 10868 | fi | ||
| 10857 | else | 10869 | else |
| 10858 | check_gtk2=yes | 10870 | check_gtk2=yes |
| 10859 | gtk3_pkg_errors="$GTK_PKG_ERRORS " | 10871 | gtk3_pkg_errors="$GTK_PKG_ERRORS " |
| @@ -11003,6 +11015,53 @@ done | |||
| 11003 | 11015 | ||
| 11004 | fi | 11016 | fi |
| 11005 | 11017 | ||
| 11018 | HAVE_GTK_HANDLE_BOX=no | ||
| 11019 | ac_fn_c_check_decl "$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default | ||
| 11020 | #include <gtk/gtk.h> | ||
| 11021 | " | ||
| 11022 | if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x""yes; then : | ||
| 11023 | HAVE_GTK_HANDLE_BOX=yes | ||
| 11024 | else | ||
| 11025 | HAVE_GTK_HANDLE_BOX=no | ||
| 11026 | fi | ||
| 11027 | |||
| 11028 | if test "$HAVE_GTK_HANDLE_BOX" = yes; then | ||
| 11029 | for ac_func in gtk_handle_box_new | ||
| 11030 | do : | ||
| 11031 | ac_fn_c_check_func "$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new" | ||
| 11032 | if test "x$ac_cv_func_gtk_handle_box_new" = x""yes; then : | ||
| 11033 | cat >>confdefs.h <<_ACEOF | ||
| 11034 | #define HAVE_GTK_HANDLE_BOX_NEW 1 | ||
| 11035 | _ACEOF | ||
| 11036 | |||
| 11037 | fi | ||
| 11038 | done | ||
| 11039 | |||
| 11040 | fi | ||
| 11041 | |||
| 11042 | HAVE_GTK_TEAROFF_MENU_ITEM=no | ||
| 11043 | ac_fn_c_check_decl "$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default | ||
| 11044 | #include <gtk/gtk.h> | ||
| 11045 | " | ||
| 11046 | if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x""yes; then : | ||
| 11047 | HAVE_GTK_TEAROFF_MENU_ITEM=yes | ||
| 11048 | else | ||
| 11049 | HAVE_GTK_TEAROFF_MENU_ITEM=no | ||
| 11050 | fi | ||
| 11051 | |||
| 11052 | if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then | ||
| 11053 | for ac_func in gtk_tearoff_menu_item_new | ||
| 11054 | do : | ||
| 11055 | ac_fn_c_check_func "$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new" | ||
| 11056 | if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x""yes; then : | ||
| 11057 | cat >>confdefs.h <<_ACEOF | ||
| 11058 | #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1 | ||
| 11059 | _ACEOF | ||
| 11060 | |||
| 11061 | fi | ||
| 11062 | done | ||
| 11063 | |||
| 11064 | fi | ||
| 11006 | 11065 | ||
| 11007 | for ac_func in gtk_widget_get_window gtk_widget_set_has_window \ | 11066 | for ac_func in gtk_widget_get_window gtk_widget_set_has_window \ |
| 11008 | gtk_dialog_get_action_area gtk_widget_get_sensitive \ | 11067 | gtk_dialog_get_action_area gtk_widget_get_sensitive \ |
| @@ -25786,10 +25845,6 @@ case "$opsys" in | |||
| 25786 | *) LD_SWITCH_SYSTEM_TEMACS= ;; | 25845 | *) LD_SWITCH_SYSTEM_TEMACS= ;; |
| 25787 | esac | 25846 | esac |
| 25788 | 25847 | ||
| 25789 | if test "$NS_IMPL_GNUSTEP" = "yes"; then | ||
| 25790 | LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread" | ||
| 25791 | fi | ||
| 25792 | |||
| 25793 | 25848 | ||
| 25794 | 25849 | ||
| 25795 | 25850 | ||
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c895bce1cad..7e9e9d7738e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,28 @@ | |||
| 1 | 2012-12-31 Jürgen Hötzel <juergen@archlinux.org> | ||
| 2 | |||
| 3 | * net/tramp-adb.el (tramp-adb-maybe-open-connection): Handle errors | ||
| 4 | (No device connected, invalid device name). (Bug #13299) | ||
| 5 | |||
| 6 | 2012-12-31 Martin Rudalics <rudalics@gmx.at> | ||
| 7 | |||
| 8 | * window.el (window-resizable--p): Rename to window-resizable-p. | ||
| 9 | (window-resize-no-error): New function. | ||
| 10 | |||
| 11 | * mail/rmail.el (rmail-maybe-display-summary): Restore behavior | ||
| 12 | broken in fix from 2012-12-28. | ||
| 13 | |||
| 14 | 2012-12-31 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 15 | |||
| 16 | * subr.el (special-form-p): Don't signal errors on undef aliases. | ||
| 17 | |||
| 18 | 2012-12-31 Jay Belanger <jay.p.belanger@gmail.com> | ||
| 19 | |||
| 20 | * calc/calc-forms.el (math-parse-date): Try using | ||
| 21 | `math-parse-iso-date' when it looks like it might be needed. | ||
| 22 | Allow times of 24:00. | ||
| 23 | (math-parse-date-validate, math-parse-iso-date-validate): Allow times | ||
| 24 | of 24:00. | ||
| 25 | |||
| 1 | 2012-12-30 Glenn Morris <rgm@gnu.org> | 26 | 2012-12-30 Glenn Morris <rgm@gnu.org> |
| 2 | 27 | ||
| 3 | * net/mairix.el (rmail, rmail-summary-displayed, rmail-summary): | 28 | * net/mairix.el (rmail, rmail-summary-displayed, rmail-summary): |
| @@ -17,8 +42,8 @@ | |||
| 17 | 42 | ||
| 18 | 2012-12-30 Mark Lillibridge <mark.lillibridge@hp.com> | 43 | 2012-12-30 Mark Lillibridge <mark.lillibridge@hp.com> |
| 19 | 44 | ||
| 20 | * mail/rmailmm.el (rmail-insert-mime-forwarded-message): Insert | 45 | * mail/rmailmm.el (rmail-insert-mime-forwarded-message): |
| 21 | the undecoded text of the message being forwarded. (Bug#9521) | 46 | Insert the undecoded text of the message being forwarded. (Bug#9521) |
| 22 | 47 | ||
| 23 | 2012-12-30 Michael Albinus <michael.albinus@gmx.de> | 48 | 2012-12-30 Michael Albinus <michael.albinus@gmx.de> |
| 24 | 49 | ||
| @@ -28,8 +53,8 @@ | |||
| 28 | * net/tramp-sh.el (tramp-sh-handle-set-file-selinux-context): | 53 | * net/tramp-sh.el (tramp-sh-handle-set-file-selinux-context): |
| 29 | Return `t' on success. | 54 | Return `t' on success. |
| 30 | 55 | ||
| 31 | * net/tramp-smb.el (tramp-smb-file-name-handler-alist): Add | 56 | * net/tramp-smb.el (tramp-smb-file-name-handler-alist): |
| 32 | handler for `set-file-selinux-context'. | 57 | Add handler for `set-file-selinux-context'. |
| 33 | 58 | ||
| 34 | 2012-12-29 Michael Albinus <michael.albinus@gmx.de> | 59 | 2012-12-29 Michael Albinus <michael.albinus@gmx.de> |
| 35 | 60 | ||
| @@ -38,8 +63,8 @@ | |||
| 38 | 63 | ||
| 39 | 2012-12-29 Eli Zaretskii <eliz@gnu.org> | 64 | 2012-12-29 Eli Zaretskii <eliz@gnu.org> |
| 40 | 65 | ||
| 41 | * files.el (backup-buffer-copy, basic-save-buffer-2): If | 66 | * files.el (backup-buffer-copy, basic-save-buffer-2): |
| 42 | set-file-extended-attributes fails, fall back on set-file-modes | 67 | If set-file-extended-attributes fails, fall back on set-file-modes |
| 43 | instead of signaling an error. (Bug#13298) | 68 | instead of signaling an error. (Bug#13298) |
| 44 | (basic-save-buffer): Likewise. | 69 | (basic-save-buffer): Likewise. |
| 45 | 70 | ||
| @@ -67,8 +92,8 @@ | |||
| 67 | 92 | ||
| 68 | 2012-12-28 Martin Rudalics <rudalics@gmx.at> | 93 | 2012-12-28 Martin Rudalics <rudalics@gmx.at> |
| 69 | 94 | ||
| 70 | * mail/rmail.el (rmail-maybe-display-summary): Rewrite | 95 | * mail/rmail.el (rmail-maybe-display-summary): |
| 71 | (Bug#13066). | 96 | Rewrite (Bug#13066). |
| 72 | 97 | ||
| 73 | 2012-12-28 Andreas Schwab <schwab@linux-m68k.org> | 98 | 2012-12-28 Andreas Schwab <schwab@linux-m68k.org> |
| 74 | 99 | ||
| @@ -123,8 +148,8 @@ | |||
| 123 | 2012-12-27 Dmitry Gutov <dgutov@yandex.ru> | 148 | 2012-12-27 Dmitry Gutov <dgutov@yandex.ru> |
| 124 | 149 | ||
| 125 | * progmodes/ruby-mode.el (ruby-indent-beg-re): Only allow "class", | 150 | * progmodes/ruby-mode.el (ruby-indent-beg-re): Only allow "class", |
| 126 | "module" and "def" to have indentation before them. Regression | 151 | "module" and "def" to have indentation before them. |
| 127 | from 2012-09-07T04:15:56Z!dgutov@yandex.ru (see the new test). | 152 | Regression from 2012-09-07T04:15:56Z!dgutov@yandex.ru (see the new test). |
| 128 | 153 | ||
| 129 | * progmodes/ruby-mode.el: Bump the version to 1.2 (Bug#13200). | 154 | * progmodes/ruby-mode.el: Bump the version to 1.2 (Bug#13200). |
| 130 | 155 | ||
| @@ -137,8 +162,8 @@ | |||
| 137 | 2012-12-27 Vitalie Spinu <spinuvit@gmail.com> (tiny change) | 162 | 2012-12-27 Vitalie Spinu <spinuvit@gmail.com> (tiny change) |
| 138 | 163 | ||
| 139 | * comint.el (comint-adjust-window-point): New function. | 164 | * comint.el (comint-adjust-window-point): New function. |
| 140 | (comint-postoutput-scroll-to-bottom): Call | 165 | (comint-postoutput-scroll-to-bottom): |
| 141 | comint-adjust-window-point (Bug#13248). | 166 | Call comint-adjust-window-point (Bug#13248). |
| 142 | 167 | ||
| 143 | 2012-12-26 Dmitry Gutov <dgutov@yandex.ru> | 168 | 2012-12-26 Dmitry Gutov <dgutov@yandex.ru> |
| 144 | 169 | ||
| @@ -149,8 +174,8 @@ | |||
| 149 | 174 | ||
| 150 | 2012-12-26 Jürgen Hötzel <juergen@archlinux.org> | 175 | 2012-12-26 Jürgen Hötzel <juergen@archlinux.org> |
| 151 | 176 | ||
| 152 | * net/tramp-adb.el (tramp-adb-get-ls-command): New defun. Suppress | 177 | * net/tramp-adb.el (tramp-adb-get-ls-command): New defun. |
| 153 | coloring, if possible (required for BusyBox based systems like | 178 | Suppress coloring, if possible (required for BusyBox based systems like |
| 154 | CynagenMod). | 179 | CynagenMod). |
| 155 | (tramp-adb-handle-file-attributes) | 180 | (tramp-adb-handle-file-attributes) |
| 156 | (tramp-adb-handle-insert-directory) | 181 | (tramp-adb-handle-insert-directory) |
| @@ -179,8 +204,8 @@ | |||
| 179 | * notifications.el (notifications-notify): Protect body with | 204 | * notifications.el (notifications-notify): Protect body with |
| 180 | `with-demoted-errors'. | 205 | `with-demoted-errors'. |
| 181 | 206 | ||
| 182 | * net/tramp-adb.el (tramp-adb-maybe-open-connection): Check | 207 | * net/tramp-adb.el (tramp-adb-maybe-open-connection): |
| 183 | properties of remote device. Restart connection, if there is a | 208 | Check properties of remote device. Restart connection, if there is a |
| 184 | change. | 209 | change. |
| 185 | 210 | ||
| 186 | 2012-12-21 Chong Yidong <cyd@gnu.org> | 211 | 2012-12-21 Chong Yidong <cyd@gnu.org> |
diff --git a/lisp/calc/calc-forms.el b/lisp/calc/calc-forms.el index 7cfca261fa3..d7c598d3b48 100644 --- a/lisp/calc/calc-forms.el +++ b/lisp/calc/calc-forms.el | |||
| @@ -918,7 +918,7 @@ as measured in the integer number of days before December 31, 1 BC (Gregorian)." | |||
| 918 | (catch 'syntax | 918 | (catch 'syntax |
| 919 | (or (math-parse-standard-date math-pd-str t) | 919 | (or (math-parse-standard-date math-pd-str t) |
| 920 | (math-parse-standard-date math-pd-str nil) | 920 | (math-parse-standard-date math-pd-str nil) |
| 921 | (and (or (memq 'IYYY calc-date-format) (memq 'Iww calc-date-format)) | 921 | (and (string-match "W[0-9][0-9]" math-pd-str) |
| 922 | (math-parse-iso-date math-pd-str)) | 922 | (math-parse-iso-date math-pd-str)) |
| 923 | (and (string-match "\\`[^-+/0-9a-zA-Z]*\\([-+]?[0-9]+\\.?[0-9]*\\([eE][-+]?[0-9]+\\)?\\)[^-+/0-9a-zA-Z]*\\'" math-pd-str) | 923 | (and (string-match "\\`[^-+/0-9a-zA-Z]*\\([-+]?[0-9]+\\.?[0-9]*\\([eE][-+]?[0-9]+\\)?\\)[^-+/0-9a-zA-Z]*\\'" math-pd-str) |
| 924 | (list 'date (math-read-number (math-match-substring math-pd-str 1)))) | 924 | (list 'date (math-read-number (math-match-substring math-pd-str 1)))) |
| @@ -943,8 +943,12 @@ as measured in the integer number of days before December 31, 1 BC (Gregorian)." | |||
| 943 | (setq second 0) | 943 | (setq second 0) |
| 944 | (setq second (math-read-number second))) | 944 | (setq second (math-read-number second))) |
| 945 | (if (equal ampm "") | 945 | (if (equal ampm "") |
| 946 | (if (> hour 23) | 946 | (if (or |
| 947 | (throw 'syntax "Hour value out of range")) | 947 | (> hour 24) |
| 948 | (and (= hour 24) | ||
| 949 | (not (= minute 0)) | ||
| 950 | (not (eq second 0)))) | ||
| 951 | (throw 'syntax "Hour value is out of range")) | ||
| 948 | (setq ampm (upcase (aref ampm 0))) | 952 | (setq ampm (upcase (aref ampm 0))) |
| 949 | (if (memq ampm '(?N ?M)) | 953 | (if (memq ampm '(?N ?M)) |
| 950 | (if (and (= hour 12) (= minute 0) (eq second 0)) | 954 | (if (and (= hour 12) (= minute 0) (eq second 0)) |
| @@ -952,7 +956,7 @@ as measured in the integer number of days before December 31, 1 BC (Gregorian)." | |||
| 952 | (throw 'syntax | 956 | (throw 'syntax |
| 953 | "Time must be 12:00:00 in this context")) | 957 | "Time must be 12:00:00 in this context")) |
| 954 | (if (or (= hour 0) (> hour 12)) | 958 | (if (or (= hour 0) (> hour 12)) |
| 955 | (throw 'syntax "Hour value out of range")) | 959 | (throw 'syntax "Hour value is out of range")) |
| 956 | (if (eq (= ampm ?A) (= hour 12)) | 960 | (if (eq (= ampm ?A) (= hour 12)) |
| 957 | (setq hour (% (+ hour 12) 24))))))) | 961 | (setq hour (% (+ hour 12) 24))))))) |
| 958 | 962 | ||
| @@ -1075,7 +1079,11 @@ as measured in the integer number of days before December 31, 1 BC (Gregorian)." | |||
| 1075 | (throw 'syntax "Day value is out of range")) | 1079 | (throw 'syntax "Day value is out of range")) |
| 1076 | (and hour | 1080 | (and hour |
| 1077 | (progn | 1081 | (progn |
| 1078 | (if (or (< hour 0) (> hour 23)) | 1082 | (if (or (< hour 0) |
| 1083 | (> hour 24) | ||
| 1084 | (and (= hour 24) | ||
| 1085 | (not (= minute 0)) | ||
| 1086 | (not (eq second 0)))) | ||
| 1079 | (throw 'syntax "Hour value is out of range")) | 1087 | (throw 'syntax "Hour value is out of range")) |
| 1080 | (if (or (< minute 0) (> minute 59)) | 1088 | (if (or (< minute 0) (> minute 59)) |
| 1081 | (throw 'syntax "Minute value is out of range")) | 1089 | (throw 'syntax "Minute value is out of range")) |
| @@ -1091,7 +1099,11 @@ as measured in the integer number of days before December 31, 1 BC (Gregorian)." | |||
| 1091 | (throw 'syntax "Weekday value is out of range")) | 1099 | (throw 'syntax "Weekday value is out of range")) |
| 1092 | (and hour | 1100 | (and hour |
| 1093 | (progn | 1101 | (progn |
| 1094 | (if (or (< hour 0) (> hour 23)) | 1102 | (if (or (< hour 0) |
| 1103 | (> hour 24) | ||
| 1104 | (and (= hour 24) | ||
| 1105 | (not (= minute 0)) | ||
| 1106 | (not (eq second 0)))) | ||
| 1095 | (throw 'syntax "Hour value is out of range")) | 1107 | (throw 'syntax "Hour value is out of range")) |
| 1096 | (if (or (< minute 0) (> minute 59)) | 1108 | (if (or (< minute 0) (> minute 59)) |
| 1097 | (throw 'syntax "Minute value is out of range")) | 1109 | (throw 'syntax "Minute value is out of range")) |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 096b53c6cab..947d8e2cb4c 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -4224,15 +4224,25 @@ This has an effect only if a summary buffer exists." | |||
| 4224 | 4224 | ||
| 4225 | ;; Put the summary buffer back on the screen, if user wants that. | 4225 | ;; Put the summary buffer back on the screen, if user wants that. |
| 4226 | (defun rmail-maybe-display-summary () | 4226 | (defun rmail-maybe-display-summary () |
| 4227 | ;; If requested, make sure the summary is displayed. | 4227 | (cond |
| 4228 | (when (and rmail-summary-buffer (buffer-name rmail-summary-buffer) | 4228 | ((or (not rmail-summary-buffer) |
| 4229 | rmail-redisplay-summary) | 4229 | (not (buffer-name rmail-summary-buffer)))) |
| 4230 | (rmail-redisplay-summary | ||
| 4231 | ;; If `rmail-redisplay-summary' is non-nil, make sure the summary | ||
| 4232 | ;; buffer is displayed. | ||
| 4230 | (display-buffer | 4233 | (display-buffer |
| 4231 | rmail-summary-buffer | 4234 | rmail-summary-buffer |
| 4232 | `(nil | 4235 | `(nil |
| 4233 | (reusable-frames . 0) | 4236 | (reusable-frames . 0) |
| 4234 | ,(when rmail-summary-window-size | 4237 | ,(when rmail-summary-window-size |
| 4235 | `(window-height . ,rmail-summary-window-size)))))) | 4238 | `(window-height . ,rmail-summary-window-size))))) |
| 4239 | (rmail-summary-window-size | ||
| 4240 | ;; If `rmail-summary-window-size' is non-nil and the summary buffer | ||
| 4241 | ;; is displayed, make sure it gets resized. | ||
| 4242 | (let ((window (get-buffer-window rmail-summary-buffer 0))) | ||
| 4243 | (when window | ||
| 4244 | (window-resize-no-error | ||
| 4245 | window (- rmail-summary-window-size (window-height window)))))))) | ||
| 4236 | 4246 | ||
| 4237 | ;;;; *** Rmail Local Fontification *** | 4247 | ;;;; *** Rmail Local Fontification *** |
| 4238 | 4248 | ||
diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el index f31bd6b3d2d..b418d1982d9 100644 --- a/lisp/net/tramp-adb.el +++ b/lisp/net/tramp-adb.el | |||
| @@ -998,11 +998,24 @@ COMMAND is nil, just sends `echo $?'. Returns the exit status found." | |||
| 998 | Does not do anything if a connection is already open, but re-opens the | 998 | Does not do anything if a connection is already open, but re-opens the |
| 999 | connection if a previous connection has died for some reason." | 999 | connection if a previous connection has died for some reason." |
| 1000 | (let* ((buf (tramp-get-connection-buffer vec)) | 1000 | (let* ((buf (tramp-get-connection-buffer vec)) |
| 1001 | (p (get-buffer-process buf))) | 1001 | (p (get-buffer-process buf)) |
| 1002 | (devices (mapcar 'cadr (tramp-adb-parse-device-names nil)))) | ||
| 1002 | (unless | 1003 | (unless |
| 1003 | (and p (processp p) (memq (process-status p) '(run open))) | 1004 | (and p (processp p) (memq (process-status p) '(run open))) |
| 1004 | (save-match-data | 1005 | (save-match-data |
| 1005 | (when (and p (processp p)) (delete-process p)) | 1006 | (when (and p (processp p)) (delete-process p)) |
| 1007 | (if (not devices) | ||
| 1008 | (tramp-error vec 'file-error "No device connected")) | ||
| 1009 | (if (and (tramp-file-name-host vec) | ||
| 1010 | (not (member (tramp-file-name-host vec) devices))) | ||
| 1011 | (tramp-error | ||
| 1012 | vec 'file-error | ||
| 1013 | "Device %s not connected" (tramp-file-name-host vec))) | ||
| 1014 | (if (and (not (eq (length devices) 1)) | ||
| 1015 | (not (tramp-file-name-host vec))) | ||
| 1016 | (tramp-error | ||
| 1017 | vec 'file-error | ||
| 1018 | "Multiple Devices connected: No Host/Device specified")) | ||
| 1006 | (with-tramp-progress-reporter vec 3 "Opening adb shell connection" | 1019 | (with-tramp-progress-reporter vec 3 "Opening adb shell connection" |
| 1007 | (let* ((coding-system-for-read 'utf-8-dos) ;is this correct? | 1020 | (let* ((coding-system-for-read 'utf-8-dos) ;is this correct? |
| 1008 | (process-connection-type tramp-process-connection-type) | 1021 | (process-connection-type tramp-process-connection-type) |
diff --git a/lisp/subr.el b/lisp/subr.el index 1e509036cd1..111fb6201b4 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -2805,7 +2805,7 @@ Otherwise, return nil." | |||
| 2805 | (defun special-form-p (object) | 2805 | (defun special-form-p (object) |
| 2806 | "Non-nil if and only if OBJECT is a special form." | 2806 | "Non-nil if and only if OBJECT is a special form." |
| 2807 | (if (and (symbolp object) (fboundp object)) | 2807 | (if (and (symbolp object) (fboundp object)) |
| 2808 | (setq object (indirect-function object))) | 2808 | (setq object (indirect-function object t))) |
| 2809 | (and (subrp object) (eq (cdr (subr-arity object)) 'unevalled))) | 2809 | (and (subrp object) (eq (cdr (subr-arity object)) 'unevalled))) |
| 2810 | 2810 | ||
| 2811 | (defun field-at-pos (pos) | 2811 | (defun field-at-pos (pos) |
diff --git a/lisp/window.el b/lisp/window.el index 52909fa9e5f..250978d0053 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -1340,7 +1340,7 @@ violate size restrictions of WINDOW or its child windows." | |||
| 1340 | delta)) | 1340 | delta)) |
| 1341 | (t 0))) | 1341 | (t 0))) |
| 1342 | 1342 | ||
| 1343 | (defun window--resizable-p (window delta &optional horizontal ignore trail noup nodown) | 1343 | (defun window-resizable-p (window delta &optional horizontal ignore trail noup nodown) |
| 1344 | "Return t if WINDOW can be resized vertically by DELTA lines. | 1344 | "Return t if WINDOW can be resized vertically by DELTA lines. |
| 1345 | WINDOW must be a valid window and defaults to the selected one. | 1345 | WINDOW must be a valid window and defaults to the selected one. |
| 1346 | For the meaning of the arguments of this function see the | 1346 | For the meaning of the arguments of this function see the |
| @@ -1943,7 +1943,7 @@ instead." | |||
| 1943 | ;; nil or the minibuffer window is active, resize the minibuffer | 1943 | ;; nil or the minibuffer window is active, resize the minibuffer |
| 1944 | ;; window. | 1944 | ;; window. |
| 1945 | (window--resize-mini-window minibuffer-window (- delta))) | 1945 | (window--resize-mini-window minibuffer-window (- delta))) |
| 1946 | ((window--resizable-p window delta horizontal ignore) | 1946 | ((window-resizable-p window delta horizontal ignore) |
| 1947 | (window--resize-reset frame horizontal) | 1947 | (window--resize-reset frame horizontal) |
| 1948 | (window--resize-this-window window delta horizontal ignore t) | 1948 | (window--resize-this-window window delta horizontal ignore t) |
| 1949 | (if (and (not window-combination-resize) | 1949 | (if (and (not window-combination-resize) |
| @@ -1969,6 +1969,14 @@ instead." | |||
| 1969 | (t | 1969 | (t |
| 1970 | (error "Cannot resize window %s" window))))) | 1970 | (error "Cannot resize window %s" window))))) |
| 1971 | 1971 | ||
| 1972 | (defun window-resize-no-error (window delta &optional horizontal ignore) | ||
| 1973 | "Resize WINDOW vertically if it is resizable by DELTA lines. | ||
| 1974 | This function is like `window-resize' but does not signal an | ||
| 1975 | error when WINDOW cannot be resized. For the meaning of the | ||
| 1976 | optional arguments see the documentation of `window-resize'." | ||
| 1977 | (when (window-resizable-p window delta horizontal ignore) | ||
| 1978 | (window-resize window delta horizontal ignore))) | ||
| 1979 | |||
| 1972 | (defun window--resize-child-windows-skip-p (window) | 1980 | (defun window--resize-child-windows-skip-p (window) |
| 1973 | "Return non-nil if WINDOW shall be skipped by resizing routines." | 1981 | "Return non-nil if WINDOW shall be skipped by resizing routines." |
| 1974 | (memq (window-new-normal window) '(ignore stuck skip))) | 1982 | (memq (window-new-normal window) '(ignore stuck skip))) |
| @@ -2594,7 +2602,7 @@ negative, shrink selected window by -DELTA lines or columns." | |||
| 2594 | ;; If the selected window is full height and `resize-mini-windows' | 2602 | ;; If the selected window is full height and `resize-mini-windows' |
| 2595 | ;; is nil, resize the minibuffer window. | 2603 | ;; is nil, resize the minibuffer window. |
| 2596 | (window--resize-mini-window minibuffer-window (- delta))) | 2604 | (window--resize-mini-window minibuffer-window (- delta))) |
| 2597 | ((window--resizable-p nil delta horizontal) | 2605 | ((window-resizable-p nil delta horizontal) |
| 2598 | (window-resize nil delta horizontal)) | 2606 | (window-resize nil delta horizontal)) |
| 2599 | (t | 2607 | (t |
| 2600 | (window-resize | 2608 | (window-resize |
| @@ -2627,7 +2635,7 @@ Also see the `window-min-height' variable." | |||
| 2627 | ;; If the selected window is full height and `resize-mini-windows' | 2635 | ;; If the selected window is full height and `resize-mini-windows' |
| 2628 | ;; is nil, resize the minibuffer window. | 2636 | ;; is nil, resize the minibuffer window. |
| 2629 | (window--resize-mini-window minibuffer-window delta)) | 2637 | (window--resize-mini-window minibuffer-window delta)) |
| 2630 | ((window--resizable-p nil (- delta) horizontal) | 2638 | ((window-resizable-p nil (- delta) horizontal) |
| 2631 | (window-resize nil (- delta) horizontal)) | 2639 | (window-resize nil (- delta) horizontal)) |
| 2632 | (t | 2640 | (t |
| 2633 | (window-resize | 2641 | (window-resize |
| @@ -2901,7 +2909,7 @@ that is its frame's root window." | |||
| 2901 | (set-window-new-normal | 2909 | (set-window-new-normal |
| 2902 | sibling (+ (window-normal-size sibling horizontal) | 2910 | sibling (+ (window-normal-size sibling horizontal) |
| 2903 | (window-normal-size window horizontal)))) | 2911 | (window-normal-size window horizontal)))) |
| 2904 | ((window--resizable-p window (- size) horizontal nil nil nil t) | 2912 | ((window-resizable-p window (- size) horizontal nil nil nil t) |
| 2905 | ;; Can do without resizing fixed-size windows. | 2913 | ;; Can do without resizing fixed-size windows. |
| 2906 | (window--resize-siblings window (- size) horizontal)) | 2914 | (window--resize-siblings window (- size) horizontal)) |
| 2907 | (t | 2915 | (t |
| @@ -4440,13 +4448,13 @@ value can be also stored on disk and read back in a new session." | |||
| 4440 | (let ((delta (- (cdr (assq 'total-height item)) | 4448 | (let ((delta (- (cdr (assq 'total-height item)) |
| 4441 | (window-total-height window))) | 4449 | (window-total-height window))) |
| 4442 | window-size-fixed) | 4450 | window-size-fixed) |
| 4443 | (when (window--resizable-p window delta) | 4451 | (when (window-resizable-p window delta) |
| 4444 | (window-resize window delta))) | 4452 | (window-resize window delta))) |
| 4445 | ;; Else check whether the window is not high enough. | 4453 | ;; Else check whether the window is not high enough. |
| 4446 | (let* ((min-size (window-min-size window nil ignore)) | 4454 | (let* ((min-size (window-min-size window nil ignore)) |
| 4447 | (delta (- min-size (window-total-size window)))) | 4455 | (delta (- min-size (window-total-size window)))) |
| 4448 | (when (and (> delta 0) | 4456 | (when (and (> delta 0) |
| 4449 | (window--resizable-p window delta nil ignore)) | 4457 | (window-resizable-p window delta nil ignore)) |
| 4450 | (window-resize window delta nil ignore)))) | 4458 | (window-resize window delta nil ignore)))) |
| 4451 | ;; Adjust horizontally. | 4459 | ;; Adjust horizontally. |
| 4452 | (if (memq window-size-fixed '(t width)) | 4460 | (if (memq window-size-fixed '(t width)) |
| @@ -4454,13 +4462,13 @@ value can be also stored on disk and read back in a new session." | |||
| 4454 | (let ((delta (- (cdr (assq 'total-width item)) | 4462 | (let ((delta (- (cdr (assq 'total-width item)) |
| 4455 | (window-total-width window))) | 4463 | (window-total-width window))) |
| 4456 | window-size-fixed) | 4464 | window-size-fixed) |
| 4457 | (when (window--resizable-p window delta) | 4465 | (when (window-resizable-p window delta) |
| 4458 | (window-resize window delta))) | 4466 | (window-resize window delta))) |
| 4459 | ;; Else check whether the window is not wide enough. | 4467 | ;; Else check whether the window is not wide enough. |
| 4460 | (let* ((min-size (window-min-size window t ignore)) | 4468 | (let* ((min-size (window-min-size window t ignore)) |
| 4461 | (delta (- min-size (window-total-size window t)))) | 4469 | (delta (- min-size (window-total-size window t)))) |
| 4462 | (when (and (> delta 0) | 4470 | (when (and (> delta 0) |
| 4463 | (window--resizable-p window delta t ignore)) | 4471 | (window-resizable-p window delta t ignore)) |
| 4464 | (window-resize window delta t ignore)))) | 4472 | (window-resize window delta t ignore)))) |
| 4465 | ;; Set dedicated status. | 4473 | ;; Set dedicated status. |
| 4466 | (set-window-dedicated-p window (cdr (assq 'dedicated state))) | 4474 | (set-window-dedicated-p window (cdr (assq 'dedicated state))) |
| @@ -5211,7 +5219,7 @@ live." | |||
| 5211 | (* (window-total-size (frame-root-window window)) | 5219 | (* (window-total-size (frame-root-window window)) |
| 5212 | height)))) | 5220 | height)))) |
| 5213 | (delta (- new-height (window-total-size window)))) | 5221 | (delta (- new-height (window-total-size window)))) |
| 5214 | (when (and (window--resizable-p window delta nil 'safe) | 5222 | (when (and (window-resizable-p window delta nil 'safe) |
| 5215 | (window-combined-p window)) | 5223 | (window-combined-p window)) |
| 5216 | (window-resize window delta nil 'safe)))) | 5224 | (window-resize window delta nil 'safe)))) |
| 5217 | ((functionp height) | 5225 | ((functionp height) |
| @@ -5227,7 +5235,7 @@ live." | |||
| 5227 | (* (window-total-size (frame-root-window window) t) | 5235 | (* (window-total-size (frame-root-window window) t) |
| 5228 | width)))) | 5236 | width)))) |
| 5229 | (delta (- new-width (window-total-size window t)))) | 5237 | (delta (- new-width (window-total-size window t)))) |
| 5230 | (when (and (window--resizable-p window delta t 'safe) | 5238 | (when (and (window-resizable-p window delta t 'safe) |
| 5231 | (window-combined-p window t)) | 5239 | (window-combined-p window t)) |
| 5232 | (window-resize window delta t 'safe)))) | 5240 | (window-resize window delta t 'safe)))) |
| 5233 | ((functionp width) | 5241 | ((functionp width) |
diff --git a/src/ChangeLog b/src/ChangeLog index 483930a6489..e5d663b746e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2012-12-31 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * w32.c (unsetenv): Set up the string passed to _putenv | ||
| 4 | correctly. See | ||
| 5 | http://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00863.html | ||
| 6 | for the bug this caused. | ||
| 7 | |||
| 1 | 2012-12-30 Paul Eggert <eggert@cs.ucla.edu> | 8 | 2012-12-30 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 9 | ||
| 3 | * coding.c (Qmac): Now static. | 10 | * coding.c (Qmac): Now static. |
| @@ -1784,6 +1784,7 @@ unsetenv (const char *name) | |||
| 1784 | /* It is safe to use 'alloca' with 32K size, since the stack is at | 1784 | /* It is safe to use 'alloca' with 32K size, since the stack is at |
| 1785 | least 2MB, and we set it to 8MB in the link command line. */ | 1785 | least 2MB, and we set it to 8MB in the link command line. */ |
| 1786 | var = alloca (name_len + 2); | 1786 | var = alloca (name_len + 2); |
| 1787 | strncpy (var, name, name_len); | ||
| 1787 | var[name_len++] = '='; | 1788 | var[name_len++] = '='; |
| 1788 | var[name_len] = '\0'; | 1789 | var[name_len] = '\0'; |
| 1789 | return _putenv (var); | 1790 | return _putenv (var); |