1. 03 Dec, 2012 16 commits
    • Juri Linkov's avatar
      * lisp/sort.el (delete-duplicate-lines): New command. · c38a186c
      Juri Linkov authored
      Fixes: debbugs:13032
    • Katsumi Yamaoka's avatar
    • Paul Eggert's avatar
      Don't let call-process be a zombie factory. · bb5f74ee
      Paul Eggert authored
      Fixing this bug required some cleanup of the signal-handling code.
      As a side effect, this change also fixes a longstanding rare race
      condition whereby Emacs could mistakenly kill unrelated processes,
      and it fixes a bug where a second C-g does not kill a recalcitrant
      synchronous process in GNU/Linux and similar platforms.
      The patch should also fix the last vestiges of Bug#9488,
      a bug which has mostly been fixed on the trunk by other changes.
      * callproc.c, process.h (synch_process_alive, synch_process_death)
      (synch_process_termsig, sync_process_retcode):
      Remove.  All uses removed, to simplify analysis and so that
      less consing is done inside critical sections.
      * callproc.c (call_process_exited): Remove.  All uses replaced
      with !synch_process_pid.
      * callproc.c (synch_process_pid, synch_process_fd): New static vars.
      These take the role of what used to be in unwind-protect arg.
      All uses changed.
      (block_child_signal, unblock_child_signal):
      New functions, to avoid races that could kill innocent-victim processes.
      (call_process_kill, call_process_cleanup, Fcall_process): Use them.
      (call_process_kill): Record killed processes as deleted, so that
      zombies do not clutter up the system.  Do this inside a critical
      section, to avoid a race that would allow the clutter.
      (call_process_cleanup): Fix code so that the second C-g works again
      on common platforms such as GNU/Linux.
      (Fcall_process): Create the child process in a critical section,
      to fix a race condition.  If creating an asynchronous process,
      record it as deleted so that zombies do not clutter up the system.
      Do unwind-protect for WINDOWSNT too, as that's simpler in the
      light of these changes.  Omit unnecessary call to emacs_close
      before failure, as the unwind-protect code does that.
      * callproc.c (call_process_cleanup):
      * w32proc.c (waitpid): Simplify now that synch_process_alive is gone.
      * process.c (record_deleted_pid): New function, containing
      code refactored out of Fdelete_process.
      (Fdelete_process): Use it.
      (process_status_retrieved): Remove.  All callers changed to use
      (record_child_status_change): Remove, folding its contents into ...
      (handle_child_signal): ... this signal handler.  Now, this
      function is purely a handler for SIGCHLD, and is not called after
      a synchronous waitpid returns; the synchronous code is moved to
      wait_for_termination.  There is no need to worry about reaping
      more than one child now.
      * sysdep.c (get_child_status, child_status_changed): New functions.
      (wait_for_termination): Now takes int * status and bool
      interruptible arguments, too.  Do not record child status change;
      that's now the caller's responsibility.  All callers changed.
      Reimplement in terms of get_child_status.
      (wait_for_termination_1, interruptible_wait_for_termination):
      Remove.  All callers changed to use wait_for_termination.
      * syswait.h: Include <stdbool.h>, for bool.
      (record_child_status_change, interruptible_wait_for_termination):
      Remove decls.
      (record_deleted_pid, child_status_changed): New decls.
      (wait_for_termination): Adjust to API changes noted above.
      Fixes: debbugs:12980
    • Paul Eggert's avatar
      * bytecode.c, lisp.h (Qbytecode): Remove. · bc9dbce6
      Paul Eggert authored
      No longer needed after 2012-11-20 interactive-p changes.
    • Eli Zaretskii's avatar
      Fix bug #13055 with cursor positioning inside scroll-margin. · 3cf3c607
      Eli Zaretskii authored
       src/xdisp.c (redisplay_window): If the cursor is visible, but inside
       the scroll margin, move point outside the margin.
    • Jan Djärv's avatar
      * gtkutil.c (my_log_handler): New function. · 005c8d13
      Jan Djärv authored
      (xg_set_geometry): Set log handler to my_log_handler.
      Fixes: debbugs:11177
    • Agustín Martín's avatar
      Fix my last Changelog entry. · 475eea6f
      Agustín Martín authored
    • Agustín Martín's avatar
      ispell.el: Use expanded values of personal dictionary for process restart checks. · 214bd481
      Agustín Martín authored
       Improve ispell process restart checks by using expanded values for ispell
        personal dictionary and for related restart check.
       * Remove apparently redundant code that seems better handled from
       * No longer need to expand ispell personal dictionary, it is already
      Fixes: debbugs:13019
    • Agustín Martín's avatar
      ispell.el: Fix ispell personal dictionary name expansion. · 329bfd64
      Agustín Martín authored
      textmodes/ispell.el (ispell-init-process, ispell-start-process): 
      Make sure ispell personal dictionary name is expanded after initial
      `default-directory' value (Bug#13019).
    • Dmitry Antipov's avatar
      * lisp.h (modify_region): Rename to... · 20edc1c9
      Dmitry Antipov authored
      (modify_region_1): ...new prototype.
      * textprop.c (modify_region): Now static.  Adjust users.
      * insdel.c (modify_region): Rename to...
      (modify_region_1): ...new function to work with current buffer.
      Adjust comment and users.  Use true and false for boolean arg.
    • Dmitry Antipov's avatar
      * alloc.c (free_save_value): New function. · 62c2e5ed
      Dmitry Antipov authored
      (safe_alloca_unwind): Use it.
      * lisp.h (free_save_value): New prototype.
      * editfns.c (save_excursion_save): Use Lisp_Misc_Save_Value.
      Add comment.
      (save_excursion_restore): Adjust to match saved data structure.
      Use free_save_value to offload some work from GC.  Drop obsolete
      #if 0 code.
    • Chong Yidong's avatar
      * lisp/url/url-misc.el (url-do-terminal-emulator): Use make-term · 1c960c45
      Chong Yidong authored
      instead of terminal-emulator.
    • Jay Belanger's avatar
    • Glenn Morris's avatar
    • Jay Belanger's avatar
    • Jay Belanger's avatar
      * lisp/calc/calc-forms.el (math-absolute-from-iso-dt) · 682ceaf8
      Jay Belanger authored
      (math-date-to-iso-dt, math-parse-iso-date-validate)
      (math-iso-dt-to-date): New functions.
      (math-fd-iso-dt, math-fd-isoyear, math-fd-isoweek)
      (math-fd-isoweekday): New variables.
      (calc-date-notation, math-parse-standard-date, math-format-date)
      (math-format-date-part): Add support for more formatting codes.
  2. 02 Dec, 2012 12 commits
  3. 01 Dec, 2012 12 commits
    • Paul Eggert's avatar
      * xterm.c (x_draw_image_relief): Remove unused locals. · 3e5490f7
      Paul Eggert authored
      Fixes: debbugs:10500
    • Juanma Barranquero's avatar
    • Leo Liu's avatar
      * lisp/files.el (dir-locals-read-from-file): Check file non-empty · ff3d86d0
      Leo Liu authored
      before reading.
      Fixes: debbugs:13038
    • Yuya Nishihara's avatar
      Fix use of buffer-file-truename in vc-find-file-hook (tiny change). · cb5d51dc
      Yuya Nishihara authored
      * lisp/vc/vc-hooks.el (vc-find-file-hook): Expand buffer-file-truename
      before using it for comparison.
      Fixes: debbugs:5297
    • Glenn Morris's avatar
      Auto-commit of loaddefs files. · b9cf4db5
      Glenn Morris authored
    • Eli Zaretskii's avatar
      Fix the MSDOS build. · 5d552c2a
      Eli Zaretskii authored
       msdos/sed1v2.inp: Dump emacs.exe and copy to b-emacs.exe before
       generating leim-list.el.
    • Glenn Morris's avatar
      Auto-commit of loaddefs files. · ae067123
      Glenn Morris authored
    • Glenn Morris's avatar
      Auto-commit of generated files. · 45d4966b
      Glenn Morris authored
    • Jari Aalto's avatar
      Add `add-log-current-defun-function's for CSS and HTML mode. · f38cd76e
      Jari Aalto authored
      * textmodes/css-mode.el (css-current-defun-name): New function.
      (css-mode): Use it.
      * textmodes/sgml-mode.el (html-current-defun-name): New function.
      (html-mode): Use it.
    • Chong Yidong's avatar
      Fix last change. · 9dffb5b6
      Chong Yidong authored
      * emacs-lisp/lisp-mode.el (lisp-current-defun-name):
      * progmodes/m4-mode.el (m4-current-defun-name):
      * progmodes/perl-mode.el (perl-current-defun-name):
      * textmodes/tex-mode.el (tex-current-defun-name):
      * textmodes/texinfo.el (texinfo-current-defun-name): Use save-excursion.
    • Chong Yidong's avatar
      Modularize add-log-current-defun. · ba03d0d9
      Chong Yidong authored
      Suggested by Jari Aalto.
      * lisp/emacs-lisp/lisp-mode.el (lisp-current-defun-name): New.
      (lisp-mode-variables): Use it.
      * lisp/progmodes/cc-mode.el (c-common-init):
      * lisp/progmodes/cperl-mode.el (cperl-mode): Set a value for
      * lisp/progmodes/m4-mode.el (m4-current-defun-name): New function.
      (m4-mode): Use it.
      * lisp/progmodes/perl-mode.el (perl-current-defun-name): New.
      (perl-mode): Use it.
      * lisp/progmodes/scheme.el (scheme-mode-variables, dsssl-mode): Use
      * lisp/textmodes/tex-mode.el (tex-current-defun-name): New.
      (tex-common-initialization): Use it.
      * lisp/textmodes/texinfo.el (texinfo-current-defun-name): New.
      (texinfo-mode): Use it.
      * lisp/vc/add-log.el (add-log-current-defun-function): Doc fix.
      (add-log-current-defun): Move mode-specific code to other files.
      (add-log-lisp-like-modes, add-log-c-like-modes)
      (add-log-tex-like-modes): Variables deleted.
      Fixes: debbugs:2224
    • Chong Yidong's avatar
      Convert several major modes to setq-local. · 92eadba5
      Chong Yidong authored
      * emacs-lisp/lisp-mode.el (lisp-mode-variables, lisp-mode):
      * progmodes/autoconf.el (autoconf-mode):
      * progmodes/js.el (js-mode):
      * progmodes/make-mode.el (makefile-mode, makefile-makepp-mode)
      (makefile-bsdmake-mode, makefile-imake-mode, makefile-browse):
      * progmodes/perl-mode.el (perl-mode):
      * progmodes/sh-script.el (sh-mode, sh-set-shell):
      * textmodes/css-mode.el (css-mode):
      * textmodes/sgml-mode.el (html-mode, sgml-mode)
      (sgml-tags-invisible, sgml-guess-indent):
      * textmodes/tex-mode.el (tex-common-initialization)
      (latex-complete-bibtex-keys, tex-shell, tex-main-file)
      (doctex-mode, plain-tex-mode, latex-mode):
      * textmodes/texinfo.el (texinfo-mode): Use setq-local.