diff options
| author | Eli Zaretskii | 2019-09-07 12:26:08 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2019-09-07 12:26:08 +0300 |
| commit | f34f49f35e5c000a6ee070678f43d2ca38b76cad (patch) | |
| tree | 4b23b17ef8bcedabcaf73f04d9d8be9a026c9090 | |
| parent | 7eaca940ceecc812d6099de64bf7e7a5081fdfb2 (diff) | |
| download | emacs-f34f49f35e5c000a6ee070678f43d2ca38b76cad.tar.gz emacs-f34f49f35e5c000a6ee070678f43d2ca38b76cad.zip | |
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.
| -rw-r--r-- | etc/NEWS | 5 | ||||
| -rw-r--r-- | src/font.c | 7 |
2 files changed, 12 insertions, 0 deletions
| @@ -2663,6 +2663,11 @@ is being used, except in Far Eastern locales. When this variable is | |||
| 2663 | non-zero, Emacs at startup sets 'locale-coding-system' to the | 2663 | non-zero, Emacs at startup sets 'locale-coding-system' to the |
| 2664 | corresponding encoding, instead of using 'w32-ansi-code-page'. | 2664 | corresponding encoding, instead of using 'w32-ansi-code-page'. |
| 2665 | 2665 | ||
| 2666 | --- | ||
| 2667 | ** The default value of 'inhibit-compacting-font-caches' is t on MS-Windows. | ||
| 2668 | Experience shows that compacting font caches causes more trouble on | ||
| 2669 | MS-Windows than it helps. | ||
| 2670 | |||
| 2666 | +++ | 2671 | +++ |
| 2667 | ** On NS the behaviour of drag and drop can now be modified by use of | 2672 | ** On NS the behaviour of drag and drop can now be modified by use of |
| 2668 | modifier keys in line with Apples guidelines. This makes the drag and | 2673 | modifier keys in line with Apples guidelines. This makes the drag and |
diff --git a/src/font.c b/src/font.c index ce85e0bb4ad..935dd64e648 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -5509,7 +5509,14 @@ and cannot switch to a smaller font for those characters, set | |||
| 5509 | this variable non-nil. | 5509 | this variable non-nil. |
| 5510 | Disabling compaction of font caches might enlarge the Emacs memory | 5510 | Disabling compaction of font caches might enlarge the Emacs memory |
| 5511 | footprint in sessions that use lots of different fonts. */); | 5511 | footprint in sessions that use lots of different fonts. */); |
| 5512 | |||
| 5513 | #ifdef WINDOWSNT | ||
| 5514 | /* Compacting font caches causes slow redisplay on Windows with many | ||
| 5515 | large fonts, so we disable it by default. */ | ||
| 5516 | inhibit_compacting_font_caches = 1; | ||
| 5517 | #else | ||
| 5512 | inhibit_compacting_font_caches = 0; | 5518 | inhibit_compacting_font_caches = 0; |
| 5519 | #endif | ||
| 5513 | 5520 | ||
| 5514 | DEFVAR_BOOL ("xft-ignore-color-fonts", | 5521 | DEFVAR_BOOL ("xft-ignore-color-fonts", |
| 5515 | Vxft_ignore_color_fonts, | 5522 | Vxft_ignore_color_fonts, |