1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-17 10:06:13 +00:00
Commit Graph

91 Commits

Author SHA1 Message Date
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
Glenn Morris
9c818156d9 Paul Pogonyshev <pogonyshev at gmx.net>
(image-type-header-regexps): Add svg entry.
2007-08-22 04:05:28 +00:00
Miles Bader
37cc095b6a Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-851
2007-08-13 13:41:28 +00:00
Glenn Morris
4837b516ea Replace `iff' in doc-strings and comments. 2007-08-08 07:40:09 +00:00
Miles Bader
9aecacd08a Merge from emacs--rel--22
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
2007-07-26 05:28:10 +00:00
Glenn Morris
b4aa60262c Switch license to GPLv3 or later. 2007-07-25 04:50:21 +00:00
Chong Yidong
ada9718d0f (image-type-auto-detected-p): Don't scan auto-mode-alist. 2007-06-04 20:40:53 +00:00
Chong Yidong
7d88e015c4 (image-type-from-file-name, image-type): Simplify.
(image-type-auto-detected-p): Don't scan auto-mode-alist.
2007-05-21 16:43:13 +00:00
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