<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emacs/src/image.c, branch feature/comp-use-ctors</title>
<subtitle>Emacs is the extensible, customizable, self-documenting real-time display editor. 
</subtitle>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/'/>
<entry>
<title>Move imagep in image.c from the debugging section</title>
<updated>2022-09-13T14:37:31+00:00</updated>
<author>
<name>Lars Ingebrigtsen</name>
</author>
<published>2022-09-13T14:37:31+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=07ee1be052a45d8e6f671d0851f11c545dd9511a'/>
<id>07ee1be052a45d8e6f671d0851f11c545dd9511a</id>
<content type='text'>
* lisp/simple.el (imagep): Remove.
* src/image.c (Fimagep): Always define.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/simple.el (imagep): Remove.
* src/image.c (Fimagep): Always define.
</pre>
</div>
</content>
</entry>
<entry>
<title>; * src/image.c (svg_load_image): Another minor cleanup.  (Bug#51104)</title>
<updated>2022-09-13T14:12:40+00:00</updated>
<author>
<name>Eli Zaretskii</name>
</author>
<published>2022-09-13T14:12:40+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=48c562fb748623ed01385eaf215333a6c2edac80'/>
<id>48c562fb748623ed01385eaf215333a6c2edac80</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>; * src/image.c (svg_load_image): Always free 'err' if non-NULL.</title>
<updated>2022-09-13T13:38:50+00:00</updated>
<author>
<name>Eli Zaretskii</name>
</author>
<published>2022-09-13T13:38:50+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=96b221dd2a6f36143e2e132c5ee9d13d5f39d4b3'/>
<id>96b221dd2a6f36143e2e132c5ee9d13d5f39d4b3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix last change in image.c</title>
<updated>2022-09-13T13:26:50+00:00</updated>
<author>
<name>Eli Zaretskii</name>
</author>
<published>2022-09-13T13:26:50+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=dfbe745ed9ba89e516ef89955f2ca88be04d1d72'/>
<id>dfbe745ed9ba89e516ef89955f2ca88be04d1d72</id>
<content type='text'>
* src/image.c (svg_load_image): Don't call Lisp to remove trailing
whitespace from librsvg error messages, do it in C instead; this
reduces consing and is much cleaner.  Don't display empty error
reason if librsvg happens to return an empty message text.
(syms_of_image): Don't DEFSYM string-trim-right.  (Bug#57755)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/image.c (svg_load_image): Don't call Lisp to remove trailing
whitespace from librsvg error messages, do it in C instead; this
reduces consing and is much cleaner.  Don't display empty error
reason if librsvg happens to return an empty message text.
(syms_of_image): Don't DEFSYM string-trim-right.  (Bug#57755)
</pre>
</div>
</content>
</entry>
<entry>
<title>Avoid double svg error reporting and segfaults</title>
<updated>2022-09-13T11:57:44+00:00</updated>
<author>
<name>dickmao</name>
</author>
<published>2022-09-13T11:57:44+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=dd22694421249ef071488c02192b724da1aa03cb'/>
<id>dd22694421249ef071488c02192b724da1aa03cb</id>
<content type='text'>
* src/image.c (svg_load_image): Use g_error_free directly instead
of the helder g_clear_error (since we're only calling it with
non-nil values).
(svg_load_image): Avoid segfault and double reporting errors.
* test/manual/image-tests.el (image-tests-load-image/svg-too-big)
(image-tests-load-image/svg-invalid): Test it (bug#57755).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/image.c (svg_load_image): Use g_error_free directly instead
of the helder g_clear_error (since we're only calling it with
non-nil values).
(svg_load_image): Avoid segfault and double reporting errors.
* test/manual/image-tests.el (image-tests-load-image/svg-too-big)
(image-tests-load-image/svg-invalid): Test it (bug#57755).
</pre>
</div>
</content>
</entry>
<entry>
<title>Display librsvg error when loading bad SVG</title>
<updated>2022-09-09T01:07:44+00:00</updated>
<author>
<name>Stefan Kangas</name>
</author>
<published>2022-09-09T00:32:08+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=816106b7e6a930d55e723e7c4d9d5f664ecd5520'/>
<id>816106b7e6a930d55e723e7c4d9d5f664ecd5520</id>
<content type='text'>
* src/image.c (svg_load_image): Display the error message from librsvg
when parsing a bad SVG image file.
* test/manual/image-tests.el
(image-tests-load-image/svg-invalid): New test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/image.c (svg_load_image): Display the error message from librsvg
when parsing a bad SVG image file.
* test/manual/image-tests.el
(image-tests-load-image/svg-invalid): New test.
</pre>
</div>
</content>
</entry>
<entry>
<title>Prune animation cache when images are no longer reachable</title>
<updated>2022-07-14T16:59:09+00:00</updated>
<author>
<name>Lars Ingebrigtsen</name>
</author>
<published>2022-07-14T16:58:12+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=564f6c171eeaef4dea4b4fc2524c0b082dfbb531'/>
<id>564f6c171eeaef4dea4b4fc2524c0b082dfbb531</id>
<content type='text'>
* lisp/image.el (image-animate-timeout): Eject cached animated
images that are no longer reachable (bug#56546).

* src/image.c (Fclear_image_cache): Allow specifying a cached
animated image to eject.
(gif_load, webp_load): Adjust what to use as the caching key --
the identity of the list itself is apparently changed by some
callers.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lisp/image.el (image-animate-timeout): Eject cached animated
images that are no longer reachable (bug#56546).

* src/image.c (Fclear_image_cache): Allow specifying a cached
animated image to eject.
(gif_load, webp_load): Adjust what to use as the caching key --
the identity of the list itself is apparently changed by some
callers.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make image-cache-size also include the animation cache</title>
<updated>2022-07-14T16:59:09+00:00</updated>
<author>
<name>Lars Ingebrigtsen</name>
</author>
<published>2022-07-14T15:18:25+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=4c542747bd40f3098a20aafe001889607f044188'/>
<id>4c542747bd40f3098a20aafe001889607f044188</id>
<content type='text'>
* src/image.c (struct anim_cache, anim_create_cache): Store approx
cache size.
(gif_load, webp_load): Ditto.
(Fimage_cache_size): Also report animation cache size (bug#56546).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/image.c (struct anim_cache, anim_create_cache): Store approx
cache size.
(gif_load, webp_load): Ditto.
(Fimage_cache_size): Also report animation cache size (bug#56546).
</pre>
</div>
</content>
</entry>
<entry>
<title>Pacify -Wunused-macros in --without-all builds</title>
<updated>2022-07-14T12:02:27+00:00</updated>
<author>
<name>Stefan Kangas</name>
</author>
<published>2022-07-14T12:02:27+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=35238c4fc020baccc1de24b38fe7b69e97e22c69'/>
<id>35238c4fc020baccc1de24b38fe7b69e97e22c69</id>
<content type='text'>
* src/image.c (IMAGE_TYPE_INIT): Make conditional on image support.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/image.c (IMAGE_TYPE_INIT): Make conditional on image support.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make clear-image-cache clear the animation cache</title>
<updated>2022-07-14T09:49:47+00:00</updated>
<author>
<name>Lars Ingebrigtsen</name>
</author>
<published>2022-07-14T09:40:49+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=4738aa1e12460ecf55ef08b72c585cbbafe51520'/>
<id>4738aa1e12460ecf55ef08b72c585cbbafe51520</id>
<content type='text'>
* src/dispextern.h: Declare image_prune_animation_caches for use
in gc.

* src/image.c (Fclear_image_cache): Clear animation cache.
(anim_prune_animation_cache, anim_get_animation_cache): Allow
clearing in addition to pruning.
(imagemagick_prune_animation_cache)
(imagemagick_get_animation_cache): Ditto.
(image_prune_animation_caches): New function (bug#56546).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/dispextern.h: Declare image_prune_animation_caches for use
in gc.

* src/image.c (Fclear_image_cache): Clear animation cache.
(anim_prune_animation_cache, anim_get_animation_cache): Allow
clearing in addition to pruning.
(imagemagick_prune_animation_cache)
(imagemagick_get_animation_cache): Ditto.
(image_prune_animation_caches): New function (bug#56546).
</pre>
</div>
</content>
</entry>
</feed>
