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

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

[elpa] master f472834 05/24: hydra.el (hydra--format): Be non-greedy wit


From: Oleh Krehel
Subject: [elpa] master f472834 05/24: hydra.el (hydra--format): Be non-greedy with width spec
Date: Fri, 01 May 2015 14:27:10 +0000

branch: master
commit f472834b22e335dff6c2fd3eef8b3d1cb4e16252
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    hydra.el (hydra--format): Be non-greedy with width spec
    
    * hydra.el (hydra--format): Since the key spec is non-greedy, the width
      spec should be non-greedy too.
    
    Otherwise, the following will match more than _1_:
        _1_: h1         _2_: h2
    
    Fixes #117
---
 hydra.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hydra.el b/hydra.el
index 125bb1c..2d3a2e9 100644
--- a/hydra.el
+++ b/hydra.el
@@ -474,7 +474,7 @@ The expressions can be auto-expanded according to NAME."
         offset)
     (while (setq start
                  (string-match
-                  "\\(?:%\\( 
?-?[0-9]*s?\\)\\(`[a-z-A-Z/0-9]+\\|(\\)\\)\\|\\(?:_\\( 
?-?[0-9]*\\)\\([[:alnum:] -~.,;:/|?<>={}*+#]+?\\)_\\)"
+                  "\\(?:%\\( 
?-?[0-9]*s?\\)\\(`[a-z-A-Z/0-9]+\\|(\\)\\)\\|\\(?:_\\( 
?-?[0-9]*?\\)\\([[:alnum:] -~.,;:/|?<>={}*+#]+?\\)_\\)"
                   docstring start))
       (cond ((eq ?_ (aref (match-string 0 docstring) 0))
              (let* ((key (match-string 4 docstring))



reply via email to

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