1. 08 Jul, 2013 3 commits
  2. 07 Jul, 2013 9 commits
    • Paul Eggert's avatar
      Port to Ubuntu 10. · 9caab067
      Paul Eggert authored
      Problem reported by T.V. Raman.
      * configure.ac (accept4): New function to check for.
      * src/process.c (close_on_exec, accept4, process_socket):
      Define these if !HAVE_ACCEPT4, not if !SOCK_CLOEXEC.
      Fixes: debbugs:14803
    • Juanma Barranquero's avatar
      ChangeLog fixes. · 5165d44a
      Juanma Barranquero authored
    • Juanma Barranquero's avatar
    • Michael Kifer's avatar
      * faces.el (tty-run-terminal-initialization): function changed (Stefan · f1e6674b
      Michael Kifer authored
      	Monnier's patch).
      	* viper.el (viper-emacs-state-mode-list): add egg-status-buffer-mode.
      	(viper-version): version update.
      	(viper-go-away,viper-setup-hooks): function changed (Stefan Monnier's
      	viper-setup-ESC-to-escape): new functions (Stefan Monnier's
      	* viper-cmd.el: (viper-del-forward-char-in-insert): new function.
      	(viper-save-kill-buffer): check if buffer is modified.
      	(viper-envelop-ESC-key): function deleted (Stefan Monnier's patch).
      	(viper-intercept-ESC-key): function changed (Stefan Monnier's patch).
      	* viper-keym.el (viper-ESC-key): constant changed (Stefan Monnier's
      	* ediff.el (ediff-files-command,ediff3-files-command): new functions.
      	(ediff-merge-command,ediff-merge-with-ancestor-command): new functions.
      	(ediff-directories-command,ediff-directories3-command): new functions.
      	(ediff-merge-directories-command): new function.
      	(ediff-merge-directories-with-ancestor-command): new function.
      	All the above are command-line interfaces to ediff: facilitate calling
      	Emacs with the appropriate ediff functions invoked.
      	(ediff-version): version update.
    • Eli Zaretskii's avatar
      MS-Windows followup for 2013-07-07T18:00:14Z!eggert@cs.ucla.edu. · 1d442672
      Eli Zaretskii authored
       nt/inc/sys/socket.h (F_SETFD, O_CLOEXEC, F_DUPFD_CLOEXEC)
       (FD_CLOEXEC): New macros.
       src/w32.c (sys_dup): Declare prototype.
       src/callproc.c [WINDOWSNT]: Include sys/socket.h.
    • Paul Eggert's avatar
      Make file descriptors close-on-exec when possible. · 067428c1
      Paul Eggert authored
      This simplifies Emacs a bit, since it no longer needs to worry
      about closing file descriptors by hand in some cases.
      It also fixes some unlikely races.  Not all such races, as
      libraries often open files internally without setting
      close-on-exec, but it's an improvement.
      * admin/merge-gnulib (GNULIB_MODULES): Add fcntl, pipe2.
      (GNULIB_TOOL_FLAGS): Avoid binary-io, close.  Do not avoid fcntl.
      * configure.ac (mkostemp): New function to check for.
      (PTY_OPEN): Pass O_CLOEXEC to posix_openpt.
      * lib/fcntl.c, lib/getdtablesize.c, lib/pipe2.c, m4/fcntl.m4:
      * m4/getdtablesize.m4, m4/pipe2.m4: New files, taken from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * nt/gnulib.mk: Remove empty gl_GNULIB_ENABLED_verify section;
      otherwise, gnulib-tool complains given close-on-exec changes.
      * nt/inc/ms-w32.h (pipe): Remove.
      * nt/mingw-cfg.site (ac_cv_func_fcntl, gl_cv_func_fcntl_f_dupfd_cloexec)
      (gl_cv_func_fcntl_f_dupfd_works, ac_cv_func_pipe2): New vars.
      * src/alloc.c (valid_pointer_p) [!WINDOWSNT]:
      * src/callproc.c (Fcall_process) [!MSDOS]:
      * src/emacs.c (main) [!DOS_NT]:
      * src/nsterm.m (ns_term_init):
      * src/process.c (create_process):
      Use 'pipe2' with O_CLOEXEC instead of 'pipe'.
      * src/emacs.c (Fcall_process_region) [HAVE_MKOSTEMP]:
      * src/filelock.c (create_lock_file) [HAVE_MKOSTEMP]:
      Prefer mkostemp with O_CLOEXEC to mkstemp.
      * src/callproc.c (relocate_fd) [!WINDOWSNT]:
      * src/emacs.c (main): Use F_DUPFD_CLOEXEC, not plain F_DUPFD.
      No need to use fcntl (..., F_SETFD, FD_CLOEXEC), since we're
      now using pipe2.
      * src/filelock.c (create_lock_file) [! HAVE_MKOSTEMP]:
      Make the resulting file descriptor close-on-exec.
      * src/lisp.h, src/lread.c, src/process.c (close_load_descs, close_process_descs):
      * src/lread.c (load_descriptor_list, load_descriptor_unwind):
      Remove; no longer needed.  All uses removed.
      * src/process.c (SOCK_CLOEXEC): Define to 0 if not supplied by system.
      (close_on_exec, accept4, process_socket) [!SOCK_CLOEXEC]:
      New functions.
      (socket) [!SOCK_CLOEXEC]: Supply a substitute.
      (Fmake_network_process, Fnetwork_interface_list):
      (Fnetwork_interface_info, server_accept_connection):
      Make newly-created socket close-on-exec.
      * src/sysdep.c (emacs_open, emacs_fopen):
      Make new-created descriptor close-on-exec.
      * src/w32.c (fcntl): Support F_DUPFD_CLOEXEC well enough for Emacs.
      * src/w32.c, src/w32.h (pipe2): Rename from 'pipe', with new flags arg.
      Fixes: debbugs:14803
    • Eli Zaretskii's avatar
      Improve scrolling of windows whose font is different from frame's default. · 9aff9b38
      Eli Zaretskii authored
       lisp/simple.el (default-font-height, window-screen-lines): New
       (line-move, line-move-partial): Use them instead of
       frame-char-height and window-text-height.  This makes scrolling
       text smoother when the buffer's default face uses a font that is
       different from the frame's default font.
    • Jan Djärv's avatar
      *** empty log message *** · 0da857dd
      Jan Djärv authored
    • Paul Eggert's avatar
      Fix openp errno handling. · 5f86adcd
      Paul Eggert authored
      * callproc.c (Fcall_process): Preserve openp errno around close.
      * lread.c (openp): Set errno when returning -1, as some callers
      expect this.
  3. 06 Jul, 2013 22 commits
  4. 05 Jul, 2013 6 commits
    • Paul Eggert's avatar
      Remove duplicate #include directives. · 47ba6d43
      Paul Eggert authored
      * xfaces.c:
      Don't include stdio.h twice.
      * buffer.c [USE_MMAP_FOR_BUFFERS]:
      Don't include sys/types.h or stdio.h twice.
      * fileio.c [WINDOWSNT | MSDOS]: Don't include fcntl.h twice.
      * lread.c: Don't include coding.h twice.
      * nsfont.m: Don't include frame.h twice.
      * process.c [HAVE_RES_INIT]: Don't include <netinet/in.h> twice.
      * ralloc.c: Don't include <unistd.h> twice.
      * xdisp.c: Don't include font.h twice.
      * xterm.c: Don't include fontset.h twice.
      * xterm.h [USE_X_TOOLKIT]: Don't include X11/StringDefs.h twice.
    • Glenn Morris's avatar
    • Michael Albinus's avatar
      Fix previous patch. · c0747758
      Michael Albinus authored
    • Michael Albinus's avatar
      * automated/file-notify-tests.el · 84b6d3df
      Michael Albinus authored
      (file-notify-test-remote-temporary-file-directory): Use
      `null-device' on w32.
      (file-notify--test-tmpfile, file-notify--test-tmpfile1)
      (file-notify--test-results, file-notify--test-event)
      (file-notify--deftest-remote, file-notify--event-test)
      (file-notify--test-make-temp-name): Renamed, in order to mark them
      (tramp-message-show-message, tramp-read-passwd): Tweak them for
      better fitting in noninteractive tests.
      (file-notify-test00-availability): Renamed from `file-notify-test0'.
      (file-notify-test01-add-watch): Renamed from `file-notify-test1'.
      Use `temporary-file-directory '.
      (file-notify-test01-add-watch-remote): New test.
      (file-notify-test02-events): Renamed from `file-notify-test2'.
      (file-notify-test02-events-remote): Renamed from `file-notify-test3'.
      (file-notify-test03-autorevert): Renamed from
      `file-notify-test4'.  Use timeouts.
      (file-notify-test03-autorevert-remote): Renamed from
    • Stephen Berman's avatar
      * calendar/todo-mode.el: Add handling of file deletion, both by · d610f6dd
      Stephen Berman authored
      mode command and externally.  Fix various related bugs.  Clarify
      Commentary and improve some documentation strings and code.
      (todo-delete-file): New command.
      (todo-check-file): New function.
      (todo-show): Handle external deletion of the file we're trying to
      show.  Replace called-interactively-p by an optional
      prefix argument to avoid problematic interaction with catch form
      when byte compiled (bug#14702).
      (todo-quit): Handle external deletion of the archive's todo file.
      Make sure the buffer that was visiting the archive file is still
      live before trying to bury it.
      (todo-category-completions): Handle external deletion of any
      category completion files.
      (todo-jump-to-category, todo-basic-insert-item): Recalculate list
      of todo files, in case of external deletion.
      (todo-add-file): Replace unnecessary setq by let-binding.
      (todo-find-archive): Check whether there are any archives.
      Replace unnecessary setq by let-binding.
      (todo-archive-done-item): Use find-file-noselect to get the
      archive buffer whether or not the archive already exists.  Remove
      superfluous code.  Use file size instead of buffer-file-name to
      check if the archive is new; if it is, update list of archives.
      (todo-default-todo-file): Allow nil to be a valid value for when
      there are no todo files.
      (todo-reevaluate-default-file-defcustom): Use corrected definition
      of todo-default-todo-file.
      (todo-key-bindings-t+a+f): Add key binding for todo-delete-file.
      (todo-delete-category, todo-show-categories-table)
      (todo-category-number): Clarify comment.
      (todo-filter-items): Clarify documentation string.
      (todo-show-current-file, todo-display-as-todo-file)
      (todo-reset-and-enable-done-separator): Tweak documentation string.
      (todo-done-separator): Make separator length window-width, since
      bug#2749 is now fixed.
      Fixes: debbugs:14688
    • Michael Albinus's avatar
      * net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch): Support · ddbdfd6f
      Michael Albinus authored
      both "gvfs-monitor-dir" and "inotifywait".
      (tramp-sh-file-inotifywait-process-filter): Renamed from
      (tramp-get-remote-gvfs-monitor-dir): New defuns.