1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00
Commit Graph

63 Commits

Author SHA1 Message Date
Kim F. Storm
e796837385 (image-type): New defun split out of create-image.
(create-image): Use it.
2006-04-21 20:56:06 +00:00
Bill Wohler
ae77c7ff55 (image-load-path-for-library): Shorten first line in docstring. 2006-03-19 18:19:12 +00:00
Bill Wohler
40db64d23e (image-load-path-for-library): Minor docstring fix. 2006-03-17 17:26:58 +00:00
Bill Wohler
c0696e1b95 (image-load-path-for-library): Prefer user's images in
image-load-path.
2006-03-16 16:55:26 +00:00
Bill Wohler
9f036d338a (image-load-path-for-library): Fix example by not recommending that
one binds image-load-path. Just defvar it to placate compiler and only
use it if previously defined.
2006-03-15 17:06:16 +00:00
Bill Wohler
5248a565ca (image-load-path-for-library): Pass value of path rather than symbol.
Always return list of directories. Guarantee that image directory
comes first.
2006-03-14 19:16:24 +00:00
Bill Wohler
20c65d0863 (image-load-path-for-library): Merged changes from Reiner. Add
no-error argument. If path t, just return directory.
2006-03-11 02:04:08 +00:00
Bill Wohler
7c565097d1 (image-load-path-for-library): Merge at least three functions from
Gnus and MH-E into this one function that can now be shared.
2006-03-10 22:52:26 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Stefan Monnier
fd8e7a802c (defimage): Add `doc-string' declaration. 2005-10-24 16:43:03 +00:00
Richard M. Stallman
dada660ab6 (image-load-path): Use eval-at-startup to initialize. 2005-10-22 15:26:36 +00:00
Kim F. Storm
4fde92efda (image-type-header-regexps): Rename from image-type-regexps.
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'.
2005-10-21 23:42:21 +00:00
Chong Yidong
8646a62e20 * image.el (create-image, find-image): Mention max-image-size in
docstring.
2005-10-19 03:55:20 +00:00
Chong Yidong
93a75651ff (image-load-path): Use symbol `data-directory' instead of its value,
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.
2005-09-18 14:04:46 +00:00
Chong Yidong
5fc5ac38de 2005-09-15 Chong Yidong <cyd@stupidchicken.com>
* image.el (image-load-path): New variable.
	(image-search-load-path): New function.
	(find-image): Search for images in `image-load-path'.
2005-09-15 14:00:09 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Juanma Barranquero
c6d1b44698 (image-library-alist): Moved to image.c.
(image-type-available-p): Doc fix.
2005-05-27 13:17:50 +00:00
Richard M. Stallman
f22c36d3a0 (insert-sliced-image): Add autoload cookie. 2005-03-17 23:56:15 +00:00
Kim F. Storm
82dc617bfb (insert-sliced-image): Use t for line-height property. 2005-01-01 13:08:33 +00:00
Kim F. Storm
b48bc93799 (insert-sliced-image): Add doc string. 2004-09-22 23:12:38 +00:00
Juanma Barranquero
143b8c2731 (image-library-alist): Rewrite docstring in active voice. 2004-06-21 21:52:28 +00:00
Juanma Barranquero
3c3b34d2db (image-library-alist): New variable to map image types to external
libraries.  Initialized to nil, unless system-specific configs change it.
(image-type-available-p): Determine whether an image type is available by
calling `init-image-library'.
2004-06-14 20:58:36 +00:00
Kim F. Storm
3e8b5f3d71 (insert-sliced-image): Use line-height instead of
line-spacing property on newline.
2004-04-26 22:11:36 +00:00
Kim F. Storm
c3ea173da5 (insert-sliced-image): Add line-spacing t property
to newlines separating image lines.
2004-04-24 23:30:05 +00:00
Kim F. Storm
5af275e049 (insert-image): Add optional SLICE arg.
(insert-sliced-image): New defun.
2004-04-20 22:23:08 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
John Paul Wallington
32b3c76642 (image-jpeg-p): Don't search beyond length of data. 2003-08-26 15:38:36 +00:00
Juanma Barranquero
37d4a06e71 (image-type-regexps): Fix typo. 2003-02-04 11:29:35 +00:00
Juanma Barranquero
71296446d3 Trailing whitespace deleted. 2003-02-04 11:26:42 +00:00
Stefan Monnier
5f1fbf6b35 (insert-image): Don't make intangible since
adjust_point_for_property should be sufficient by default.
2002-11-03 08:34:45 +00:00
Richard M. Stallman
9b78a6a3c4 (image-jpeg-p): Accept "Exif" marker. 2002-08-05 16:26:03 +00:00
Pavel Janík
ee485a8387 (image-type-from-file-header): Make temporary buffer unibyte. 2002-03-11 13:32:22 +00:00
Pavel Janík
634f4a678a Add Maintainer header. 2001-12-25 11:03:46 +00:00
Gerd Moellmann
6ea3db8a10 (image-type-regexps): Make sure that the TIFF
pattern is only matched at the beginning of a string.
From Markus Rost <rost@math.ohio-state.edu>.
2001-08-21 08:12:16 +00:00
Gerd Moellmann
26d0c82c1a (image-jpeg-p): Fix call of substring. 2001-08-13 10:16:16 +00:00
Gerd Moellmann
4a9bf8a43f (image-jpeg-p): Test for APPn markers in the range
#xe0..#xef.
2001-08-10 10:59:06 +00:00
Gerd Moellmann
3bdbead3dd (image-type-regexps): Allow whitespace at the start
of the image data for XPM, XBM and Postscript, which are
text files.
(image-jpeg-p): Correct computatino of next field offset.
2001-08-09 09:31:56 +00:00
Gerd Moellmann
8a8ef149d0 (image-type-regexps): Allow predicates. Change the way
JPEG images are recognized.
(image-jpeg-p): New function.
(image-type-from-data): Handle predicates in image-type-regexps.
2001-08-08 10:54:12 +00:00
Gerd Moellmann
1155d48351 (image-type-regexps): For JPEG files, use a regexp
derived from the JPEG spec.
2001-08-07 08:55:12 +00:00
Gerd Moellmann
69ebef1d59 (image-type-regexps): Use \' instead of `^' in
most regular expressions.
2001-08-07 08:03:42 +00:00
Gerd Moellmann
2b8f2f464d (image-type-regexps): Change type for PS files
to `postscript'.
2001-03-28 12:39:45 +00:00
Eli Zaretskii
9ea8de1b79 (create-image): Doc fix; spotted by Per Cederqvist <ceder@lysator.liu.se>. 2000-12-08 17:08:25 +00:00
Miles Bader
77f6105c28 (image): New group. 2000-10-05 07:46:30 +00:00
Gerd Moellmann
d1d3c68562 (create-image): Doc fix. 2000-09-15 11:49:07 +00:00
Dave Love
9bb7a286d4 (find-image): Copy `spec' before using plist-put. 2000-08-18 13:45:36 +00:00
Dave Love
0ad550ba63 Fix last change to be in insert-image as intended. 2000-06-13 18:18:02 +00:00
Dave Love
f290ca08fa (put-image): Default STRING to a space. 2000-06-13 17:55:59 +00:00
Dave Love
0dc91c572f (insert-image): Save a little consing. 2000-06-12 20:36:40 +00:00
Dave Love
cedbd8d02f (find-image): Doc fix. Return nil if image not found.
(put-image, insert-image): Make STRING arg optional.
2000-06-06 14:27:42 +00:00