diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2024-02-03 16:46:59 +0100 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2024-02-04 13:13:10 +0100 |
commit | 4d57187a248d3243dcc8b5da5d8365cb1b54a347 (patch) | |
tree | 6883d6ec1e26b6f88cbdc4a53111b2ccb5c9e193 /lisp/emacs-lisp/regexp-opt.el | |
parent | e44b9f35793d642d5155fde035e3bc92102d13a1 (diff) | |
download | emacs-4d57187a248d3243dcc8b5da5d8365cb1b54a347.tar.gz emacs-4d57187a248d3243dcc8b5da5d8365cb1b54a347.tar.bz2 emacs-4d57187a248d3243dcc8b5da5d8365cb1b54a347.zip |
Prevent cache of diff-mode buffers to grow without bounds
Previously, these " *diff-syntax:..." buffers were never removed.
Now we discard the least recently used half of them every hour.
* lisp/vc/diff-mode.el (diff--cached-revision-buffers)
(diff--cache-clean-interval, diff--cache-clean-timer, diff--cache-clean)
(diff--cache-schedule-clean, diff--get-revision-properties): New.
(diff-syntax-fontify-hunk): Use diff--get-revision-properties.
Diffstat (limited to 'lisp/emacs-lisp/regexp-opt.el')
0 files changed, 0 insertions, 0 deletions