1. 09 Jul, 2013 6 commits
  2. 08 Jul, 2013 13 commits
  3. 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
      9caab067
    • Juanma Barranquero's avatar
      ChangeLog fixes. · 5165d44a
      Juanma Barranquero authored
      5165d44a
    • 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
      	patch).
      	(viper--lookup-key,viper-catch-tty-ESC,viper-uncatch-tty-ESC,
      	viper-setup-ESC-to-escape): new functions (Stefan Monnier's
      	patch).
      	
      	* 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
      	patch).
      	
      	* 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.
      f1e6674b
    • 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/filelock.c:
       src/emacs.c:
       src/callproc.c [WINDOWSNT]: Include sys/socket.h.
      1d442672
    • 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
      067428c1
    • 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
       functions.
       (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.
      9aff9b38
    • Jan Djärv's avatar
      *** empty log message *** · 0da857dd
      Jan Djärv authored
      0da857dd
    • 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.
      5f86adcd
  4. 06 Jul, 2013 12 commits
    • Gnus developers's avatar
      Merge changes made in Gnus master · 6ed7a66a
      Gnus developers authored
      2013-07-06 Lars Ingebrigtsen <larsi@gnus.org>
      * gnus.texi (Group Parameters): Mention regexp
        substitutions (bug#11688).
      
      2013-07-06 Nathan Trapuzzano <nbtrap@nbtrap.com> (tiny change)
      * gnus.texi (Generic Marking Commands): Fix grammar (bug#13368).
      
      2013-07-06 Lars Ingebrigtsen <larsi@gnus.org>
      * gnus.texi (Emacsen): Fix version.
      * gnus-faq.texi (FAQ 1-6): Mention the correct Emacs version.
      
      2013-07-06 Lars Ingebrigtsen <larsi@gnus.org>
      * gnus-art.el (gnus-block-private-groups): Allow `global' methods to
        display images.
      * gnus.el (gnus-valid-select-methods): Mark nnrss as global.
      * message.el (message-cancel-news): According to
        <mailman.216.1372942181.12400.help-gnu-emacs@gnu.org>, "cancel" is
        preferred over "cmsg cancel" in the Subject.
      * nnir.el (nnir-engines): Note that the group specs are regexps
        (bug#13238).
      * gnus-msg.el (gnus-copy-article-buffer): If the article buffer has
        gotten read-only text properties, ensure that those aren't heeded when
        copying stuff over (bug#13434).
      * mm-view.el (mm-inline-text-html): Don't bug out on multipart messages
        (bug#13762).
      6ed7a66a
    • Glenn Morris's avatar
      * etc/NEWS: Tweak +++/--- description · 219afb88
      Glenn Morris authored
      219afb88
    • Glenn Morris's avatar
      * admin.el (make-manuals): Add the option to only make certain output types. · c7197e52
      Glenn Morris authored
      (manual-misc-html): Special-case ccmode and efaq.
      (manual-html-mono, manual-html-node, manual-pdf, manual-ps):
      Move creation of output directory here from make-manuals.
      (manual-html-fix-index-2): Avoid dynamic reference to `f'.
      c7197e52
    • Jan Djärv's avatar
      * lisp/files.el (write-file): Do not display confirm dialog for NS, · 1afb1d07
      Jan Djärv authored
      it does its own dialog, which can't be cancelled.
      
      * src/nsfns.m: Remove panelOK.
      (ns_fd_data): New.
      (ns_run_file_dialog): New function.
      (Fns_read_file_name): Fill in ns_fd_data, post an event and start the
      event loop, so file dialog is popped up by ns_run_file_dialog, called
      by sendEvent (Bug#14578).
      (EmacsSavePanel, EmacsOpenPanel): Remove ok and cancel methods.
      
      * src/nsterm.h (NSSavePanel): Update comment.
      (NSAPP_DATA2_RUNFILEDIALOG): Define.
      (ns_run_file_dialog): Declare.
      
      * src/nsterm.m (sendEvent:): Handle NSAPP_DATA2_RUNFILEDIALOG.
      1afb1d07
    • Eli Zaretskii's avatar
      Fix vertical cursor motion with non-default fonts. · 23de972a
      Eli Zaretskii authored
       lisp/simple.el (line-move-partial): Adjust the row returned by
       posn-at-point for the current window-vscroll.  (Bug#14567)
      23de972a
    • Michael Albinus's avatar
      * net/tramp-sh.el (tramp-sh-file-gvfs-monitor-dir-process-filter): · 54a42486
      Michael Albinus authored
      (tramp-sh-file-inotifywait-process-filter): Handle file names with spaces.
      54a42486
    • Michael Albinus's avatar
      Add TODO entry. · 47bd9301
      Michael Albinus authored
      47bd9301
    • Martin Rudalics's avatar
      lisp/window.el (window-state-put): Remove window if buffer was not restored. · 34ada5f4
      Martin Rudalics authored
      (window-state-put-stale-windows): New variable.
      (window--state-put-2): Save list of windows without matching buffer.
      (window-state-put): Remove "bufferless" windows if possible.
      34ada5f4
    • Juanma Barranquero's avatar
      11e03d89
    • David Kastrup's avatar
      lisp/gnus/auth-source.el (auth-source-netrc-parse-one): Allow empty strings in... · fa7f427c
      David Kastrup authored
      lisp/gnus/auth-source.el (auth-source-netrc-parse-one): Allow empty strings in authinfo file again (important for blank passwords).  This had been broken with 2013-06-15 change
      fa7f427c
    • Leo Liu's avatar
      * ido.el (ido-use-virtual-buffers): Allow new value 'auto. · 3504a4be
      Leo Liu authored
      (ido-enable-virtual-buffers): New variable.
      (ido-buffer-internal, ido-toggle-virtual-buffers)
      (ido-make-buffer-list): Use it.
      (ido-exhibit): Support turning on and off virtual buffers
      automatically.
      3504a4be
    • Eli Zaretskii's avatar
      Fix bug #14771 with scroll-step = 1 and non-nil line-spacing. · fdda0220
      Eli Zaretskii authored
       src/xdisp.c (default_line_pixel_height): New function.
       (pos_visible_p, move_it_vertically_backward, try_scrolling)
       (try_cursor_movement, redisplay_window, try_window)
       (try_window_id): Use it instead of FRAME_LINE_HEIGHT.  (Bug#14771)
       src/window.c (window_scroll_pixel_based): use
       default_line_pixel_height.
       src/dispextern.h (default_line_pixel_height): Add prototype.
       src/frame.c (x_set_line_spacing): Accept a float value for
       line-spacing parameter, per the documentation.
      fdda0220