aboutsummaryrefslogtreecommitdiffstats
path: root/rpm-spec-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'rpm-spec-mode.el')
-rw-r--r--rpm-spec-mode.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/rpm-spec-mode.el b/rpm-spec-mode.el
index 82af626..f3569af 100644
--- a/rpm-spec-mode.el
+++ b/rpm-spec-mode.el
@@ -1304,10 +1304,11 @@ if one is present in the file."
t)))))
(if (string-match "%{?\\([^}]*\\)}?$" str)
- (or (funcall increase-macro (substring str (match-beginning 1) (match-end 1)))
- (and (search-forward-regexp
- (concat "%define[ \t]+" macros "[ \t]+%mkrel[ \t]+%{rel}") nil t)
- (funcall increase-macro "rel")))))))
+ (let ((macros (substring str (match-beginning 1) (match-end 1))))
+ (or (funcall increase-macro macros)
+ (and (search-forward-regexp
+ (concat "%define[ \t]+" macros "[ \t]+%mkrel[ \t]+%{rel}") nil t)
+ (funcall increase-macro "rel"))))))))
;;------------------------------------------------------------