emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/kiwix feda7b8 11/13: Fix use region detection


From: Stefan Monnier
Subject: [elpa] externals/kiwix feda7b8 11/13: Fix use region detection
Date: Mon, 4 Jan 2021 01:12:53 -0500 (EST)

branch: externals/kiwix
commit feda7b82a0d4c59abc62aaa7da86e7705604cf1e
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: stardiviner <numbchild@gmail.com>

    Fix use region detection
---
 kiwix.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kiwix.el b/kiwix.el
index 1dc8fa1..f73dfd3 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -282,7 +282,7 @@ list and return a list result."
 
 (defun kiwix--get-thing-at-point ()
   "Get region select text or symbol at point."
-  (if mark-active
+  (if (use-region-p)
       (buffer-substring
        (region-beginning) (region-end))
     (thing-at-point 'symbol)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]