1. 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
  2. 15 Dec, 2016 11 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
    • Mark Oteiza's avatar
  3. 14 Dec, 2016 5 commits
    • Mark Oteiza's avatar
    • Mark Oteiza's avatar
      Recognize pngnq or pngnq-s9 · 53e8d7fb
      Mark Oteiza authored
      * lisp/image-dired.el (image-dired-cmd-pngnq-program): Also consider
      pngnq-s9 as a possible executable.
      53e8d7fb
    • Mark Oteiza's avatar
      Update standard image-dired thumbnail location · 66ccc659
      Mark Oteiza authored
      * lisp/image-dired.el (image-dired-thumb-name): Conform to the latest
      standard: consider XDG_CACHE_HOME, falling back on ~/.cache.
      66ccc659
    • Mark Oteiza's avatar
      Reset window scroll when displaying an image · 44a77d34
      Mark Oteiza authored
      When viewing a large image full size and scrolling, for instance, to
      the lower right corner, then selecting a much smaller image in the
      thumbnail buffer, the window stays scrolled so the new image is out of
      the window.  One must scroll back to the "origin" to view the new
      displayed image, or just kill the image-dired-display-image buffer and
      try again.  This fixes the issue.
      * lisp/image-dired.el (image-dired-display-window-width):
      (image-dired-display-window-height): Operate on a window as argument.
      (image-dired-display-image): Bind (image-dired-display-window) and use
      it. Set window vscroll and hscroll to zero when refreshing the
      buffer's contents.
      44a77d34
    • Mark Oteiza's avatar
      More image-dired polish · 51b2669a
      Mark Oteiza authored
      * lisp/image-dired.el (image-dired-file-name-at-point): New function.
      (image-dired-thumbnail-mode, image-dired-display-image-mode): Disable
      undo list. Add image-dired-file-name-at-point to
      file-name-at-point-functions to facilitate find-file and friends.
      (image-dired-thumbnail-display-external):
      (image-dired-dired-display-external): Use start-process instead, to
      avoid needlessly blocking and using a shell.
      51b2669a
  4. 13 Dec, 2016 17 commits
    • Phillip Lord's avatar
      Replace ldefs-boot with a much smaller file · c27b6459
      Phillip Lord authored
       * Makefile.in (bootstrap-build,generate-ldefs-boot): New targets.
         (bootstrap): Depend on bootstrap-build.
       * admin/ldefs-clean.el: New file.
       * lisp/Makefile.in (compile-first): Depend on loaddefs.el
       * lisp/ldefs-boot.el: Remove.
       * lisp/ldefs-boot-auto.el: New file.
       * lisp/ldefs-boot-manual.el: New file.
       * lisp/loadup.el: Load ldefs-boot-manual.el.
       * src/emacs.c (generating_ldefs_boot): New variable.
         (main): Check whether we are generating ldefs.
       * src/eval.c (autoload-do-load): Dump autoload forms to stderr when
         requested.
       * src/lisp.h (generating_ldefs_boot): New variable.
       * admin/gitmerge.el, admin/make-tarball.txt, admin/notes/copyright,
         lisp/Makefile.in, lisp/cus-dep.el, lisp/emacs-lisp/elint.el,
         lisp/finder.el, lisp/loadup.el, msdos/mainmake.v2: Update reference to
         ldefs-boot.
       * admin/update_autogen: Alter mechanism for ldefs-boot generation.
      c27b6459
    • Reuben Thomas's avatar
      Remove support for aspell < 0.60 (from 2004) · 9e6618be
      Reuben Thomas authored
      lisp/textmodes/ispell.el (ispell-check-version): Require Aspell 0.60.
      (ispell-aspell-dictionary-alist): Remove check that we have Aspell 0.60.
      9e6618be
    • Reuben Thomas's avatar
      Minor docstring and comment fixes to ispell.el · 97f327d8
      Reuben Thomas authored
      lisp/textmodes/ispell.el (ispell-aspell-dictionary-alist): Mention
      ispell-aspell-dictionary-alist, not ispell-dictionary-alist.
      (ispell-set-spellchecker-params): Change double-single quotes to
      single single quotes in comment.
      97f327d8
    • Reuben Thomas's avatar
      Remove unused variable · 94834bdf
      Reuben Thomas authored
      * lisp/textmodes/ispell.el (current-ispell-directory): Remove.
      94834bdf
    • Reuben Thomas's avatar
      Remove XEmacs-specific ispell-with-no-warnings · 6b5ac583
      Reuben Thomas authored
      * lisp/textmodes/ispell.el (ispell-with-no-warnings): Remove this
      defmacro, needed only for XEmacs.
      (ispell-command-loop, ispell-message): Use with-no-warnings directly.
      6b5ac583
    • Reuben Thomas's avatar
      Remove meaningless defconst ispell-version · 8af9cb22
      Reuben Thomas authored
      * lisp/textmodes/ispell.el (ispell-version): Since ispell.el is now
      firmly part of Emacs, and the version hasn’t changed since 2003, and
      isn’t used anywhere, remove it.  3rd-party code can better use the
      Emacs version, or feature or function checks.
      (ispell-check-version): No longer report ispell.el version.
      8af9cb22
    • Reuben Thomas's avatar
      Remove boundp test for always-bound symbol · e1aa7888
      Reuben Thomas authored
      * lisp/textmodes/ispell.el (ispell-message): mail-yank-prefix is
      defvar’d at the top of the file, so remove a test to see if it is
      bound.
      e1aa7888
    • Reuben Thomas's avatar
      Remove support for ispell < 3.1.12 · db6e1f82
      Reuben Thomas authored
      * lisp/textmodes/ispell.el (ispell-offset): Remove.
      (ispell-check-version): Require ispell >= 3.1.12, released in 1994.
      (ispell-process-line): No longer use ispell-offset.
      db6e1f82
    • Reuben Thomas's avatar
      Remove unused constant · 3affed01
      Reuben Thomas authored
      * lisp/textmodes/ispell.el (ispell-required-version): Remove.
      3affed01
    • Reuben Thomas's avatar
      Remove support for old versions of supercite and GNUS from ispell.el · 8315d50b
      Reuben Thomas authored
      * lisp/textmodes/ispell.el (ispell-message): Require supercite >= 3.0
      and GNUS >= 5.  Not exactly the bleeding edge!
      8315d50b
    • Reuben Thomas's avatar
      Remove remaining mentions of XEmacs from ispell.el · b989c415
      Reuben Thomas authored
      * lisp/textmodes/ispell.el (ispell-valid-dictionary-list):
      (ispell-add-per-file-word-list): Remove mentions of XEmacs from
      comments.
      b989c415
    • Reuben Thomas's avatar
      Remove XEmacs-specific minibuffer handling code from ispell.el · 8886f156
      Reuben Thomas authored
      * lisp/textmodes/ispell.el (ispell-init-process): Assume we are not in
      XEmacs.
      8886f156
    • Reuben Thomas's avatar
      Remove XEmacs-specific horizontal scrollbar handling in ispell.el · 6e88249c
      Reuben Thomas authored
      * lisp/textmodes/ispell.el (ispell-command-loop): Remove
      XEmacs-specific code.
      6e88249c
    • Reuben Thomas's avatar
      Remove XEmacs-specific code dealing with enable-multibyte-characters · 8245e5b9
      Reuben Thomas authored
      * lisp/textmodes/ispell.el (ispell-decode-string):
      (ispell-init-process):  Remove XEmacs-specific guard.
      8245e5b9
    • Reuben Thomas's avatar
      Remove XEmacs-specific code from ispell.el · ff5deddc
      Reuben Thomas authored
      * lisp/textmodes/ispell.el (ispell-menu-xemacs): Remove
      (ispell-menu-map-needed): Remove XEmacs-specific check.
      (ispell-word): Remove XEmacs-specific extent code.
      (ispell-init-process): Remove XEmacs workaround for local add-hook.
      Assume we have set-process-query-on-exit-flag.
      (ispell-kill-ispell, ispell-change-dictionary): Remove XEmacs
      workaround for called-interactively-p.
      ff5deddc
    • Reuben Thomas's avatar
      Remove some commented-out code · ada717ef
      Reuben Thomas authored
      lisp/textmodes/ispell.el (ispell-process)
      ispell-valid-dictionary-list): Remove commented-out code.
      ada717ef
    • Reuben Thomas's avatar
      Remove XEmacs and old Emacs highlighting code · c89dc9d8
      Reuben Thomas authored
      * lisp/textmodes/ispell.el
      (ispell-highlight-spelling-error-xemacs): Remove.
      (ispell-highlight-spelling-error): Assume display-color-p exists.
      c89dc9d8