1. 03 Dec, 2018 5 commits
    • Eli Zaretskii's avatar
      Fix WINDOWSNT/DOS_NT build · 2ff9dca1
      Eli Zaretskii authored
      Recent changes in sysdep.c and emacsclient unnecessarily
      removed useful code from DOS_NT builds.  This changeset
      reinstates that code.
      * nt/inc/ms-w32.h (tcdrain): Redirect to _commit.
      (fdatasync): No need to redirect anymore.
      
      * lib-src/emacsclient.c (flush_stdout): Don't avoid calling
      tcdrain on DOS_NT platforms.
      
      * src/sysdep.c (reset_sys_modes): Don't ifdef away the call to
      tcdrain on DOS_NT platforms.
      2ff9dca1
    • Paul Eggert's avatar
      emacsclient: don’t leak socket to child processes · 5c412405
      Paul Eggert authored
      * lib-src/emacsclient.c [!WINDOWSNT]: Include fcntl.h.
      (cloexec_socket): New function.
      (set_tcp_socket, set_local_socket): Use it.
      5c412405
    • Paul Eggert's avatar
      Use tcdrain, not fdatasync, to drain ttys · f5090b91
      Paul Eggert authored
      fdatasync is for storage devices, not ttys.
      * admin/merge-gnulib (GNULIB_MODULES): Remove fdatasync.
      * lib/fdatasync.c, m4/fdatasync.m4: Remove.
      * lib-src/Makefile.in (LIB_FDATASYNC):
      * src/Makefile.in (LIB_FDATASYNC):
      Remove.  All uses removed.
      * lib-src/emacsclient.c [!DOS_NT]:
      Include <termios.h>, for tcdrain.
      * lib-src/emacsclient.c (flush_stdout):
      * src/sysdep.c (reset_sys_modes): On ttys, use tcdrain instead
      of fdatasync (except don’t use either function if DOS_NT).
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      f5090b91
    • Paul Eggert's avatar
      Update from Gnulib · 25a33aa2
      Paul Eggert authored
      This incorporates:
      2018-11-30 memrchr: port better to clang
      2018-11-21 mktime: add libc-config dependency
      * build-aux/config.guess, build-aux/config.sub, lib/memrchr.c:
      Copy from Gnulib.
      * m4/gnulib-comp.m4: Regenerate.
      25a33aa2
    • Paul Eggert's avatar
      emacsclient: fix symlink/socket race · 3e5d7755
      Paul Eggert authored
      * lib-src/emacsclient.c (socket_status): New arg UID.
      All uses changed.
      (set_local_socket): Don’t create the unbound socket unless the
      initial sanity checks on the socket file succeed; this
      simplifies cleaning it up.  Check socket ownership again
      after connecting, to fix a race (Bug#33366).
      3e5d7755
  2. 02 Dec, 2018 12 commits
  3. 01 Dec, 2018 8 commits
  4. 30 Nov, 2018 8 commits
    • Paul Eggert's avatar
      Fix infloop in GC mark_kboards · 7d9fa89f
      Paul Eggert authored
      * src/keyboard.c (KBD_BUFFER_SIZE): Now a constant, not a macro.
      (kbd_fetch_ptr, kbd_store_ptr): These now always point somewhere
      into kbd_buffer, instead of sometimes pointing just past the
      end which led to serious bugs (Bug#33547).  All uses changed.
      (kbd_store_ptr): No longer volatile.  This variable has not been
      accessed by a signal handler for some time, it seems.
      (next_kbd_event, prev_kbd_event): New functions.
      (kbd_buffer_nr_stored, process_special_events): Simplify.
      7d9fa89f
    • Paul Eggert's avatar
      Fix core dump in dbus-message-internal · 7ecf49b5
      Paul Eggert authored
      Backport from master.
      * src/dbusbind.c (Fdbus_message_internal):
      Don’t go past array end (Bug#33530).
      7ecf49b5
    • Eli Zaretskii's avatar
    • Michael Albinus's avatar
      Fix Bug#33556 · c53e7f2c
      Michael Albinus authored
      * lisp/autorevert.el (auto-revert-notify-add-watch):
      Assert that a key in `auto-revert-notify-watch-descriptor-hash-list'
      is a valid file notification descriptor.  (Bug#33556)
      c53e7f2c
    • Michael Albinus's avatar
    • Michael Albinus's avatar
    • Eli Zaretskii's avatar
      Improve documentation of gdb-mi.el · bce1d1af
      Eli Zaretskii authored
      * lisp/progmodes/gdb-mi.el (gdb-show-changed-values)
      (gdb-max-children): Doc fixes.
      
      * doc/emacs/building.texi (Source Buffers, Stack Buffer)
      (GDB User Interface Layout): Mention some additional
      customizable variables.  (Bug#33548)
      bce1d1af
    • Robert Pluim's avatar
      Convert NS face colors to RGBA when comparing with frame values · 5f67353d
      Robert Pluim authored
      The NS port uses indexes into a color table to specify the colors of
      faces, whereas frames use RGBA pixel values.  In
      extend_face_to_end_of_line the two needed to be compared to ensure
      that the backgrounds of certain faces are not extended to the edge of
      the window, which was failing because of this difference, thus causing
      a visual difference with other platforms.  Convert from index to RGBA
      when doing such comparisons.
      
      * src/dispextern.h (FACE_COLOR_TO_PIXEL) [HAVE_NS]: New macro.  Call
      ns_color_index_to_rgba under NS only.
      
      * src/nsgui.h: Add prototype for ns_color_index_to_rgba.
      
      * src/nsterm.m (ns_color_index_to_rgba): New function.  Converts a
      color_table entry to corresponding RGBA pixel value.
      
      * src/xdisp.c (extend_face_to_end_of_line): Call FACE_COLOR_TO_PIXEL
      on face background color when comparing with frame color.
      5f67353d
  5. 29 Nov, 2018 3 commits
  6. 28 Nov, 2018 4 commits
    • Eric Abrahamsen's avatar
      Further small tweaks to Gnus modes cleanup · e8d7e3a5
      Eric Abrahamsen authored
      * lisp/gnus/gnus-sum.el: Remove explicit definition of
        `gnus-summary-mode-hook', this is now created automatically.
      * lisp/gnus/nnir.el (nnir-open-server): Attach `nnir-mode' to the
        `gnus-summary-prepared-hook', instead of
        `gnus-summary-mode-hook'. The latter no longer has access to the
        buffer-local value of `gnus-newsgroup-name', which `nnir-mode'
        needs.
      e8d7e3a5
    • Glenn Morris's avatar
      Merge from origin/emacs-26 · 415ef4a2
      Glenn Morris authored
      74a3a795 (origin/emacs-26) Fix a typo in a doc string
      911766d4 Minor markup fix in frames.texi
      19ed1e9a * lisp/net/trampver.el (customize-package-emacs-version-alist...
      d7132ad8 * lisp/mh-e/mh-e.el (customize-package-emacs-version-alist): ...
      5f392605 * lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Pass format to m...
      a291f624 Don't call xwidget functions until GTK has been initialized
      f0531b8e Improve documentation of Ediff wordwise commands
      2925ce5a Support Hunspell 1.7.0 in ispell.el
      03bb7a8d Avoid clearing echo-area message by auto-save-visited-file-name
      415ef4a2
    • Glenn Morris's avatar
      ; Merge from origin/emacs-26 · 2c59cfa8
      Glenn Morris authored
      The following commit was skipped:
      
      ea624626 Set tooltip text color (bug#33452)
      2c59cfa8
    • Glenn Morris's avatar
      Merge from origin/emacs-26 · b58e8b82
      Glenn Morris authored
      094fcf62 Fix more drawing bugs in NS port (bug#32932)
      b58e8b82