diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2016-10-10 07:39:05 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2016-10-10 07:39:05 -0700 |
commit | 46b83c0f08f936eb1a0ae761db557169fe295cc7 (patch) | |
tree | bdb663d86a908a83b7c953316d04714664b32a0c /src/font.c | |
parent | be589ea0dc71063d26595378df303a2a1c25ee4e (diff) | |
parent | 4f406e9813e073b675bb45613bf1dd111eec2368 (diff) | |
download | emacs-46b83c0f08f936eb1a0ae761db557169fe295cc7.tar.gz |
Merge from origin/emacs-25
4f406e9 CC Mode manual: remove reference to former Emacs variable las...
44e402e Allow to disable compaction of font caches
4ff4b66 Allow selection of font for symbols as in Emacs 24.x
c03d44b ; Fix last commit
d4be4f3 ; Fix indexing in lispref manual
ed399f2 ; Minor improvement in documentation of generators
197a6bc Fix horizontal scrolling during Isearch
3566644 Fix infloop in redisplay due to truncated lines and invisible...
# Conflicts:
# etc/NEWS
Diffstat (limited to 'src/font.c')
-rw-r--r-- | src/font.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/font.c b/src/font.c index cfbc5c7e266..f8e6794cbb1 100644 --- a/src/font.c +++ b/src/font.c @@ -5434,6 +5434,19 @@ Set it to nil to enable logging. If the environment variable EMACS_FONT_LOG is set at startup, it defaults to nil. */); Vfont_log = Qnil; + DEFVAR_BOOL ("inhibit-compacting-font-caches", inhibit_compacting_font_caches, + doc: /* +If non-nil, don't compact font caches during GC. +Some large fonts cause lots of consing and trigger GC. If they +are removed from the font caches, they will need to be opened +again during redisplay, which slows down redisplay. If you +see font-related delays in displaying some special characters, +and cannot switch to a smaller font for those characters, set +this variable non-nil. +Disabling compaction of font caches might enlarge the Emacs memory +footprint in sessions that use lots of different fonts. */); + inhibit_compacting_font_caches = 0; + #ifdef HAVE_WINDOW_SYSTEM #ifdef HAVE_FREETYPE syms_of_ftfont (); |