diff options
| author | Eli Zaretskii | 2016-10-08 22:31:14 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2016-10-08 22:31:14 +0300 |
| commit | 44e402ead35eb9b4d0bf8a94a4d3ca933629aba9 (patch) | |
| tree | 4fea0c439333c80c05e03585c5b3b7a7f9ea6b35 /src/alloc.c | |
| parent | 4ff4b66df8da175d8df292d12a30ab50285b6917 (diff) | |
| download | emacs-44e402ead35eb9b4d0bf8a94a4d3ca933629aba9.tar.gz emacs-44e402ead35eb9b4d0bf8a94a4d3ca933629aba9.zip | |
Allow to disable compaction of font caches
* src/font.c (syms_of_font) <inhibit-compacting-font-caches>: New
boolean variable.
* src/alloc.c (compact_font_caches): Use it to bypass the call to
compact_font_cache_entry. (Bug#24634) (Bug#24565)
* etc/NEWS: Mention the new variable.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c index f33d93f83b4..c7f58a8adc4 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -5584,7 +5584,11 @@ compact_font_caches (void) | |||
| 5584 | for (t = terminal_list; t; t = t->next_terminal) | 5584 | for (t = terminal_list; t; t = t->next_terminal) |
| 5585 | { | 5585 | { |
| 5586 | Lisp_Object cache = TERMINAL_FONT_CACHE (t); | 5586 | Lisp_Object cache = TERMINAL_FONT_CACHE (t); |
| 5587 | if (CONSP (cache)) | 5587 | /* Inhibit compacting the caches if the user so wishes. Some of |
| 5588 | the users don't mind a larger memory footprint, but do mind | ||
| 5589 | slower redisplay. */ | ||
| 5590 | if (!inhibit_compacting_font_caches | ||
| 5591 | && CONSP (cache)) | ||
| 5588 | { | 5592 | { |
| 5589 | Lisp_Object entry; | 5593 | Lisp_Object entry; |
| 5590 | 5594 | ||