From a86d31cff62d673ca7c725261ed2f90f6a57baa9 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 18 Feb 2019 23:06:32 -0800 Subject: Improve ‘package-maint-add-news-item’ by using ‘completing-read’ Typos are too easy having to type in the ‘archive-url’ argument every time on its own. Since you’re probably posting to an archive that you also use, reading from the ‘package-archives’ seems appropriate. --- oni-package.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/oni-package.el b/oni-package.el index e752f60..fe4ebba 100644 --- a/oni-package.el +++ b/oni-package.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 20190203132826 +;; Version: 20190218230337 ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -59,7 +59,11 @@ "Add a news item to the webpages associated with the package archive. TITLE is the title of the news item. DESCRIPTION is the text of the news item." - (interactive "sTitle: \nsText: \nsArchive URL: ") + (interactive + (list + (read-string "Title: ") + (read-string "Text: ") + (completing-read "Archive URL: " (mapcar 'cdr package-archives)))) (package--update-file "elpa.rss" "" (package--make-rss-entry title description archive-url)) -- cgit v1.2.3-54-g00ecf