From 3e3af2a629b25f6583225180c6c3280d1bb3493d Mon Sep 17 00:00:00 2001 From: Salih Muhammed Date: Sat, 22 Jul 2023 18:14:03 +0300 Subject: [PATCH] fix(lookup): correctly scrape identifier in pdf-view-mode --- modules/tools/lookup/autoload/lookup.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/tools/lookup/autoload/lookup.el b/modules/tools/lookup/autoload/lookup.el index 54f8ebb56..0a2002773 100644 --- a/modules/tools/lookup/autoload/lookup.el +++ b/modules/tools/lookup/autoload/lookup.el @@ -408,6 +408,8 @@ Otherwise, falls back on `find-file-at-point'." "Look up the definition of the word at point (or selection)." (interactive (list (or (doom-thing-at-point-or-region 'word) + (if (equal major-mode 'pdf-view-mode) + (car (pdf-view-active-region-text))) (read-string "Look up in dictionary: ")) current-prefix-arg)) (message "Looking up dictionary definition for %S" identifier)