From 4b9a2e7258a0ea307bb631a0fbc5a0b0564a1830 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 23 Jan 2006 10:40:10 +0000 Subject: handle increasing things like "%mkrel 2" --- rpm-spec-mode.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpm-spec-mode.el b/rpm-spec-mode.el index f3569af..eea9433 100644 --- a/rpm-spec-mode.el +++ b/rpm-spec-mode.el @@ -1308,7 +1308,10 @@ if one is present in the file." (or (funcall increase-macro macros) (and (search-forward-regexp (concat "%define[ \t]+" macros "[ \t]+%mkrel[ \t]+%{rel}") nil t) - (funcall increase-macro "rel")))))))) + (funcall increase-macro "rel")) + (and (search-forward-regexp "\\(%mkrel[ \t]+\\)\\([0-9]+\\)$" nil t) + (replace-match (concat (match-string 1) (int-to-string (1+ (string-to-int (match-string 2))))))) + )))))) ;;------------------------------------------------------------ -- cgit v1.2.1