diff options
| author | Paul Eggert | 2011-10-07 23:17:40 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-10-07 23:17:40 -0700 |
| commit | f7dfe84eeacb0316d2ceb8ed5fa59d50c4a7bdc8 (patch) | |
| tree | 9422bfdf8ef7825621ef55e5464ec6a97d1f06db | |
| parent | 619e0f19b389388caa93b5f9b3966f79b0305a1b (diff) | |
| parent | 61a57ef48995138f7b798d979ff189751f0acbfc (diff) | |
| download | emacs-f7dfe84eeacb0316d2ceb8ed5fa59d50c4a7bdc8.tar.gz emacs-f7dfe84eeacb0316d2ceb8ed5fa59d50c4a7bdc8.zip | |
Merge from trunk.
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | lib/signal.in.h | 16 | ||||
| -rw-r--r-- | lib/sigprocmask.c | 28 | ||||
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/eshell/eshell.el | 20 | ||||
| -rw-r--r-- | m4/gl-comp.m4 | 23 | ||||
| -rw-r--r-- | m4/gnulib-common.m4 | 25 |
7 files changed, 64 insertions, 58 deletions
| @@ -1,5 +1,11 @@ | |||
| 1 | 2011-10-07 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-10-07 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Merge from gnulib, fixing some 'configure' typos (Bug#9696). | ||
| 4 | * lib/signal.in.h, lib/sigprocmask.c, m4/gl-comp.m4: | ||
| 5 | * m4/gnulib-common.m4: Merge from gnulib. | ||
| 6 | Without this, 'configure' would say "func_gl_gnulib_m4code_pathmax: | ||
| 7 | command not found" on powerpc-apple-darwin9.8.0. | ||
| 8 | |||
| 3 | * configure.in (GC_LISP_OBJECT_ALIGNMENT): Remove. | 9 | * configure.in (GC_LISP_OBJECT_ALIGNMENT): Remove. |
| 4 | This is now done by src/alloc.c. | 10 | This is now done by src/alloc.c. |
| 5 | 11 | ||
diff --git a/lib/signal.in.h b/lib/signal.in.h index b0e192feeae..e18e0b29832 100644 --- a/lib/signal.in.h +++ b/lib/signal.in.h | |||
| @@ -178,6 +178,10 @@ _GL_WARN_ON_USE (raise, "raise can crash on native Windows - " | |||
| 178 | #if @GNULIB_SIGPROCMASK@ | 178 | #if @GNULIB_SIGPROCMASK@ |
| 179 | # if !@HAVE_POSIX_SIGNALBLOCKING@ | 179 | # if !@HAVE_POSIX_SIGNALBLOCKING@ |
| 180 | 180 | ||
| 181 | # ifndef GNULIB_defined_signal_blocking | ||
| 182 | # define GNULIB_defined_signal_blocking 1 | ||
| 183 | # endif | ||
| 184 | |||
| 181 | /* Maximum signal number + 1. */ | 185 | /* Maximum signal number + 1. */ |
| 182 | # ifndef NSIG | 186 | # ifndef NSIG |
| 183 | # define NSIG 32 | 187 | # define NSIG 32 |
| @@ -303,18 +307,10 @@ _GL_CXXALIAS_SYS (signal, _gl_function_taking_int_returning_void_t, | |||
| 303 | # endif | 307 | # endif |
| 304 | _GL_CXXALIASWARN (signal); | 308 | _GL_CXXALIASWARN (signal); |
| 305 | 309 | ||
| 306 | /* Raise signal SIG. */ | ||
| 307 | # if !@HAVE_POSIX_SIGNALBLOCKING@ && GNULIB_defined_SIGPIPE | 310 | # if !@HAVE_POSIX_SIGNALBLOCKING@ && GNULIB_defined_SIGPIPE |
| 308 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | 311 | /* Raise signal SIGPIPE. */ |
| 309 | # undef raise | 312 | _GL_EXTERN_C int _gl_raise_SIGPIPE (void); |
| 310 | # define raise rpl_raise | ||
| 311 | # endif | ||
| 312 | _GL_FUNCDECL_RPL (raise, int, (int sig)); | ||
| 313 | _GL_CXXALIAS_RPL (raise, int, (int sig)); | ||
| 314 | # else | ||
| 315 | _GL_CXXALIAS_SYS (raise, int, (int sig)); | ||
| 316 | # endif | 313 | # endif |
| 317 | _GL_CXXALIASWARN (raise); | ||
| 318 | 314 | ||
| 319 | #elif defined GNULIB_POSIXCHECK | 315 | #elif defined GNULIB_POSIXCHECK |
| 320 | # undef sigaddset | 316 | # undef sigaddset |
diff --git a/lib/sigprocmask.c b/lib/sigprocmask.c index 6ccac5a8343..e75c7576cdf 100644 --- a/lib/sigprocmask.c +++ b/lib/sigprocmask.c | |||
| @@ -330,27 +330,19 @@ rpl_signal (int sig, handler_t handler) | |||
| 330 | } | 330 | } |
| 331 | 331 | ||
| 332 | #if GNULIB_defined_SIGPIPE | 332 | #if GNULIB_defined_SIGPIPE |
| 333 | /* Raise the signal SIG. */ | 333 | /* Raise the signal SIGPIPE. */ |
| 334 | int | 334 | int |
| 335 | rpl_raise (int sig) | 335 | _gl_raise_SIGPIPE (void) |
| 336 | # undef raise | ||
| 337 | { | 336 | { |
| 338 | switch (sig) | 337 | if (blocked_set & (1U << SIGPIPE)) |
| 338 | pending_array[SIGPIPE] = 1; | ||
| 339 | else | ||
| 339 | { | 340 | { |
| 340 | case SIGPIPE: | 341 | handler_t handler = SIGPIPE_handler; |
| 341 | if (blocked_set & (1U << sig)) | 342 | if (handler == SIG_DFL) |
| 342 | pending_array[sig] = 1; | 343 | exit (128 + SIGPIPE); |
| 343 | else | 344 | else if (handler != SIG_IGN) |
| 344 | { | 345 | (*handler) (SIGPIPE); |
| 345 | handler_t handler = SIGPIPE_handler; | ||
| 346 | if (handler == SIG_DFL) | ||
| 347 | exit (128 + SIGPIPE); | ||
| 348 | else if (handler != SIG_IGN) | ||
| 349 | (*handler) (sig); | ||
| 350 | } | ||
| 351 | return 0; | ||
| 352 | default: /* System defined signal */ | ||
| 353 | return raise (sig); | ||
| 354 | } | 346 | } |
| 355 | } | 347 | } |
| 356 | #endif | 348 | #endif |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6c32655d96c..fdc61721a13 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-10-08 Thierry Volpiatto <thierry.volpiatto@gmail.com> | ||
| 2 | |||
| 3 | * lisp/eshell/eshell.el (eshell-command): Avoid using hooks. | ||
| 4 | |||
| 1 | 2011-10-07 Chong Yidong <cyd@stupidchicken.com> | 5 | 2011-10-07 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 6 | ||
| 3 | * bindings.el ([M-left],[M-right]): Bind to left-word and | 7 | * bindings.el ([M-left],[M-right]): Bind to left-word and |
diff --git a/lisp/eshell/eshell.el b/lisp/eshell/eshell.el index 08bb30d67ba..c33c2ccf9d1 100644 --- a/lisp/eshell/eshell.el +++ b/lisp/eshell/eshell.el | |||
| @@ -344,16 +344,16 @@ With prefix ARG, insert output into the current buffer at point." | |||
| 344 | (require 'esh-cmd) | 344 | (require 'esh-cmd) |
| 345 | (unless arg | 345 | (unless arg |
| 346 | (setq arg current-prefix-arg)) | 346 | (setq arg current-prefix-arg)) |
| 347 | (unwind-protect | 347 | (let ((eshell-non-interactive-p t)) |
| 348 | (let ((eshell-non-interactive-p t)) | 348 | ;; Enable `eshell-mode' only in this minibuffer. |
| 349 | ;; Enable `eshell-mode' only in this minibuffer. | 349 | (minibuffer-with-setup-hook #'(lambda () |
| 350 | (minibuffer-with-setup-hook 'eshell-mode | 350 | (eshell-mode) |
| 351 | (add-hook 'minibuffer-exit-hook 'eshell-add-command-to-history) | 351 | (eshell-return-exits-minibuffer)) |
| 352 | (add-hook 'eshell-mode-hook 'eshell-return-exits-minibuffer) | 352 | (unwind-protect |
| 353 | (unless command | 353 | (unless command |
| 354 | (setq command (read-from-minibuffer "Emacs shell command: "))))) | 354 | (setq command (read-from-minibuffer "Emacs shell command: "))) |
| 355 | (remove-hook 'eshell-mode-hook 'eshell-return-exits-minibuffer) | 355 | (when command |
| 356 | (remove-hook 'minibuffer-exit-hook 'eshell-add-command-to-history)) | 356 | (eshell-add-input-to-history command))))) |
| 357 | (unless command | 357 | (unless command |
| 358 | (error "No command specified!")) | 358 | (error "No command specified!")) |
| 359 | ;; redirection into the current buffer is achieved by adding an | 359 | ;; redirection into the current buffer is achieved by adding an |
diff --git a/m4/gl-comp.m4 b/m4/gl-comp.m4 index 04234bb6ef3..03cedf70af8 100644 --- a/m4/gl-comp.m4 +++ b/m4/gl-comp.m4 | |||
| @@ -79,9 +79,9 @@ AC_DEFUN([gl_EARLY], | |||
| 79 | # Code from module stdarg: | 79 | # Code from module stdarg: |
| 80 | dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode | 80 | dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode |
| 81 | dnl for the builtin va_copy to work. With Autoconf 2.60 or later, | 81 | dnl for the builtin va_copy to work. With Autoconf 2.60 or later, |
| 82 | dnl AC_PROG_CC_STDC arranges for this. With older Autoconf AC_PROG_CC_STDC | 82 | dnl gl_PROG_CC_C99 arranges for this. With older Autoconf gl_PROG_CC_C99 |
| 83 | dnl shouldn't hurt, though installers are on their own to set c99 mode. | 83 | dnl shouldn't hurt, though installers are on their own to set c99 mode. |
| 84 | AC_REQUIRE([AC_PROG_CC_STDC]) | 84 | gl_PROG_CC_C99 |
| 85 | # Code from module stdbool: | 85 | # Code from module stdbool: |
| 86 | # Code from module stddef: | 86 | # Code from module stddef: |
| 87 | # Code from module stdint: | 87 | # Code from module stdint: |
| @@ -246,12 +246,6 @@ if test $HAVE_POSIX_SIGNALBLOCKING = 0; then | |||
| 246 | fi | 246 | fi |
| 247 | gl_SIGNAL_MODULE_INDICATOR([sigprocmask]) | 247 | gl_SIGNAL_MODULE_INDICATOR([sigprocmask]) |
| 248 | gl_gnulib_enabled_sigprocmask=true | 248 | gl_gnulib_enabled_sigprocmask=true |
| 249 | if $condition; then | ||
| 250 | func_gl_gnulib_m4code_raise | ||
| 251 | fi | ||
| 252 | if $condition; then | ||
| 253 | func_gl_gnulib_m4code_f691f076f650964c9f5598c3ee487616 | ||
| 254 | fi | ||
| 255 | fi | 249 | fi |
| 256 | } | 250 | } |
| 257 | func_gl_gnulib_m4code_stat () | 251 | func_gl_gnulib_m4code_stat () |
| @@ -264,13 +258,10 @@ if test $REPLACE_STAT = 1; then | |||
| 264 | fi | 258 | fi |
| 265 | gl_SYS_STAT_MODULE_INDICATOR([stat]) | 259 | gl_SYS_STAT_MODULE_INDICATOR([stat]) |
| 266 | gl_gnulib_enabled_stat=true | 260 | gl_gnulib_enabled_stat=true |
| 267 | if $condition; then | 261 | if test $REPLACE_STAT = 1; then |
| 268 | func_gl_gnulib_m4code_dosname | 262 | func_gl_gnulib_m4code_dosname |
| 269 | fi | 263 | fi |
| 270 | if $condition; then | 264 | if test $REPLACE_STAT = 1; then |
| 271 | func_gl_gnulib_m4code_pathmax | ||
| 272 | fi | ||
| 273 | if $condition; then | ||
| 274 | func_gl_gnulib_m4code_verify | 265 | func_gl_gnulib_m4code_verify |
| 275 | fi | 266 | fi |
| 276 | fi | 267 | fi |
| @@ -305,12 +296,6 @@ gl_STDLIB_MODULE_INDICATOR([strtoull]) | |||
| 305 | gl_gnulib_enabled_verify=true | 296 | gl_gnulib_enabled_verify=true |
| 306 | fi | 297 | fi |
| 307 | } | 298 | } |
| 308 | if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then | ||
| 309 | func_gl_gnulib_m4code_f691f076f650964c9f5598c3ee487616 | ||
| 310 | fi | ||
| 311 | if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then | ||
| 312 | func_gl_gnulib_m4code_676220fa4366efa9bdbfccf11a857c07 | ||
| 313 | fi | ||
| 314 | if test $REPLACE_GETOPT = 1; then | 299 | if test $REPLACE_GETOPT = 1; then |
| 315 | func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 | 300 | func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 |
| 316 | fi | 301 | fi |
diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4 index 8fc448fdc8f..7d832999591 100644 --- a/m4/gnulib-common.m4 +++ b/m4/gnulib-common.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # gnulib-common.m4 serial 30 | 1 | # gnulib-common.m4 serial 31 |
| 2 | dnl Copyright (C) 2007-2011 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2007-2011 Free Software Foundation, Inc. |
| 3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
| @@ -211,6 +211,29 @@ m4_ifndef([AS_VAR_IF], | |||
| 211 | [m4_define([AS_VAR_IF], | 211 | [m4_define([AS_VAR_IF], |
| 212 | [AS_IF([test x"AS_VAR_GET([$1])" = x""$2], [$3], [$4])])]) | 212 | [AS_IF([test x"AS_VAR_GET([$1])" = x""$2], [$3], [$4])])]) |
| 213 | 213 | ||
| 214 | # gl_PROG_CC_C99 | ||
| 215 | # Modifies the value of the shell variable CC in an attempt to make $CC | ||
| 216 | # understand ISO C99 source code. | ||
| 217 | # This is like AC_PROG_CC_C99, except that | ||
| 218 | # - AC_PROG_CC_C99 did not exist in Autoconf versions < 2.60, | ||
| 219 | # - AC_PROG_CC_C99 does not mix well with AC_PROG_CC_STDC | ||
| 220 | # <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00367.html>, | ||
| 221 | # but many more packages use AC_PROG_CC_STDC than AC_PROG_CC_C99 | ||
| 222 | # <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00441.html>. | ||
| 223 | # Remaining problems: | ||
| 224 | # - When AC_PROG_CC_STDC is invoked twice, it adds the C99 enabling options | ||
| 225 | # to CC twice | ||
| 226 | # <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00431.html>. | ||
| 227 | # - AC_PROG_CC_STDC is likely to change when C1X is an ISO standard. | ||
| 228 | AC_DEFUN([gl_PROG_CC_C99], | ||
| 229 | [ | ||
| 230 | dnl Change that version number to the minimum Autoconf version that supports | ||
| 231 | dnl mixing AC_PROG_CC_C99 calls with AC_PROG_CC_STDC calls. | ||
| 232 | m4_version_prereq([9.0], | ||
| 233 | [AC_REQUIRE([AC_PROG_CC_C99])], | ||
| 234 | [AC_REQUIRE([AC_PROG_CC_STDC])]) | ||
| 235 | ]) | ||
| 236 | |||
| 214 | # gl_PROG_AR_RANLIB | 237 | # gl_PROG_AR_RANLIB |
| 215 | # Determines the values for AR, ARFLAGS, RANLIB that fit with the compiler. | 238 | # Determines the values for AR, ARFLAGS, RANLIB that fit with the compiler. |
| 216 | # The user can set the variables AR, ARFLAGS, RANLIB if he wants to override | 239 | # The user can set the variables AR, ARFLAGS, RANLIB if he wants to override |