summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2026-05-31 12:40:11 +0300
committerEli Zaretskii <eliz@gnu.org>2026-05-31 12:40:11 +0300
commitcc9f35c54bab5f2250c660ea475fc029bcc4bf94 (patch)
treea3c9b04e15d60c416d7361fec6898d4949ad06c9 /etc
parent2727a6f4e8d07f3b6cd984fae90dc16f122e5796 (diff)
; * etc/PROBLEMS: Minor fixes of last change.
Diffstat (limited to 'etc')
-rw-r--r--etc/PROBLEMS41
1 files changed, 22 insertions, 19 deletions
diff --git a/etc/PROBLEMS b/etc/PROBLEMS
index c01b9e079ea..54302968e6d 100644
--- a/etc/PROBLEMS
+++ b/etc/PROBLEMS
@@ -3649,34 +3649,37 @@ file; for example:
** Stuttering and missed keypresses during Native Compilation on macOS
Natively compiled modules are validated by macOS the first time that
-they are loaded. On some machines, this can cause Emacs to be
-temporarily less responsive while large batches of modules are being
-compiled and loaded.
+they are loaded. On some machines, this can cause Emacs to be
+temporarily less responsive while a large number of '*.eln' files are
+being compiled and loaded.
One can force the first load of the module to happen in the async
compilation worker by adding this to their early-init.el:
-(setq native-comp-async-env-modifier-form
- '(progn
- (defun c/native-comp--preload-eln-after-compile
- (compile function-or-file &optional with-late-load output)
- "Preload async native-comp output in the compiler child."
- (prog1 (funcall compile function-or-file with-late-load output)
- (when (and (stringp function-or-file) with-late-load)
- (with-demoted-errors "Async native .eln preload: %S"
- (let ((eln-file (comp-el-to-eln-filename function-or-file)))
- (when (file-exists-p eln-file)
- (native-elisp-load eln-file t)))))))
+ (setq native-comp-async-env-modifier-form
+ '(progn
+ (defun c/native-comp--preload-eln-after-compile
+ (compile function-or-file &optional with-late-load output)
+ "Preload async native-comp output in the compiler child."
+ (prog1 (funcall compile function-or-file with-late-load output)
+ (when (and (stringp function-or-file) with-late-load)
+ (with-demoted-errors "Async native .eln preload: %S"
+ (let ((eln-file (comp-el-to-eln-filename function-or-file)))
+ (when (file-exists-p eln-file)
+ (native-elisp-load eln-file t)))))))
- (advice-add 'comp--native-compile
- :around #'c/native-comp--preload-eln-after-compile)))
+ (advice-add 'comp--native-compile
+ :around #'c/native-comp--preload-eln-after-compile)))
Alternatively, if one is willing to accept the associated security
risks, one could disable library validation on their Emacs binary:
-codesign --force --sign - \
- --entitlements macos-disable-library-validation.entitlements \
- src/emacs
+ codesign --force --sign - \
+ --entitlements macos-disable-library-validation.entitlements \
+ src/emacs
+
+Disabling validation might expose you to security risks, so please
+consider that before using this recipe.
** Text dictation doesn't work on macOS