branch: elpa/rpm-spec-mode commit c69847de7a49c092b4462c9a6d37cf348fa4d69a Author: Peter Oliver <g...@mavit.org.uk> Commit: Björn Bidar <bjorn.bi...@thaodan.de>
Eliminate redundant variable `rpm-section-list`. --- rpm-spec-mode.el | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/rpm-spec-mode.el b/rpm-spec-mode.el index 26217e2aaf..d36c92df3c 100644 --- a/rpm-spec-mode.el +++ b/rpm-spec-mode.el @@ -244,10 +244,6 @@ value returned by function `user-mail-address'." '("preamble" "description" "prep" "setup" "build" "install" "check" "clean" "changelog" "files") "Partial list of section names.") -(defvar rpm-section-list - '(("preamble") ("description") ("prep") ("setup") ("build") ("install") - ("check") ("clean") ("changelog") ("files")) - "Partial list of section names.") (defconst rpm-scripts ;; trigger, filetrigger, transfiletrigger no found in build/parseScript.c '("pre" "post" "preun" "postun" @@ -1011,7 +1007,7 @@ Go to beginning of current section." (defun rpm-goto-section (section) "Move point to the beginning of the specified SECTION. leave point at previous location." - (interactive (list (rpm-completing-read "Section: " rpm-section-list))) + (interactive (list (rpm-completing-read "Section: " rpm-sections))) (push-mark) (goto-char (point-min)) (or