Commit 16ec0742 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

Avoid GC crashes.

* lisp/subr.el (set-transient-map): Clear out function and value
of the temporary symbol when we're done with it.
parent 664ed753
2014-03-21 Richard Stallman <rms@gnu.org>
 
* subr.el (set-transient-map): Clear out function and value
of the temporary symbol when we're done with it.
* mail/rmailsum.el (rmail-summary-delete-forward):
Optimize case of reaching end and handling count.
(rmail-summary-mark-deleted): Optimize when N is current msg.
......
......@@ -4312,7 +4312,10 @@ lookup sequence then continues."
(t (funcall keep-pred)))
(internal-pop-keymap map 'overriding-terminal-local-map)
(remove-hook 'pre-command-hook clearfun)
(when on-exit (funcall on-exit))))))
(when on-exit (funcall on-exit))
;; Comment out the fset if you want to debug the GC bug.
(fset clearfun nil)
(set clearfun nil)))))
(add-hook 'pre-command-hook clearfun)
(internal-push-keymap map 'overriding-terminal-local-map)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment