[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pdf-tools d4a333a958 1/3: fix: disable qt-workaround in Em
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pdf-tools d4a333a958 1/3: fix: disable qt-workaround in Emacs 27>= |
Date: |
Sun, 19 Jun 2022 18:58:45 -0400 (EDT) |
branch: elpa/pdf-tools
commit d4a333a9586839b656b46d112b27b9262cb9bf2b
Author: Pi-Cla <pirateclip@protonmail.com>
Commit: Vedang Manerikar <ved.manerikar@gmail.com>
fix: disable qt-workaround in Emacs 27>=
The bug is fixed upstream in Emacs 27
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19016
Fixes: #118
---
lisp/pdf-info.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/pdf-info.el b/lisp/pdf-info.el
index 54860f9790..0071e192fc 100644
--- a/lisp/pdf-info.el
+++ b/lisp/pdf-info.el
@@ -305,7 +305,7 @@ error."
(setq pdf-info--queue (tq-create proc))))
pdf-info--queue)
-(advice-add 'tq-process-buffer :around #'pdf-info--tq-workaround)
+(when (< emacs-major-version 27) (advice-add 'tq-process-buffer :around
#'pdf-info--tq-workaround))
(defun pdf-info--tq-workaround (orig-fun tq &rest args)
"Fix a bug in trunk where the wrong callback gets called.