projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e00906
)
Make memory-report work with buffer-local unbound vars
author
Lars Ingebrigtsen
<larsi@gnus.org>
Thu, 18 Mar 2021 07:33:40 +0000
(08:33 +0100)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Thu, 18 Mar 2021 07:33:40 +0000
(08:33 +0100)
* lisp/emacs-lisp/memory-report.el (memory-report--buffer-data):
Protect against buffer-local unbound variables (bug#47057).
lisp/emacs-lisp/memory-report.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/memory-report.el
b/lisp/emacs-lisp/memory-report.el
index 3d6ca957e63ad2655be0475625816f8fd29dad1c..ecbca280e598856b7e98a2b34a1d33e8b2b45c54 100644
(file)
--- a/
lisp/emacs-lisp/memory-report.el
+++ b/
lisp/emacs-lisp/memory-report.el
@@
-295,7
+295,7
@@
by counted more than once."
(- (position-bytes (point-min)))
(gap-size)))
(seq-reduce #'+ (mapcar (lambda (elem)
- (if (
cdr elem
)
+ (if (
and (consp elem) (cdr elem)
)
(memory-report--object-size
(make-hash-table :test #'eq)
(cdr elem))