1. 10 Dec, 2012 2 commits
  2. 09 Dec, 2012 7 commits
  3. 08 Dec, 2012 10 commits
    • Juri Linkov's avatar
      * lisp/info.el (Info-copy-current-node-name, Info-breadcrumbs) · 858aab4c
      Juri Linkov authored
      (Info-fontify-node, Info-bookmark-make-record): Remove the
      file extension from Info-current-file.
      
      Fixes: debbugs:13016
      858aab4c
    • Eli Zaretskii's avatar
      Fix putenv and unsetenv on MS-Windows. · a16e75cd
      Eli Zaretskii authored
       src/w32.c (unsetenv): Return 0 if the input string is too long.
      
       nt/inc/ms-w32.h (sys_putenv): Add prototype.
      
      Fixes: debbugs:13070
      a16e75cd
    • Paul Eggert's avatar
      Use putenv+unsetenv instead of modifying environ directly. · 5745a7df
      Paul Eggert authored
      * admin/merge-gnulib (GNULIB_MODULES): Add putenv, unsetenv.
      * lib/putenv.c, lib/unsetenv.c, m4/putenv.m4, m4/setenv.m4:
      New files, copied automatically from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * src/alloc.c (xputenv): New function.
      * src/dbusbind.c (Fdbus_init_bus):
      * src/emacs.c (main):
      * src/xterm.c (x_term_init):
      Use xputenv instead of setenv or putenv, to detect memory exhaustion.
      * src/editfns.c (initial_tz): Move static var decl up.
      (tzvalbuf_in_environ): New static var.
      (init_editfns):	Initialize these two static vars.
      (Fencode_time): Don't assume arbitrary limit on EMACS_INT width.
      Save old TZ value on stack, if it's small.
      (Fencode_time, set_time_zone_rule): Don't modify 'environ' directly;
      instead, use xputenv+unsetenv to set and restore TZ.
      (environbuf): Remove static var.  All uses removed.
      (Fset_time_zone_rule): Do not save TZ and environ;
      no longer needed here.
      (set_time_zone_rule_tz1, set_time_zone_rule_tz2) [LOCALTIME_CACHE]:
      Move to inside set_time_zone_rule; they don't need file scope any more.
      (set_time_zone_rule): Maintain the TZ=value string separately.
      (syms_of_editfns): Don't initialize initial_tz;
      init_editfns now does it.
      * src/emacs.c (dump_tz) [HAVE_TZSET]: Now const.
      * src/lisp.h (xputenv): New decl.
      
      Fixes: debbugs:13070
      5745a7df
    • Fabrice Popineau's avatar
    • Eli Zaretskii's avatar
      Provide unsetenv for MS-Windows and make putenv Posix-compatible. · 75ceee05
      Eli Zaretskii authored
       src/w32.c (unsetenv, sys_putenv): New functions.
      
       nt/inc/ms-w32.h (putenv): Redirect to sys_putenv.
       nt/config.nt (HAVE_UNSETENV): Define to 1.
      
      Fixes: debbugs:13070
      75ceee05
    • Glenn Morris's avatar
      Auto-commit of generated files. · e4184a20
      Glenn Morris authored
      e4184a20
    • Chong Yidong's avatar
      * src/editfns.c (Finsert_char): Make the error message more informative. · 1b6dbfeb
      Chong Yidong authored
      Fixes: debbugs:12992
      1b6dbfeb
    • Eli Zaretskii's avatar
      Windows followup to 2012-12-08T02:30:51Z!eggert@cs.ucla.edu. · 63999a7d
      Eli Zaretskii authored
       lib/makefile.w32-in ($(BLD)/sig2str.$(O)): New dependency.
       Remove a stray character at the beginning of the file.
      
      Fixes: debbugs:13026
      63999a7d
    • Paul Eggert's avatar
      Simplify get_lim_data. · 7be78020
      Paul Eggert authored
      * admin/CPP-DEFINES (ULIMIT_BREAK_VALUE): Remove.
      * configure.ac (ULIMIT_BREAK_VALUE): Remove.
      * src/vm-limit.c (get_lim_data): Combine RLIMIT_AS and RLIMIT_DATA methods.
      Remove USG and vlimit methods; no longer used these days.
      Add #error catchall just in case.
      7be78020
    • Paul Eggert's avatar
      Assume POSIX 1003.1-1988 or later for signal.h. · d983a10b
      Paul Eggert authored
      Exceptions: do not assume SIGCONT, SIGSTOP, SIGTSTP, SIGTTIN,
      SIGTTOU, SIGUSR1, SIGUSR2, as Microsoft platforms lack these.
      * admin/CPP-DEFINES (SIGALRM, SIGCHLD, SIGHUP, SIGKILL, SIGPIPE, SIGQUIT):
      Remove.
      (SIGTRAP): Remove this one too, as config.h no longer defines it.
      * admin/merge-gnulib (GNULIB_MODULES): Add sig2str.
      * configure.ac (PTY_OPEN, PTY_TTY_NAME_SPRINTF):
      Use SIGCHLD rather than SIGCLD.
      * lib/sig2str.c, lib/sig2str.h, m4/sig2str.m4: New files, from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/makefile.w32-in (GNULIBOBJS): Add $(BUILD)/sig2str.$(O).
      * src/process.c [subprocesses]: Include <c-ctype.h>, <sig2str.h>.
      (deleted_pid_list, Fdelete_process, create_process)
      (record_child_status_change, handle_child_signal, deliver_child_signal)
      (init_process_emacs, syms_of_process):
      Assume SIGCHLD is defined.
      (parse_signal): Remove.  All uses removed.
      (abbr_to_signal): New static function.
      (Fsignal_process): Use it to convert signal names to ints.
      * src/sysdep.c (sys_suspend) [!DOS_NT]: Use kill (0, ...) rather than
      kill (getpgrp (), ...).
      (emacs_sigaction_init): Assume SIGCHLD is defined.
      (init_signals): Assume SIGALRM, SIGCHLD, SIGHUP, SIGKILL,
      SIGPIPE, and SIGQUIT are defined.  Do not worry about SIGCLD any more.
      * src/syssignal.h (EMACS_KILLPG): Remove.
      All uses replaced by 'kill' with a negative pid.
      (SIGCHLD): Remove definition, as we now assume SIGCHLD.
      * src/w32proc.c (sys_kill): Support negative pids compatibly with POSIX.
      
      Fixes: debbugs:13026
      d983a10b
  4. 07 Dec, 2012 14 commits
  5. 06 Dec, 2012 7 commits
    • Andreas Schwab's avatar
      558fefa0
    • Stefan Monnier's avatar
      Further cleanup of the "cl-" namespace. Fit CL in 80 columns. · 338bfefa
      Stefan Monnier authored
      * lisp/emacs-lisp/cl-macs.el (cl--pop2, cl--optimize-safety)
      (cl--optimize-speed, cl--not-toplevel, cl--parse-loop-clause)
      (cl--expand-do-loop, cl--proclaim-history, cl--declare-stack)
      (cl--do-proclaim, cl--proclaims-deferred): Rename from the "cl-" prefix.
      (cl-progv): Don't rely on dynamic scoping to find the body.
      * lisp/emacs-lisp/cl-lib.el (cl--optimize-speed, cl--optimize-safety)
      (cl--proclaims-deferred): Rename from the "cl-" prefix.
      (cl-declaim): Use backquotes.
      * lisp/emacs-lisp/cl-extra.el (cl-make-random-state, cl-random-state-p):
      Use "cl--" prefix for the object's tag.
      338bfefa
    • Stefan Monnier's avatar
      * lisp/ses.el: Use advice-add/remove. · 1812c724
      Stefan Monnier authored
      (ses--advice-copy-region-as-kill, ses--advice-yank): New functions.
      (copy-region-as-kill, yank): Use advice-add.
      (ses-unload-function): Use advice-remove.
      1812c724
    • Jonas Bernoulli's avatar
      * lisp/button.el: Make them work in header-lines. · 24fc9480
      Jonas Bernoulli authored
      (button-map): Add bindings for header-line and mode-line use.
      (button-get, button-put, button-label): `button' may now be a string.
      (button-activate): Don't make it a defsubst.
      (button--area-button-p, button--area-button-string): New functions.
      (make-text-button): Fix the return value when `beg' was a string.
      (push-button): Handle the mode-line case.
      
      Fixes: debbugs:12817
      24fc9480
    • Eli Zaretskii's avatar
      Avoid busy-waiting for child processes on Windows. (Bug#13086) · e86f5134
      Eli Zaretskii authored
       src/w32proc.c (waitpid): Avoid busy-waiting when called with WNOHANG
       if the child process is still running.  Instead, exit the wait
       loop and return zero.
      e86f5134
    • Sam Steingold's avatar
      * lisp/gnus/gnus-start.el (gnus-before-resume-hook): Add. · 5b4d7e52
      Sam Steingold authored
      (gnus-1): Run it when Gnus is alive.
      5b4d7e52
    • Stefan Monnier's avatar
      * lisp/progmodes/sql.el: Use cl-lib and lexical-binding; various cleanup. · 93852cb0
      Stefan Monnier authored
      (sql-signum): Remove.  Use `cl-signum' instead.
      (sql-read-passwd): Remove; use read-passwd instread.
      (sql-get-login-ext): Use read-string.
      (sql-get-login): Use dolist and pcase.
      (sql--completion-table): Rename from sql-try-completion.
      Use complete-with-action.
      (sql-mode): Don't change abbrev-all-caps globally.
      (sql-connect): Don't rely on dynamic scoping for `new-name'.
      (sql-postgres-completion-object): Initialize vars in their `let'.
      (sql-comint-sybase, sql-comint-sqlite, sql-comint-mysql)
      (sql-comint-solid, sql-comint-ms, sql-comint-postgres)
      (sql-comint-interbase): Use a single append, without setq.
      (sql-comint-linter): Same, and unwind-protect the LINTER_MBX var.
      93852cb0