branch: externals/jinx commit a7f3d749b9637bc886a8ffcb841de2da65678fc3 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
Unset set-message-function during with-delayed-message (bug#63253) --- jinx.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/jinx.el b/jinx.el index 40a977bd02..f1d5c97b66 100644 --- a/jinx.el +++ b/jinx.el @@ -464,12 +464,11 @@ If VISIBLE is non-nil, only include visible overlays. If CHECK is non-nil, always check first." (or (and (not check) (jinx--get-overlays start end visible)) (progn - ;; FIXME `with-delayed-message' is broken in combination with - ;; `inhibit-message'. Report this as a bug. - (progn ;; with-delayed-message (1 "Fontifying...") - (jinx--in-base-buffer #'jit-lock-fontify-now)) - (progn ;; with-delayed-message (1 "Checking...") - (jinx--check-region start end)) + (let (set-message-function) ;; bug#63253: Broken `with-delayed-message' + (with-delayed-message (1 "Fontifying...") + (jinx--in-base-buffer #'jit-lock-fontify-now)) + (with-delayed-message (1 "Checking...") + (jinx--check-region start end))) (jinx--get-overlays start end visible)) (user-error (if visible "No misspelling in visible text" "No misspelling in whole buffer"))))