aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuri Linkov2010-03-31 17:55:01 +0300
committerJuri Linkov2010-03-31 17:55:01 +0300
commit1546c55901a99229848a1381aac2e618f5d6c04a (patch)
tree8e99c351e487f4a532ac465df83c390108a25216 /src
parent52c3078336b724f3d657e2405136f66524483ecb (diff)
downloademacs-1546c55901a99229848a1381aac2e618f5d6c04a.tar.gz
emacs-1546c55901a99229848a1381aac2e618f5d6c04a.zip
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'.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog8
-rw-r--r--src/image.c20
2 files changed, 20 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3c43c80764a..e223ae0f696 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12010-03-31 Juri Linkov <juri@jurta.org>
2
3 * image.c: Add `Qextension_data'.
4 (syms_of_image): Initialize and staticpro `Qextension_data'.
5 (Fimage_metadata): Rename from `Fimage_extension_data'.
6 (gif_load): Put GIF extension data to the property
7 `Qextension_data'.
8
12010-03-31 Eli Zaretskii <eliz@gnu.org> 92010-03-31 Eli Zaretskii <eliz@gnu.org>
2 10
3 * xdisp.c (highlight_trailing_whitespace): Support highlight of 11 * xdisp.c (highlight_trailing_whitespace): Support highlight of
diff --git a/src/image.c b/src/image.c
index 1265b900c6c..030e06ad77a 100644
--- a/src/image.c
+++ b/src/image.c
@@ -604,7 +604,7 @@ Lisp_Object Qxbm;
604extern Lisp_Object QCwidth, QCheight, QCforeground, QCbackground, QCfile; 604extern Lisp_Object QCwidth, QCheight, QCforeground, QCbackground, QCfile;
605extern Lisp_Object QCdata, QCtype; 605extern Lisp_Object QCdata, QCtype;
606extern Lisp_Object Qcenter; 606extern Lisp_Object Qcenter;
607Lisp_Object QCascent, QCmargin, QCrelief, Qcount; 607Lisp_Object QCascent, QCmargin, QCrelief, Qcount, Qextension_data;
608Lisp_Object QCconversion, QCcolor_symbols, QCheuristic_mask; 608Lisp_Object QCconversion, QCcolor_symbols, QCheuristic_mask;
609Lisp_Object QCindex, QCmatrix, QCcolor_adjustment, QCmask; 609Lisp_Object QCindex, QCmatrix, QCcolor_adjustment, QCmask;
610 610
@@ -1011,8 +1011,8 @@ or omitted means use the selected frame. */)
1011 return mask; 1011 return mask;
1012} 1012}
1013 1013
1014DEFUN ("image-extension-data", Fimage_extension_data, Simage_extension_data, 1, 2, 0, 1014DEFUN ("image-metadata", Fimage_metadata, Simage_metadata, 1, 2, 0,
1015 doc: /* Return extension data for image SPEC. 1015 doc: /* Return metadata for image SPEC.
1016FRAME is the frame on which the image will be displayed. FRAME nil 1016FRAME is the frame on which the image will be displayed. FRAME nil
1017or omitted means use the selected frame. */) 1017or omitted means use the selected frame. */)
1018 (spec, frame) 1018 (spec, frame)
@@ -7169,7 +7169,7 @@ gif_clear_image (f, img)
7169 struct frame *f; 7169 struct frame *f;
7170 struct image *img; 7170 struct image *img;
7171{ 7171{
7172 /* IMG->data.ptr_val may contain extension data. */ 7172 /* IMG->data.ptr_val may contain metadata with extension data. */
7173 img->data.lisp_val = Qnil; 7173 img->data.lisp_val = Qnil;
7174 x_clear_image (f, img); 7174 x_clear_image (f, img);
7175} 7175}
@@ -7488,8 +7488,8 @@ gif_load (f, img)
7488 } 7488 }
7489 } 7489 }
7490 7490
7491 /* Save GIF image extension data for `image-extension-data'. 7491 /* Save GIF image extension data for `image-metadata'.
7492 Format is (count IMAGES FUNCTION "BYTES" ...). */ 7492 Format is (count IMAGES extension-data (FUNCTION "BYTES" ...)). */
7493 img->data.lisp_val = Qnil; 7493 img->data.lisp_val = Qnil;
7494 if (gif->SavedImages[ino].ExtensionBlockCount > 0) 7494 if (gif->SavedImages[ino].ExtensionBlockCount > 0)
7495 { 7495 {
@@ -7499,7 +7499,9 @@ gif_load (f, img)
7499 img->data.lisp_val = Fcons (make_unibyte_string (ext->Bytes, ext->ByteCount), 7499 img->data.lisp_val = Fcons (make_unibyte_string (ext->Bytes, ext->ByteCount),
7500 Fcons (make_number (ext->Function), 7500 Fcons (make_number (ext->Function),
7501 img->data.lisp_val)); 7501 img->data.lisp_val));
7502 img->data.lisp_val = Fnreverse (img->data.lisp_val); 7502 img->data.lisp_val = Fcons (Qextension_data,
7503 Fcons (Fnreverse (img->data.lisp_val),
7504 Qnil));
7503 } 7505 }
7504 if (gif->ImageCount > 1) 7506 if (gif->ImageCount > 1)
7505 img->data.lisp_val = Fcons (Qcount, 7507 img->data.lisp_val = Fcons (Qcount,
@@ -8403,6 +8405,8 @@ non-numeric, there is no explicit limit on the size of images. */);
8403 8405
8404 Qcount = intern_c_string ("count"); 8406 Qcount = intern_c_string ("count");
8405 staticpro (&Qcount); 8407 staticpro (&Qcount);
8408 Qextension_data = intern_c_string ("extension-data");
8409 staticpro (&Qextension_data);
8406 8410
8407 QCascent = intern_c_string (":ascent"); 8411 QCascent = intern_c_string (":ascent");
8408 staticpro (&QCascent); 8412 staticpro (&QCascent);
@@ -8498,7 +8502,7 @@ non-numeric, there is no explicit limit on the size of images. */);
8498 defsubr (&Simage_refresh); 8502 defsubr (&Simage_refresh);
8499 defsubr (&Simage_size); 8503 defsubr (&Simage_size);
8500 defsubr (&Simage_mask_p); 8504 defsubr (&Simage_mask_p);
8501 defsubr (&Simage_extension_data); 8505 defsubr (&Simage_metadata);
8502 8506
8503#if GLYPH_DEBUG 8507#if GLYPH_DEBUG
8504 defsubr (&Simagep); 8508 defsubr (&Simagep);