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

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

[elpa] externals/pulsar 1848ba0068 1/2: Relax test for last pulsar comma


From: ELPA Syncer
Subject: [elpa] externals/pulsar 1848ba0068 1/2: Relax test for last pulsar command
Date: Sat, 6 Aug 2022 08:57:50 -0400 (EDT)

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

    Relax test for last pulsar command
    
    This matches commands that the user may define such as "my/pulsar-WORD",
    whereas before it was limited to Pulsar's own prefix.
    
    I understand that 'string-match-p' is more likely to return some false
    positives, though I feel the likelihood is low.
    
    See commit 2c2600c for the rationale of this condition.
---
 pulsar.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pulsar.el b/pulsar.el
index 69186936da..defa2d1fec 100644
--- a/pulsar.el
+++ b/pulsar.el
@@ -423,7 +423,7 @@ This is a buffer-local mode.  Also check 
`pulsar-global-mode'."
   ;; We don't want that.
   (when (and pulsar-pulse-on-window-change
              (or pulsar-mode pulsar-global-mode)
-             (not (string-prefix-p "pulsar" (symbol-name last-command))))
+             (not (string-match-p "pulsar" (symbol-name last-command))))
     (pulsar-pulse-line)))
 
 (defun pulsar--post-command-pulse ()



reply via email to

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