diff options
| author | Stefan Monnier | 2008-02-24 13:36:39 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-02-24 13:36:39 +0000 |
| commit | a2bc5bdd7db3f708b7489d91919336e775c3e6ca (patch) | |
| tree | ca7e9efac023071ffcbeb514ab66fc4c0d76a8b9 /doc/lispref | |
| parent | 01dcf28448dab12ad7160942323144836467dd65 (diff) | |
| download | emacs-a2bc5bdd7db3f708b7489d91919336e775c3e6ca.tar.gz emacs-a2bc5bdd7db3f708b7489d91919336e775c3e6ca.zip | |
Allow fine-grained image-cache flushing.
* dispextern.h (struct image): Add `dependencies' field.
(clear_image_caches): Change arg to Lisp_Object.
* image.c (make_image): Initialize `dependencies' field.
(clear_image_cache): Change arg to allow fine-grained flushing.
Perform the flush even if image-cache-eviction-delay is nil.
(clear_image_caches): Change arg to Lisp_Object.
(Fclear_image_cache): Expand meaning of the argument.
(mark_image): Mark `dependencies' field.
* xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
(lface_hash): Use XHASH rather than XFASTINT.
(face_at_buffer_position): Fix int -> EMACS_INT position.
* xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
(select_frame_for_redisplay): Remove code duplication.
(redisplay_internal): Adapt arg to call to clear_image_caches.
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/display.texi | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index ee3c828857a..c647111047c 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -4364,10 +4364,12 @@ This works by removing all image with image specifications matching | |||
| 4364 | displayed, Emacs will load the image again. | 4364 | displayed, Emacs will load the image again. |
| 4365 | @end defun | 4365 | @end defun |
| 4366 | 4366 | ||
| 4367 | @defun clear-image-cache &optional frame | 4367 | @defun clear-image-cache &optional filter |
| 4368 | This function clears the entire image cache. If @var{frame} is | 4368 | This function clears the image cache. If @var{filter} is |
| 4369 | non-@code{nil}, only the cache for that frame is cleared. Otherwise, | 4369 | a frame, only the cache for that frame is cleared. If omitted or |
| 4370 | all frames' caches are cleared. | 4370 | @code{nil}, clear the images on the selected frame. If @code{t}, |
| 4371 | all frames' caches are cleared. Otherwise, @var{filter} is taken as | ||
| 4372 | a file name and only images that reference this file will be flushed. | ||
| 4371 | @end defun | 4373 | @end defun |
| 4372 | 4374 | ||
| 4373 | If an image in the image cache has not been displayed for a specified | 4375 | If an image in the image cache has not been displayed for a specified |