]> git.eshelyaron.com Git - emacs.git/commitdiff
* Fix `memory-report' for '--without-x' builds
authorAndrea Corallo <akrl@sdf.org>
Sun, 13 Dec 2020 00:11:56 +0000 (01:11 +0100)
committerAndrea Corallo <akrl@sdf.org>
Sun, 13 Dec 2020 10:09:20 +0000 (11:09 +0100)
* lisp/emacs-lisp/memory-report.el
(memory-report--image-cache): Don't call `image-cache-size' if
unbound.

lisp/emacs-lisp/memory-report.el

index c88d9f2768a9bd9829b959919ce5227a60e31d7d..04ae87d9ea072730169de723922a6b55e7bd2c05 100644 (file)
@@ -294,7 +294,9 @@ by counted more than once."
                                       (overlay-lists)))))
 
 (defun memory-report--image-cache ()
-  (list (cons "Total Image Cache Size" (image-cache-size))))
+  (list (cons "Total Image Cache Size" (if (fboundp 'image-cache-size)
+                                           (image-cache-size)
+                                         0))))
 
 (provide 'memory-report)