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

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

[elpa] externals/pulsar 2c5ed0edf0 1/2: Make sure rectangle-mark-mode is


From: ELPA Syncer
Subject: [elpa] externals/pulsar 2c5ed0edf0 1/2: Make sure rectangle-mark-mode is bound
Date: Fri, 1 Apr 2022 23:57:40 -0400 (EDT)

branch: externals/pulsar
commit 2c5ed0edf007a6c91f6488aa7aa0cab4b46109cd
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Make sure rectangle-mark-mode is bound
---
 pulsar.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pulsar.el b/pulsar.el
index 8684a8ff45..72e5abbf30 100644
--- a/pulsar.el
+++ b/pulsar.el
@@ -320,7 +320,7 @@ default)."
 ;; rectangular regions).
 (defun pulsar--remove-rectangle-remap ()
   "Remove face remap from rectangle region when appropriate."
-  (when (and rectangle-mark-mode
+  (when (and (bound-and-true-p rectangle-mark-mode)
              (not (eq this-command 'pulsar-highlight-dwim)))
     (pulsar--remove-face-remap)))
 
@@ -340,7 +340,7 @@ region may also be a rectangle.
 For lines, do the same as `pulsar-highlight-line'."
   (interactive "r")
   (cond
-   (rectangle-mark-mode
+   ((bound-and-true-p rectangle-mark-mode)
     (pulsar--highlight-rectangle))
    ((use-region-p)
     (pulsar--pulse :no-pulse pulsar-highlight-face beg end))



reply via email to

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