1. 20 Feb, 2013 1 commit
    • Glenn Morris's avatar
      Rework recent image-multi-frame stuff a little · dc504515
      Glenn Morris authored
      * image.el (image-current-frame): Change from variable to function.
      (image-show-frame): Rename from image-nth-frame.  Update callers.
      * image-mode.el (image-multi-frame): New variable.
      (image-mode-map, image-mode, image-goto-frame):
      Use image-multi-frame rather than image-current-frame.
      (image-mode, image-goto-frame):
      Use image-current-frame as function rather than as variable.
  2. 16 Feb, 2013 4 commits
    • Glenn Morris's avatar
      Generalize "animated" images to "multi-frame" images · ed8d7fca
      Glenn Morris authored
      * lisp/image.el (image-animated-types): Remove.
      (image-multi-frame-p): Rename from image-animated-p, and generalize.
      (image-animated-p): Make obsolete alias.
      (image-animate, image-nth-frame, image-animate-timeout):
      Use image-multi-frame-p.
      (image-animate-timeout): If no delay, use image-default-frame-delay.
      * lisp/image-mode.el (image-mode, image-toggle-animation):
      Use image-multi-frame-p.
      (image-mode): Adjust startup message for a multi-frame image.
      * lisp/gnus/shr.el (shr-put-image): Only animate images that specify a delay.
      This is consistent with the old image-animated-p behavior.
      * etc/NEWS: Add placeholder for this.
      Fixes: debbugs:10739
    • Glenn Morris's avatar
      Add variables for default/minimum animated image frame delay · 99e619b6
      Glenn Morris authored
      * lisp/image.el (image-default-frame-delay): New variable.
      (image-animated-p): Use image-default-frame-delay.
      (image-minimum-frame-delay): New constant.
      (image-animate-timeout): Use image-minimum-frame-delay.
    • Glenn Morris's avatar
      Add commands for navigating multi-frame images · c0211c4e
      Glenn Morris authored
      * lisp/image.el (image-nth-frame): New, split from image-animate-timeout.
      (image-animate-timeout): Use image-nth-frame.
      * lisp/image-mode.el (image-goto-frame, image-next-frame)
      (image-previous-frame): New commands.
      (image-mode-map): Add new frame commands.
      * etc/NEWS: Mention this.
    • Glenn Morris's avatar
      Display a mode-line frame counter for animated images · bb9dfee1
      Glenn Morris authored
      * lisp/image.el (image-current-frame): New variable.
      (image-animate-timeout): Set image-current-frame.
      * lisp/image-mode.el (image-mode): For animated images,
      display a frame counter via mode-line-process.
  3. 01 Jan, 2013 1 commit
  4. 18 Nov, 2012 1 commit
  5. 02 Nov, 2012 1 commit
  6. 23 Oct, 2012 1 commit
  7. 22 Oct, 2012 1 commit
  8. 23 Sep, 2012 1 commit
    • Chong Yidong's avatar
      Remove LIBRARIES arg from w32_delayed_load and friends. · d07ff9db
      Chong Yidong authored
      These always use Vdynamic_library_alist anyway.
      * src/image.c (Finit_image_library, lookup_image_type)
      (define_image_type): Remove now-unneeded second arg.
      (init_xpm_functions, init_png_functions, init_jpeg_functions)
      (init_tiff_functions, init_gif_functions, init_svg_functions):
      Arglist and w32_delayed_load calling convention changed.
      (gs_type): Remove init_gs_functions; there is no such function.
      * src/gnutls.c (init_gnutls_functions): Caller changed; remove arg.
      (Fgnutls_available_p): Caller changed.
      * src/xml.c (init_libxml2_functions, Flibxml_parse_html_region)
      (Flibxml_parse_xml_region): Likewise.
      * src/dispextern.h (struct image_type): Remove arg from init function.
      * src/w32.c (w32_delayed_load): Remove LIBRARIES argument; always use
      * lisp/image.el (image-type-available-p): Change caller to
  9. 13 Sep, 2012 1 commit
    • Paul Eggert's avatar
      Fix glitches caused by addition of psec to timers. · 72eac303
      Paul Eggert authored
      * etc/NEWS: Document timer format change.
      * lisp/image.el (image-animate-timer):
      * lisp/time.el (display-time-world-timer):
      Use timer--function and timer--args rather than raw access to
      timer vector.
      * lisp/gnus/gnus-art.el (gnus-article-stop-animations):
      Use timer--function rather than raw access to timer vector.
      Fixes: debbugs:12430
  10. 15 Aug, 2012 1 commit
  11. 11 Jun, 2012 1 commit
  12. 04 Jun, 2012 2 commits
  13. 03 Jun, 2012 1 commit
  14. 02 Jun, 2012 1 commit
    • Chong Yidong's avatar
      Add more enabled ImageMagick types. · 95f520b5
      Chong Yidong authored
      * lisp/image.el (imagemagick-enabled-types): Rename from
      imagemagick-types-enable.  Add many more types.
      (imagemagick-types-inhibit): Change default to nil.
      (imagemagick-filter-types): Caller changed.
  15. 31 May, 2012 3 commits
  16. 25 May, 2012 1 commit
  17. 26 Apr, 2012 1 commit
  18. 16 Apr, 2012 1 commit
    • Chong Yidong's avatar
      Call imagemagick-register-types automatically. · c505aaeb
      Chong Yidong authored
      * lisp/image.el (imagemagick--extension-regexp): New variable.
      (imagemagick-register-types): Use it.
      (imagemagick-types-inhibit): Add :set function.  Allow new value
      of t to inhibit all types.
      * lisp/loadup.el (fboundp): Preload regexp-opt, needed by
      * lisp/emacs-lisp/regexp-opt.el (regexp-opt-charset): Avoid cl macros,
      so we can preload it.
  19. 10 Apr, 2012 1 commit
    • Lars Magne Ingebrigtsen's avatar
      Make `put-image' return the overlay created · bc72b5d9
      Lars Magne Ingebrigtsen authored
      * image.el (put-image): Return the overlay created instead of the
      optional input string.  Note that this may break code
      that is (for some reason or other) depending on `put-image'
      returning the string.
      Fixes: debbugs:7834
  20. 30 Mar, 2012 1 commit
    • Chong Yidong's avatar
      Updates for Display chapter of Lisp manual. · 5319014e
      Chong Yidong authored
      * doc/lispref/display.texi (Image Formats): Add imagemagick type.
      (Image Descriptors): Mention how they are used.
      (ImageMagick Images): Clarify role of imagemagick-register-types.
      (Character Display): Don't mention glyph tables.
      (Display Tables): Use make-glyph-code in example.
      (Glyphs): Avoid "simple glyph code" terminology.  Note that glyph
      tables are semi-obsolete.  De-document create-glyph.
      (Glyphless Chars): Note that display tables override this.
      (Bidirectional Display): Copyedits.  Introduce "bidirectional
      reordering" terminology, and use it.
      * doc/emacs/files.texi (File Conveniences): Clarify Imagemagick discussion.
      * lisp/image.el (imagemagick-types-inhibit)
      (imagemagick-register-types): Doc fix.
  21. 28 Feb, 2012 1 commit
  22. 08 Feb, 2012 1 commit
  23. 07 Feb, 2012 2 commits
  24. 04 Feb, 2012 1 commit
  25. 03 Feb, 2012 1 commit
    • Glenn Morris's avatar
      Document animated image API · eea14f31
      Glenn Morris authored
      * doc/lispref/display.texi (GIF Images): Mention animation.
      Remove commented-out old example of animation.
      (Animated Images): New subsection.
      * doc/lispref/elisp.texi (Top):
      * doc/lispref/vol1.texi (Top):
      * doc/lispref/vol2.texi (Top): Add Animated Images menu entry.
      * lisp/image-mode.el (image-animate-loop, image-toggle-animation): Doc fixes.
      * lisp/image.el (image-animated-p): Doc fix.  Use image-animated-types.
      (image-animate-timeout): Doc fix.
      * etc/NEWS: Markup.
  26. 11 Jan, 2012 1 commit
  27. 05 Jan, 2012 1 commit
  28. 16 Sep, 2011 1 commit
  29. 25 Jul, 2011 1 commit
  30. 17 Jul, 2011 1 commit
  31. 14 Jul, 2011 1 commit
  32. 11 Jun, 2011 1 commit
    • Chong Yidong's avatar
      Handle gif subimage animation delay correctly. · 1100a63c
      Chong Yidong authored
      * lisp/image.el (image-animated-p): Return animation delay in seconds.
      Avoid bit manipulation in Lisp; use `delay' entry in the metadata.
      (image-animate-timeout): Remove DELAY argument.  Use
      image-animated-p to get animation delay for each frame.
      (image-animate): Caller changed.
      * src/image.c (gif_load): Add animation frame delay to the metadata.
      (syms_of_image): Use DEFSYM.  New symbol `delay'.
  33. 07 Jun, 2011 1 commit
    • Chong Yidong's avatar
      Some changes and re-organization for animated gif support. · 18af70d0
      Chong Yidong authored
      * lisp/image.el (image-animate-max-time): Moved to image-mode.el.
      (create-animated-image): Remove unnecessary function.
      (image-animate): Rename from image-animate-start.  New arg.
      (image-animate-stop): Removed; just use image-animate-timer.
      (image-animate-timer): Use car-safe.
      (image-animate-timeout): Rename argument.
      * lisp/image-mode.el (image-toggle-animation): New command.
      (image-mode-map): Bind it to RET.
      (image-mode): Update message.
      (image-toggle-display-image): Avoid a spurious cache flush.
      (image-transform-rotation): Doc fix.
      (image-transform-properties): Return quickly in the normal case.
      (image-animate-loop): Rename from image-animate-max-time.