[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master f34f49f: Set inhibit-compacting-font-caches to t by
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] master f34f49f: Set inhibit-compacting-font-caches to t by default on MS-Windows |
Date: |
Sat, 7 Sep 2019 05:27:28 -0400 (EDT) |
branch: master
commit f34f49f35e5c000a6ee070678f43d2ca38b76cad
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Set inhibit-compacting-font-caches to t by default on MS-Windows
* src/font.c (syms_of_font) [WINDOWSNT]: Set
inhibit-compacting-font-caches to t by default.
* etc/NEWS: Mention the change.
---
etc/NEWS | 5 +++++
src/font.c | 7 +++++++
2 files changed, 12 insertions(+)
diff --git a/etc/NEWS b/etc/NEWS
index d5130e9..d951444 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2663,6 +2663,11 @@ is being used, except in Far Eastern locales. When this
variable is
non-zero, Emacs at startup sets 'locale-coding-system' to the
corresponding encoding, instead of using 'w32-ansi-code-page'.
+---
+** The default value of 'inhibit-compacting-font-caches' is t on MS-Windows.
+Experience shows that compacting font caches causes more trouble on
+MS-Windows than it helps.
+
+++
** On NS the behaviour of drag and drop can now be modified by use of
modifier keys in line with Apples guidelines. This makes the drag and
diff --git a/src/font.c b/src/font.c
index ce85e0b..935dd64 100644
--- a/src/font.c
+++ b/src/font.c
@@ -5509,7 +5509,14 @@ 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. */);
+
+#ifdef WINDOWSNT
+ /* Compacting font caches causes slow redisplay on Windows with many
+ large fonts, so we disable it by default. */
+ inhibit_compacting_font_caches = 1;
+#else
inhibit_compacting_font_caches = 0;
+#endif
DEFVAR_BOOL ("xft-ignore-color-fonts",
Vxft_ignore_color_fonts,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master f34f49f: Set inhibit-compacting-font-caches to t by default on MS-Windows,
Eli Zaretskii <=