summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-03-15 14:51:21 -0400
committerKyle Meyer <kyle@kyleam.com>2020-04-16 23:54:14 -0400
commit298331103c96101f5b800eba5124e16c94b6812d (patch)
tree3bdcc4a0f01de620a306aa1632f823240278cde9 /lisp
parent6cdcd9d60738b3bfa828c5fc469600b21a00bed7 (diff)
downloademacs.d-298331103c96101f5b800eba5124e16c94b6812d.tar.gz
km/magit-show-commit-at-point: Convert regexp to rx
Diffstat (limited to 'lisp')
-rw-r--r--lisp/km-magit.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/km-magit.el b/lisp/km-magit.el
index 07e1bbc..a42b22c 100644
--- a/lisp/km-magit.el
+++ b/lisp/km-magit.el
@@ -73,7 +73,9 @@ project, or 3) an commit object for the hash at point doesn't
exist in the current project."
(interactive "P")
(if (save-excursion (skip-chars-backward "[[:xdigit:]]")
- (looking-at "\\b[[:xdigit:]]\\{4,40\\}\\b"))
+ (looking-at (rx word-boundary
+ (repeat 4 40 xdigit)
+ word-boundary)))
(let* ((hash (match-string-no-properties 0))
(project
(and (or choose-project