summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2024-08-20 19:52:40 +0200
committerUlrich Müller <ulm@gentoo.org>2024-08-21 08:57:59 +0200
commit3dcbea56f8219b6cdc21cac3baf18a02bfe6db5f (patch)
treecb4eb8221618d3b03cde691b55dc863a1f940e76 /ebuild-mode.el
parentOptimise font-lock keyword collection (diff)
downloadebuild-mode-3dcbea56f8219b6cdc21cac3baf18a02bfe6db5f.tar.gz
ebuild-mode-3dcbea56f8219b6cdc21cac3baf18a02bfe6db5f.tar.bz2
ebuild-mode-3dcbea56f8219b6cdc21cac3baf18a02bfe6db5f.zip
Use push in init value
* ebuild-mode.el (ebuild-mode-arch-stable-list): Use push. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'ebuild-mode.el')
-rw-r--r--ebuild-mode.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/ebuild-mode.el b/ebuild-mode.el
index 7f3457a..9c190f8 100644
--- a/ebuild-mode.el
+++ b/ebuild-mode.el
@@ -157,7 +157,7 @@ Returns non-nil if A is less than B by Gentoo keyword ordering."
(setq arch (match-string 1))
(and (not (member arch archs))
(member arch ebuild-mode-arch-list)
- (setq archs (cons arch archs))))
+ (push arch archs)))
(sort archs #'ebuild-mode-arch-lessp)))
(file-error nil))
(condition-case nil
@@ -171,7 +171,7 @@ Returns non-nil if A is less than B by Gentoo keyword ordering."
(setq arch (match-string 1))
(and (not (member arch archs))
(member arch ebuild-mode-arch-list)
- (setq archs (cons arch archs))))
+ (push arch archs)))
(sort archs #'ebuild-mode-arch-lessp)))
(file-error nil))
;; fall back to list of all architectures