1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-04 11:40:22 +00:00
Commit Graph

127 Commits

Author SHA1 Message Date
Glenn Morris
acaf905b11 Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
Stefan Monnier
e69df51669 * lisp/image.el (imagemagick-register-types): Use regexp-opt. 2011-09-16 09:46:42 -04:00
Deniz Dogan
0f0a88b94c * lisp/image.el (insert-image): Clarifying docstring. 2011-07-25 03:44:10 +02:00
Lars Magne Ingebrigtsen
12dc863d62 * image.el (put-image): Doc typo fix. 2011-07-17 17:57:47 +02:00
Lars Magne Ingebrigtsen
6a57fb5f2b `put-image' doc fix
* image.el (put-image): Mention the `put-image' overlay property
(bug#7834).
2011-07-14 19:20:37 +02:00
Chong Yidong
1100a63ce5 Handle gif subimage animation delay correctly.
* 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'.
2011-06-11 19:03:16 -04:00
Chong Yidong
18af70d025 Some changes and re-organization for animated gif support.
* 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.
2011-06-07 14:32:12 -04:00
Chong Yidong
e8cbec34e8 Fix animated gifs (Bug#6981).
* lisp/image-mode.el (image-toggle-display-image): Ensure that the
image spec passed to the animate timer is the same object as in
the the buffer's display property.
(image-transform-properties): Doc fix.

* lisp/image.el (image-animate-max-time): Default to nil.

* lisp/image.el (image-animate-max-time): Allow nil and t values.
Default to nil.
(create-animated-image): Doc fix.
(image-animate-start): Remove second arg; just use
image-animate-max-time.
(image-animate-timeout): Doc fix.  Args changed.
2011-05-29 17:35:35 -04:00
Chong Yidong
d66c4c7ce6 Doc fixes for imagemagick support code.
* lisp/image.el (imagemagick-types-inhibit)
(imagemagick-register-types): Doc fix.

* src/image.c: Various fixes to ImageMagick code comments.
(Fimagemagick_types): Doc fix.
2011-05-29 14:17:28 -04:00
Juanma Barranquero
5fd6245244 lisp/image.el: Avoid some warnings.
* image.el (image-type-file-name-regexps): Make it variable.
  `imagemagick-register-types' modifies it, and the user may want
  to add new extensions for known image types.
  (imagemagick-register-types): Throw error if not using ImageMagick.
2011-03-22 14:10:43 +01:00
Glenn Morris
73b0cd5003 Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
Glenn Morris
e9bffc61f2 Refill some copyright headers. 2011-01-15 18:21:30 -08:00
Glenn Morris
0d9f702fd0 Nuke arch-tags. 2011-01-15 15:16:57 -08:00
Stefan Monnier
77ab81d054 Merge from emacs-23 2011-01-14 12:18:41 -05:00
Glenn Morris
5df4f04cd3 Add 2011 to FSF/AIST copyright years. 2011-01-02 15:50:46 -08:00
Chong Yidong
01898dc200 Avoid inline image variables for checkboxes (Bug#7222).
* etc/images/checked.xpm:
* etc/images/unchecked.xpm: New images.

* image.el (image-checkbox-checked, image-checkbox-unchecked):
Deleted (Bug#7222).

* startup.el (fancy-startup-tail): Instead of using inline images,
refer to image files from etc/.

* wid-edit.el (checkbox): Likewise.
(widget-image-find): Center image specs.
2010-10-24 19:40:55 -04:00
Juanma Barranquero
2e288d54f0 Rename image-library-alist' to dynamic-library-alist'.
* etc/NEWS: Mention `dynamic-library-alist'.

* lisp/image.el (image-library-alist): Declare as obsolete alias.
  (image-type-available-p): Use `dynamic-library-alist'.

* lisp/term/w32-win.el (dynamic-library-alist):
  Use instead of `image-library-alist'.

* nt/INSTALL: Refer to `dynamic-library-alist'.

* src/image.c (Vimage_library_alist)
  (syms_of_image) <image-library-alist>: Move to src/emacs.c and rename.
  (lookup_image_type): Use Vdynamic_library_alist.
  (Finit_image_library): Doc fix.

* src/emacs.c (Vdynamic_library_alist)
  (syms_of_emacs) <dynamic-library-alist>: Move from src/image.c and rename.
  Doc fix.

* src/lisp.h (Vdynamic_library_alist): Declare extern.
2010-10-13 16:50:06 +02:00
Chong Yidong
05d22d0217 More cleanups and minor fixes for Customize.
* cus-edit.el (custom-face-edit-fix-value): Use
custom-fix-face-spec.

* custom.el (custom-push-theme): Cleanup (use cond).
(disable-theme): Recompute the saved-face property.
(custom-theme-recalc-face): Follow face alias before setting prop.

* custom.el (custom-fix-face-spec): New function; code moved from
custom-face-edit-fix-value.
(custom-push-theme): Use it when checking if a face has been
changed outside customize.
(custom-available-themes): New function.
(load-theme): Use it.

* image.el (image-checkbox-checked, image-checkbox-unchecked): New
variables, containing checkbox images.

* startup.el (fancy-startup-tail):
* wid-edit.el (checkbox): Use them.
2010-10-11 00:49:59 -04:00
Glenn Morris
399653d697 Tiny image.el fixes.
* lisp/image.el (imagemagick-types-inhibit): Add :type, :version, :group.
(imagemagick-register-types): Doc fix.
2010-09-08 19:25:12 -07:00
Chong Yidong
bd78fa1d54 Add "Package:" file headers to denote built-in packages. 2010-08-29 12:17:13 -04:00
Joakim Verona
432c975420 merge from trunk, no conflicts 2010-08-18 13:11:01 +02:00
Katsumi Yamaoka
1075cd6169 create-animated-image: Don't add heuristic mask to image (Bug#6839). 2010-08-18 07:45:14 +00:00
Joakim Verona
d2a2d27736 cosmetics, and changing of defconst to defcustom 2010-06-14 23:27:03 +02:00
Joakim Verona
4917006be4 mostly cosmetic, moving { instances, changing indentation accordingly. 2010-06-14 15:57:48 +02:00
Joakim Verona
c05c21ed10 merged from trunk 2010-06-14 11:48:51 +02:00
Joakim Verona
69fd80388b changed looping according to feedback from stefan monnier 2010-06-14 11:16:39 +02:00
Juri Linkov
fc93792445 * image.el (image-animated-p): When delay between animated images is 0,
set it to 10 (0.1 sec).  (Bug#6258)
2010-05-25 18:54:53 +03:00
Chong Yidong
110683addc Rename image-refresh to image-flush.
* image.c (Fimage_flush): Rename from image-refresh.

* image.el (image-refresh): Define as an alias for image-flush.

* image-mode.el (image-toggle-display-image): Caller changed.

* display.texi (Image Cache): Update documentation about image
caching.
2010-05-22 12:48:01 -04:00
Joakim Verona
ce07fa9adc merge and fixes 2010-05-13 15:13:52 +02:00
Joakim Verona
3de2547921 imagemagick patch5 + minor mods 2010-04-02 23:09:13 +02:00
Juri Linkov
1546c55901 Rename image-extension-data' to image-metadata'.
http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg01456.html

* image.c: Add `Qextension_data'.
(syms_of_image): Initialize and staticpro `Qextension_data'.
(Fimage_metadata): Rename from `Fimage_extension_data'.
(gif_load): Put GIF extension data to the property
`Qextension_data'.

* image.el (image-animated-p): Use `image-metadata' instead of
`image-extension-data'.  Get GIF extenstion data from metadata
property `extension-data'.
2010-03-31 17:55:01 +03:00
Glenn Morris
3e5b700910 Minor animated image housekeeping.
* image.el (image-animate-max-time): Fix :version tag.

* NEWS: Add animated image placeholder entry.
2010-03-10 22:17:08 -08:00
Kim F. Storm
0608aa457f Animated image API.
http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg00211.html

* image.el (image-animate-max-time): New defcustom.
(image-animated-types): New defconst.
(create-animated-image, image-animate-timer)
(image-animate-start, image-animate-stop, image-animate-timeout)
(image-animated-p): New functions.

* image-mode.el (image-toggle-display-image):
Replace `create-image' with `create-animated-image'.
2010-03-07 21:02:20 +02:00
Glenn Morris
114f9c9679 Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
Stefan Monnier
45448e641a * startup.el (tutorial-directory): Make it a defcustom.
Use custom-initialize-delay rather than eval-at-startup to set it.
* image.el (image-load-path): Make it a defcustom.
Use custom-initialize-delay rather than eval-at-startup to set it.
* subr.el (eval-at-startup): Remove.
* font-lock.el (lisp-font-lock-keywords-2): Remove eval-at-startup.
2009-09-12 03:55:46 +00:00
Juri Linkov
d30a05d164 (image-type-header-regexps): Use only JPEG magic number
to determine JPEG images, and don't use `image-jpeg-p' because
Emacs can display non-JFIF non-Exif JPEG images.
2009-08-28 23:49:32 +00:00
Juanma Barranquero
68ba6c4956 * image.el (image-load-path-for-library, insert-sliced-image):
Fix typos in docstrings.
2009-02-24 10:28:57 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Andreas Schwab
fa4354c117 (image-type-header-regexps): Recognize more xbm format
variants.
2008-11-24 17:21:57 +00:00
Juanma Barranquero
24c23999e1 (image-jpeg-p): Don't fail if the arg cannot be converted to unibyte.
Just assume it is not a JPEG.  Use `string-match-p'.
(image-type-from-data, image-type-from-file-name): Use `string-match-p'.
(image-type-from-buffer): Use `looking-at-p'.
2008-06-27 15:58:36 +00:00
Kenichi Handa
9a9d8a8fa7 (image-jpeg-p): Convert DATA to unibyte at first. 2008-06-25 02:48:03 +00:00
Glenn Morris
aa360da10d Add some compiler declarations, for builds without X. 2008-06-12 03:56:20 +00:00
Glenn Morris
eb3fa2cfcf Switch to recommended form of GPLv3 permissions notice. 2008-05-06 08:06:51 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
409cc4a3ea Add 2008 to copyright years. 2008-01-07 02:45:14 +00:00
Juri Linkov
28681e350c (image-type): Check if image-types is bound to not fail on tty. 2007-10-06 22:17:49 +00:00
Glenn Morris
d567be222c Simplify previous change (auto can only be non-nil if type is). 2007-09-27 16:41:34 +00:00
Glenn Morris
1e83e2caf7 (image-type-auto-detected-p): Doc fix. Don't detect an image if it is
not in image-type-auto-detectable, or is there with a nil value.
2007-09-27 06:38:29 +00:00
Juri Linkov
62564fc7e8 (image-type-header-regexps): Use more complex regexp for svg.
(image-type-file-name-regexps): Add ("\\.svgz?\\'" . svg).
(image-type-auto-detectable): Add (svg . maybe).
2007-08-25 14:05:49 +00:00
Glenn Morris
2467875c22 (create-image): Doc fix. 2007-08-22 07:50:47 +00:00