summaryrefslogtreecommitdiff
path: root/lisp/image.el
Commit message (Collapse)AuthorAgeFilesLines
* * image.el (image-animated-p): When delay between animated images is 0,Juri Linkov2010-05-251-4/+7
| | | | set it to 10 (0.1 sec). (Bug#6258)
* Rename image-refresh to image-flush.Chong Yidong2010-05-221-0/+1
| | | | | | | | | | | * 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.
* Rename `image-extension-data' to `image-metadata'.Juri Linkov2010-03-311-2/+3
| | | | | | | | | | | | | | 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'.
* Minor animated image housekeeping.Glenn Morris2010-03-101-3/+3
| | | | | | * image.el (image-animate-max-time): Fix :version tag. * NEWS: Add animated image placeholder entry.
* Animated image API.Kim F. Storm2010-03-071-0/+104
| | | | | | | | | | | | | 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'.
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* * startup.el (tutorial-directory): Make it a defcustom.Stefan Monnier2009-09-121-7/+6
| | | | | | | | 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.
* (image-type-header-regexps): Use only JPEG magic numberJuri Linkov2009-08-281-1/+1
| | | | | to determine JPEG images, and don't use `image-jpeg-p' because Emacs can display non-JFIF non-Exif JPEG images.
* * image.el (image-load-path-for-library, insert-sliced-image):Juanma Barranquero2009-02-241-3/+3
| | | | Fix typos in docstrings.
* Add 2009 to copyright years.Glenn Morris2009-01-051-1/+1
|
* (image-type-header-regexps): Recognize more xbm formatAndreas Schwab2008-11-241-3/+5
| | | | variants.
* (image-jpeg-p): Don't fail if the arg cannot be converted to unibyte.Juanma Barranquero2008-06-271-7/+7
| | | | | | 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'.
* (image-jpeg-p): Convert DATA to unibyte at first.Kenichi Handa2008-06-251-0/+1
|
* Add some compiler declarations, for builds without X.Glenn Morris2008-06-121-0/+2
|
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-061-6/+4
|
* Merge from emacs--rel--22Miles Bader2008-01-081-1/+1
|\ | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
| * Add 2008 to copyright years.Glenn Morris2008-01-071-1/+1
| |
* | (image-type): Check if image-types is bound to not fail on tty.Juri Linkov2007-10-061-1/+1
| |
* | Simplify previous change (auto can only be non-nil if type is).Glenn Morris2007-09-271-1/+1
| |
* | (image-type-auto-detected-p): Doc fix. Don't detect an image if it isGlenn Morris2007-09-271-2/+4
| | | | | | | | not in image-type-auto-detectable, or is there with a nil value.
* | (image-type-header-regexps): Use more complex regexp for svg.Juri Linkov2007-08-251-3/+13
| | | | | | | | | | (image-type-file-name-regexps): Add ("\\.svgz?\\'" . svg). (image-type-auto-detectable): Add (svg . maybe).
* | (create-image): Doc fix.Glenn Morris2007-08-221-1/+6
| |
* | Paul Pogonyshev <pogonyshev at gmx.net>Glenn Morris2007-08-221-1/+2
| | | | | | | | (image-type-header-regexps): Add svg entry.
* | Merge from emacs--rel--22Miles Bader2007-08-131-1/+1
|\ \ | |/ | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-851
| * Replace `iff' in doc-strings and comments.Glenn Morris2007-08-081-1/+1
| |
* | Merge from emacs--rel--22Miles Bader2007-07-261-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--rel--22 (patch 70-73) - Update from CVS 2007-07-25 Glenn Morris <rgm@gnu.org> * Relicense all FSF files to GPLv3 or later. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
| * Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
| |
| * (image-type-auto-detected-p): Don't scan auto-mode-alist.Chong Yidong2007-06-041-21/+6
| |
* | (image-type-from-file-name, image-type): Simplify.Chong Yidong2007-05-211-51/+21
|/ | | | (image-type-auto-detected-p): Don't scan auto-mode-alist.
* (image-type-auto-detectable): Don't autodetect x[pb]m.Chong Yidong2007-02-091-8/+26
| | | | | (image-type-auto-detected-p): Fail if another match is found in auto-mode-alist.
* (image-type-header-regexps): Make GIF regex more specific.Richard M. Stallman2007-01-281-1/+1
|
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* (image-type-header-regexps): Recognize xbm more strictly.Richard M. Stallman2007-01-051-1/+3
|
* (image-type-header-regexps, image-type-from-data, image-type-from-buffer,Juanma Barranquero2006-12-301-35/+53
| | | | | | image-type-from-file-header): Revert changes from 2006-12-26. (image-type-auto-detectable): New variable. (image-type-auto-detected-p): New function.
* (image-type-header-regexps): Change element formatRichard M. Stallman2006-12-261-20/+35
| | | | | | | to include third item NOT-ALWAYS. (image-type-from-data): Handle new format. (image-type-from-buffer): Handle new format. New arg INCLUDE-MAYBES. (image-type-from-file-header): Pass t for INCLUDE-MAYBES.
* (image-type-header-regexps): Be more specific detecting `pbm' and `png' files.Juanma Barranquero2006-12-191-3/+3
| | | | Use non-capturing parenthesis for `tiff' regexp.
* (image-type): New defun split out of create-image.Kim F. Storm2006-04-211-16/+28
| | | | (create-image): Use it.
* (image-load-path-for-library): Shorten first line in docstring.Bill Wohler2006-03-191-1/+1
|
* (image-load-path-for-library): Minor docstring fix.Bill Wohler2006-03-171-2/+2
|
* (image-load-path-for-library): Prefer user's images inBill Wohler2006-03-161-27/+43
| | | | image-load-path.
* (image-load-path-for-library): Fix example by not recommending thatBill Wohler2006-03-151-3/+5
| | | | | one binds image-load-path. Just defvar it to placate compiler and only use it if previously defined.
* (image-load-path-for-library): Pass value of path rather than symbol.Bill Wohler2006-03-141-30/+22
| | | | | Always return list of directories. Guarantee that image directory comes first.
* (image-load-path-for-library): Merged changes from Reiner. AddBill Wohler2006-03-111-5/+17
| | | | no-error argument. If path t, just return directory.
* (image-load-path-for-library): Merge at least three functions fromBill Wohler2006-03-101-0/+74
| | | | Gnus and MH-E into this one function that can now be shared.
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+1
|
* (defimage): Add `doc-string' declaration.Stefan Monnier2005-10-241-1/+2
|
* (image-load-path): Use eval-at-startup to initialize.Richard M. Stallman2005-10-221-3/+6
|
* (image-type-header-regexps): Rename from image-type-regexps.Kim F. Storm2005-10-211-26/+91
| | | | | | | | | | | | Change uses. (image-type-file-name-regexps): New defconst. (image-type-from-data): Simplify loop. (image-type-from-buffer): New defun. (image-type-from-file-header): Use it instead of image-type-from-data. Use image-search-load-path instead of only looking in data-directory. (image-type-from-file-name): New defun. (image-search-load-path): Make PATH arg optional, default to image-load-path. Change `pathname' to `filename'.
* * image.el (create-image, find-image): Mention max-image-size inChong Yidong2005-10-191-2/+6
| | | | docstring.
* (image-load-path): Use symbol `data-directory' instead of its value,Chong Yidong2005-09-181-11/+20
| | | | | | for backward compatibility with packages that bind it during `find-image'. Suggested by Katsumi Yamaoka. (image-search-load-path): Handle symbols whose values are strings.