[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/jinx 6f9ca8645a: Fix deadlock on macOS during Jinx star
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals/jinx 6f9ca8645a: Fix deadlock on macOS during Jinx startup (Fix #91, #113) |
|
Date: |
Wed, 17 Jan 2024 18:58:01 -0500 (EST) |
branch: externals/jinx
commit 6f9ca8645ad2610ccfd8cb98c29ee0ad00fd5d48
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Fix deadlock on macOS during Jinx startup (Fix #91, #113)
---
README.org | 7 +++----
jinx.el | 5 +++++
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/README.org b/README.org
index e01ad8753d..d49537dddb 100644
--- a/README.org
+++ b/README.org
@@ -54,11 +54,10 @@ Linux distribution you have to install different packages:
- Guix: =emacs-jinx= or =enchant=, =pkgconf=
- NixOS: =jinx= from =elpa-packages.nix=
- Void, Fedora: =enchant2-devel=, =pkgconf=
-- FreeBSD, OpenBSD: =enchant2=, =pkgconf=
+- FreeBSD, OpenBSD, Mac: =enchant2=, =pkgconf=
-There have been reports of hangups when loading the native module on unofficial
-Emacs Mac ports. On Windows the installation of the native module may require
-manual intervention.
+On Windows the installation of the native module may require manual
+intervention.
* Configuration
diff --git a/jinx.el b/jinx.el
index c753add990..f0b2089b0c 100644
--- a/jinx.el
+++ b/jinx.el
@@ -601,6 +601,11 @@ If CHECK is non-nil, always check first."
(pop-to-buffer (current-buffer))
(error msg)))))
(setq mod-file (expand-file-name mod-name))))
+ ;; Initialize Mac spell checker to avoid dead lock (gh:minad/jinx#91).
+ (when (and (eq window-system 'mac) (fboundp 'mac-do-applescript))
+ (mac-do-applescript
+ "use framework \"AppKit\"
+ set spellChecker to current application's NSSpellChecker's
sharedSpellChecker()"))
(module-load mod-file))))
(defmacro jinx--correct-guard (&rest body)
| [Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/jinx 6f9ca8645a: Fix deadlock on macOS during Jinx startup (Fix #91, #113),
ELPA Syncer <=