Chong Yidong
a9bb04bb53
(image-type-auto-detectable): Don't autodetect x[pb]m.
...
(image-type-auto-detected-p): Fail if another match is found in
auto-mode-alist.
2007-02-09 16:50:16 +00:00
Richard M. Stallman
3205431dd0
(image-type-header-regexps): Make GIF regex more specific.
2007-01-28 07:09:44 +00:00
Glenn Morris
d7a0267c8d
Add 2007 to copyright years.
2007-01-21 03:53:13 +00:00
Richard M. Stallman
2dca7106aa
(image-type-header-regexps): Recognize xbm more strictly.
2007-01-05 22:54:11 +00:00
Juanma Barranquero
6642c904c4
(image-type-header-regexps, image-type-from-data, image-type-from-buffer,
...
image-type-from-file-header): Revert changes from 2006-12-26.
(image-type-auto-detectable): New variable.
(image-type-auto-detected-p): New function.
2006-12-30 01:51:24 +00:00
Richard M. Stallman
6137433cad
(image-type-header-regexps): Change element format
...
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.
2006-12-26 18:01:40 +00:00
Juanma Barranquero
4753bc5085
(image-type-header-regexps): Be more specific detecting pbm' and
png' files.
...
Use non-capturing parenthesis for `tiff' regexp.
2006-12-19 16:42:54 +00:00
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