1. 21 Dec, 2016 2 commits
    • Paul Eggert's avatar
      Port dumping better to WSL · cf6ce9a1
      Paul Eggert authored
      Problem reported by Angelo Graziosi in:
      http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00822.html
      * src/sysdep.c (disable_address_randomization):
      Detect buggy platforms where 'personality' always returns 0.
      cf6ce9a1
    • Michael Albinus's avatar
      Remove gateway methods in Tramp · 8661313e
      Michael Albinus authored
      * doc/misc/tramp.texi (Top, Configuration): Remove section
      `Gateway methods', insert section `Firewalls' in menu.
      (History): Gateways are removed now.
      (Gateway methods): Remove section.
      (Multi-hops, Traces and Profiles): Don't reference to gateways anymore.
      (Firewalls): New section.
      
      * etc/NEWS: Gateway methods in Tramp have been removed.
      
      * lisp/net/tramp.el (tramp-methods): Adapt docstring.
      (tramp-file-name-port, tramp-accept-process-output): Simplify.
      
      * lisp/net/tramp-gw.el: Remove.
      
      * lisp/net/tramp-sh.el (tramp-gw-tunnel-method)
      (tramp-gw-socks-method): Remove declarations.
      (tramp-methods) <scp, scpx, ssh, sshx, telnet, nc, plink, pscp>:
      Remove `tramp-gw-args' and `tramp-default-port'.  (Bug#18967)
      (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-compute-multi-hops, tramp-maybe-open-connection):
      Remove gateway support.
      
      * test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults):
      Remove gateway tests.
      8661313e
  2. 20 Dec, 2016 6 commits
    • Mark Oteiza's avatar
      ; Revert "Recognize graphicsmagick in image-dired" · 221d3a97
      Mark Oteiza authored
      This reverts commit 5c266405.
      There are too many annoying differences between GM and IM to make this
      default behavior.
      221d3a97
    • Tino Calancha's avatar
      files-test-read-file-in-: Delete temporary dir on exit · 15817f4e
      Tino Calancha authored
      * test/lisp/files-tests.el (files-test-read-file-in-~):
      Create subdir inside dir.
      15817f4e
    • Christopher Genovese's avatar
      ibuffer: New filters and commands · 35aaa6b6
      Christopher Genovese authored
      Add several new filters and improve documentation.
      See discussion on:
      https://lists.gnu.org/archive/html/emacs-devel/2016-11/msg00399.html
      * lisp/ibuf-ext.el: Add paragraph to file commentary.
      (ibuffer-saved-filters, ibuffer-filtering-qualifiers)
      (ibuffer-filter-groups): Update doc string.
      (ibuffer-unary-operand): Add new function that transparently
      handles 'not' formats for compound filters.
      (ibuffer-included-in-filter-p): Handle 'not' fully; update doc string.
      (ibuffer-included-in-filter-p-1): Handle 'and' compound filters.
      (ibuffer-decompose-filter): Handle 'and' as well,
      and handle 'not' consistently with other uses.
      (ibuffer-and-filter): New defun analogous to 'ibuffer-or-filter'.
      (ibuffer--or-and-filter): New defun.
      (ibuffer-or-filter, ibuffer-and-filter): Use it.
      (ibuffer-format-qualifier): Handle 'and' filters as well.
      (ibuffer-filter-by-basename, ibuffer-filter-by-file-extension)
      (ibuffer-filter-by-directory, ibuffer-filter-by-starred-name)
      (ibuffer-filter-by-modified, ibuffer-filter-by-visiting-file):
      Add new pre-defined filters.
      (ibuffer-filter-chosen-by-completion): Add new interactive command
      for easily choosing a filter from the descriptions.
      * lisp/ibuffer.el (ibuffer-mode-map):
      Bind ibuffer-filter-by-basename, ibuffer-filter-by-file-extension,
      ibuffer-filter-by-starred-name, ibuffer-filter-by-modified,
      ibuffer-filter-by-visiting-file to '/b', '/.', '/*', '/i', '/v'
      respectively; bind 'ibuffer-or-filter', 'ibuffer-and-filter',
      'ibuffer-pop-filter' ,'ibuffer-pop-filter-group' and
      'ibuffer-filter-disable' to '/|', '/&', '/<up>', '/S-<up>'
      and '/ DEL' respectively.
      * test/lisp/ibuffer-tests.el (ibuffer-autoload): Add appropriate
      skip specification.
      Add menu entries for the new filters.
      (ibuffer-filter-inclusion-1, ibuffer-filter-inclusion-2
      ibuffer-filter-inclusion-3, ibuffer-filter-inclusion-4
      ibuffer-filter-inclusion-5, ibuffer-filter-inclusion-6
      ibuffer-filter-inclusion-7, ibuffer-filter-inclusion-8
      ibuffer-decompose-filter, ibuffer-and-filter
      ibuffer-or-filter): Add new tests; they are skipped unless
      ibuf-ext is loaded.
      ; * etc/NEWS: Add entries for new user-facing features.
      35aaa6b6
    • Mark Oteiza's avatar
      Update NEWS · f8072cd5
      Mark Oteiza authored
      * etc/NEWS (Image-Dired): New section.
      f8072cd5
    • Mark Oteiza's avatar
      Recognize graphicsmagick in image-dired · 5c266405
      Mark Oteiza authored
      * lisp/image-dired.el (image-dired-cmd-create-thumbnail-program):
      (image-dired-cmd-create-thumbnail-options):
      (image-dired-cmd-create-temp-image-program):
      (image-dired-cmd-create-temp-image-options):
      (image-dired-cmd-create-standard-thumbnail-options):
      (image-dired-cmd-rotate-thumbnail-program):
      (image-dired-cmd-rotate-thumbnail-options): Account for existence of
      gm(1) executable.
      5c266405
    • Mark Oteiza's avatar
      Implement asynchronous thumbnail generation in image-dired · 36b9973d
      Mark Oteiza authored
      Additionally, all FOO-options defcustoms that were in fact shell command
      strings have been converted to argument lists.  Another method for
      shrinking PNG thumbs with optipng(1) has been added.
      * lisp/image-dired.el: Remove TODO item in commentary.
      (image-dired-cmd-create-thumbnail-options):
      (image-dired-cmd-create-temp-image-options):
      (image-dired-cmd-rotate-thumbnail-options):
      (image-dired-cmd-rotate-original-options):
      (image-dired-cmd-write-exif-data-options):
      (image-dired-cmd-read-exif-data-options): Convert to argument lists.
      (image-dired-cmd-pngnq-program, image-dired-cmd-pngcrush-program):
      Change string type to file.
      (image-dired-cmd-create-standard-thumbnail-command): Remove.
      (image-dired-cmd-pngnq-options):
      (image-dired-cmd-create-standard-thumbnail-options):
      (image-dired-cmd-optipng-program, image-dired-cmd-optipng-options):
      New defcustoms.
      (image-dired-queue, image-dired-queue-active-jobs):
      (image-dired-queue-active-limit): New variables.
      (image-dired-pngnq-thumb, image-dired-pngcrush-thumb):
      (image-dired-optipng-thumb): New functions.
      (image-dired-create-thumb-1): Renamed from image-dired-create-thumb.
      Use start-process instead of call-process.  Set file modes.  Trigger
      PNG file optimization in process sentinel.
      (image-dired-thumb-queue-run, image-dired-create-thumb): New functions.
      (image-dired-display-thumbs):
      (image-dired-create-thumbs): Don't expect call-process return value.
      (image-dired-display-image, image-dired-rotate-thumbnail): Use
      start-process instead of call-process.
      (image-dired-rotate-original, image-dired-set-exif-data):
      (image-dired-get-exif-data): Adapt to arguments being an arg list.
      36b9973d
  3. 19 Dec, 2016 5 commits
    • Andreas Schwab's avatar
      Protect change of window's buffer in vertical-motion against unwinds (bug#25209) · 85aebc12
      Andreas Schwab authored
      * indent.c (restore_window_buffer): New function.
      (Fvertical_motion): Use it to restore window's buffer.
      85aebc12
    • Glenn Morris's avatar
      Improve default load-path for uninstalled CANNOT_DUMP builds · 504e3846
      Glenn Morris authored
      * src/lread.c (load_path_default) [CANNOT_DUMP]:
      Use build load-path if we seem to be running uninstalled.  (Bug#24974)
      I think this became an issue several years ago when we stopped
      using EMACSLOADPATH in the Makefiles; however this change should
      improve the CANNOT_DUMP uninstalled case in general.
      504e3846
    • Eli Zaretskii's avatar
      Fix crashes upon C-g on Posix TTY frames · fe3188b1
      Eli Zaretskii authored
      * src/thread.h (struct thread_state): New member not_holding_lock.
      (maybe_reacquire_global_lock): Add prototype.
      * src/thread.c: Include syssignal.h.
      (maybe_reacquire_global_lock): New function.
      (really_call_select): Set the not_holding_lock member of the
      thread state before releasing the lock, and rest it after
      re-acquiring the lock when the select function returns.  Block
      SIGINT while doing this to make sure we are not interrupted on TTY
      frames.
      * src/sysdep.c (block_interrupt_signal, restore_signal_mask): New
      functions.
      * src/syssignal.h (block_interrupt_signal, restore_signal_mask):
      Add prototypes.
      * src/keyboard.c (read_char) [THREADS_ENABLED]: Call
      maybe_reacquire_global_lock.  (Bug#25178)
      fe3188b1
    • Sam Steingold's avatar
      avoid Eager macro-expansion failure: (void-function string-to-list) · 657bcaf5
      Sam Steingold authored
      * loadup.el [ns]: "ucs-normalize" uses `string-to-list' which is defined
        in "mule-util", so we have to load "mule-util" before "ucs-normalize",
        otherwise I get "Eager macro-expansion failure" on "make bootstrap"
      657bcaf5
    • Michael Albinus's avatar
      Fix Bug#24980 · 516b4c38
      Michael Albinus authored
      * lisp/ido.el (ido-add-virtual-buffers-to-list):
      Suppress Tramp invocation.  (Bug#24980)
      516b4c38
  4. 18 Dec, 2016 5 commits
  5. 17 Dec, 2016 5 commits
    • Reuben Thomas's avatar
      Fix spelling mistake in private defun name (Bug#25218) · 1a15d14e
      Reuben Thomas authored
      lisp/textmodes/flyspell.el (flyspell-ajust-cursor-point): Rename to
      `flyspell-adjust-cursor-point'.
      1a15d14e
    • Reuben Thomas's avatar
      Remove XEmacs support from flyspell.el (Bug#25218) · 63f827ab
      Reuben Thomas authored
      lisp/textmodes/flyspell.el (flyspell-prog-mode, flyspell-mode-on):
      (flyspell-word, flyspell-delete-region-overlays):
      (flyspell-correct-word-before-point): Remove XEmacs support.
      (flyspell-xemacs-popup): Remove XEmacs-specific defun.
      63f827ab
    • Michael Albinus's avatar
      More tests for Tramp · cfa2fb26
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-drop-volume-letter): Handle quoted
      file names.
      
      * lisp/net/tramp-sh.el (tramp-make-copy-program-file-name): Quote file
      name properly.
      
      * test/lisp/net/tramp-tests.el (tramp-test05-expand-file-name):
      Mark quoted file name as absolute.  (Bug#25183)
      (tramp--test-windows-nt-and-batch)
      (tramp--test-windows-nt-and-pscp-psftp-p): New defuns.
      (tramp--test-windows-nt-or-smb-p): Rename from
      `tramp--test-smb-windows-nt-p'.  Adapt callees.
      (tramp--test-check-files): Improve checks for environment variables.
      (tramp-test33-special-characters)
      (tramp-test33-special-characters-with-stat)
      (tramp-test33-special-characters-with-perl)
      (tramp-test33-special-characters-with-ls, tramp-test34-utf8)
      (tramp-test34-utf8-with-stat, tramp-test34-utf8-with-perl)
      (tramp-test34-utf8-with-ls): Add more checks for skip.
      cfa2fb26
    • Eli Zaretskii's avatar
      Fix comments · 0390edcb
      Eli Zaretskii authored
      * src/thread.h (struct thread_state): Fix comments.
      * src/process.c (wait_reading_process_output): Fix a typo in
      commentary.
      0390edcb
    • Eli Zaretskii's avatar
      Fix crashes on MS-Windows during dumping · 0757b4f2
      Eli Zaretskii authored
      * src/unexw32.c (get_section_info): Make extra_bss_size be the
      maximum of extra_bss_size and extra_bss_size_static.  This avoids
      computing the size of the output file smaller than it actually
      needs to be, which then causes copy_executable_and_dump_data to
      write beyond the requested size of the file mapping, thus relying
      on the OS roundup to page boundary to save us from ourselves.  See
      http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00642.html
      for the details.
      
      * lib/stdio-impl.h: Revert the workaround fix of not including
      errno.h for MinGW.
      0757b4f2
  6. 16 Dec, 2016 7 commits
    • Mark Oteiza's avatar
      Be more selective clearing the image cache · 6bf83218
      Mark Oteiza authored
      * lisp/image-dired.el (image-dired-create-thumbs):
      (image-dired-rotate-thumbnail, image-dired-refresh-thumb): Only clear
      the current thumbnail file from the image cache.
      6bf83218
    • Eli Zaretskii's avatar
      Unbreak the MinGW build · b3cf2811
      Eli Zaretskii authored
      * lib/stdio-impl.h [__MINGW32__]: Don't include errno.h.  Without
      this, temacs crashes while dumping.
      b3cf2811
    • NicolasPetton's avatar
      Make seq-into return the sequence when no conversion needed · fb2fdb14
      NicolasPetton authored
      * lisp/emacs-lisp/seq.el (seq-into): Do not convert the sequence when
        no conversion is needed.
      * test/lisp/emacs-lisp/seq-tests.el (test-seq-into-and-identity): Add
        a regression test checking for identity.
      fb2fdb14
    • Mark Oteiza's avatar
      New commands image-scroll-left and image-scroll-right · cdf5340f
      Mark Oteiza authored
      * etc/NEWS: Mention them.
      * lisp/image-mode.el (image-scroll-left, image-scroll-right): New
      functions.
      cdf5340f
    • Mark Oteiza's avatar
      More image-dired refactoring · f8a47b07
      Mark Oteiza authored
      * lisp/image-dired.el (image-dired-thumbnail-mode):
      (image-dired-display-image-mode): Add :group 'image-dired so
      customize-mode works.
      (image-dired-display-image): Rearrange.
      (image-dired-copy-with-exif-file-name): This map is for side effect.
      (image-dired-dired-edit-comment-and-tags): Just use #'identity.
      f8a47b07
    • Mark Oteiza's avatar
      9886239b
    • Mark Oteiza's avatar
      Teach image-dired to also generate large thumbs · 7ec55a18
      Mark Oteiza authored
      * lisp/image-dired.el (image-dired-thumbnail-storage): Add
      standard-large option.
      (image-dired-thumb-size): Add condition for standard-large storage.
      (image-dired-insert-thumbnail): Check for new option.  Change
      thumbnail path conditionally.
      (image-dired-thumb-size): New function.
      (image-dired-create-thumb, image-dired-line-up-dynamic): Use it.
      7ec55a18
  7. 15 Dec, 2016 10 commits
    • Paul Eggert's avatar
      Merge from gnulib · 5942af61
      Paul Eggert authored
      This incorporates:
      2016-12-14 xalloc-oversized: check for PTRDIFF_MAX too
      2016-12-12 fpending: port to native Windows with MSVC
      * .gitignore: Do not ignore lib/stdio-impl.h.
      * lib/fpending.c, lib/xalloc-oversized.h, m4/fpending.m4:
      Copy from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/stdio-impl.h:
      New file, copied from gnulib.
      * nt/gnulib.mk (EXTRA_DIST): Add stdio-impl.h.
      5942af61
    • Paul Eggert's avatar
      * emacs-document.svg: Append newline. · b80485f6
      Paul Eggert authored
      b80485f6
    • Mark Oteiza's avatar
      Don't abuse princ and spam messages · b22cb969
      Mark Oteiza authored
      * lisp/image-dired.el (image-dired-format-properties-string): Nix princ.
      (image-dired-display-thumb-properties):
      (image-dired-dired-display-properties): Nix princ.  Bind
      message-log-max to nil.
      b22cb969
    • Mark Oteiza's avatar
      Inherit things from special-mode and image-mode · 214acb1e
      Mark Oteiza authored
      * lisp/image-dired.el: Require image-mode library.
      (image-dired-thumbnail-mode-map): Remove superfluous binding.
      (image-dired-display-image-mode-map): Remove superfluous binding.
      Add movement remaps from image-mode-map.
      (image-dired-thumbnail-mode): Derive from special-mode.
      (image-dired-display-image-mode): Derive from special-mode. Call
      image-mode-setup-winprops.
      214acb1e
    • Mark Oteiza's avatar
      Fix some image-dired customization types · d79ff2a4
      Mark Oteiza authored
      * lisp/image-dired.el (image-dired): Add info link to defgroup.
      (image-dired-dir, image-dired-gallery-dir): Set type to directory.
      (image-dired-db-file, image-dired-temp-image-file):
      (image-dired-cmd-create-thumbnail-program):
      (image-dired-cmd-create-temp-image-program):
      (image-dired-cmd-rotate-thumbnail-program):
      (image-dired-cmd-rotate-original-program):
      (image-dired-temp-rotate-image-file):
      (image-dired-cmd-write-exif-data-program):
      (image-dired-cmd-read-exif-data-program): Set type to file.
      (image-dired-create-thumb, image-dired-line-up-dynamic): Check storage
      type at runtime, since setting image-dired-thumb-size does not
      automatically set image-dired-thumb-width and image-dired-thumb-height.
      d79ff2a4
    • Eli Zaretskii's avatar
      Prevent crashes in xg_select due to concurrency · 4fbda463
      Eli Zaretskii authored
      * src/xgselect.c (xg_select): Don't call Glib functions that use
      'context' if we failed to acquire it.  This means some other
      thread owns the context, in which case both using the context and
      calling block_input/unblock_input will step on that thread's toes
      and eventually lead to crashes.  (Bug#25172)
      4fbda463
    • NicolasPetton's avatar
      Fix circular list handling in seq-mapn · 09a66ceb
      NicolasPetton authored
      * lisp/emacs-lisp/seq.el (seq-mapn): Do not copy list arguments.
      * test/lisp/emacs-lisp/seq-tests.el (test-seq-mapn-circular-lists):
        Add a regression test.
      09a66ceb
    • Michael Albinus's avatar
      Check in tramp-tests.el, that environment variables are set correctly · acbe32ab
      Michael Albinus authored
      * test/lisp/net/tramp-tests.el (tramp--test-check-files):
      Check also, that environment variables are set correctly.
      acbe32ab
    • Dominique Quatravaux's avatar
      Protect environment variables with double quotes in Tramp · d381db25
      Dominique Quatravaux authored
      * lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
      Protect environment variables with double quotes.
      
      Copyright-paperwork-exempt: yes
      d381db25
    • Tino Calancha's avatar