[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 831659b: * Fix `memory-report' for '--without-x' builds
From: |
Andrea Corallo |
Subject: |
master 831659b: * Fix `memory-report' for '--without-x' builds |
Date: |
Sun, 13 Dec 2020 05:11:06 -0500 (EST) |
branch: master
commit 831659b3b88d42ea5e4adab2be3316cfffa2efd1
Author: Andrea Corallo <akrl@sdf.org>
Commit: Andrea Corallo <akrl@sdf.org>
* Fix `memory-report' for '--without-x' builds
* lisp/emacs-lisp/memory-report.el
(memory-report--image-cache): Don't call `image-cache-size' if
unbound.
---
lisp/emacs-lisp/memory-report.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/emacs-lisp/memory-report.el b/lisp/emacs-lisp/memory-report.el
index c88d9f2..04ae87d 100644
--- a/lisp/emacs-lisp/memory-report.el
+++ b/lisp/emacs-lisp/memory-report.el
@@ -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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 831659b: * Fix `memory-report' for '--without-x' builds,
Andrea Corallo <=