]> code.delx.au - gnu-emacs-elpa/commitdiff
hydra.el (hydra--format): Fix "s-t" issue
authorOleh Krehel <ohwoeowho@gmail.com>
Wed, 15 Apr 2015 08:12:39 +0000 (10:12 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Wed, 15 Apr 2015 08:12:39 +0000 (10:12 +0200)
* hydra.el (hydra--format): Update.

Fixes #107.

hydra.el

index e370dbc6267bec2db0ff76fb8ba7f847ff72302b..0ce5e4463e2dcd1a42b308f1f29ea77cccf2d97f 100644 (file)
--- a/hydra.el
+++ b/hydra.el
@@ -460,7 +460,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))