diff options
author | Tom Willemse | 2019-02-18 23:06:32 -0800 |
---|---|---|
committer | Tom Willemse | 2019-02-18 23:06:32 -0800 |
commit | a86d31cff62d673ca7c725261ed2f90f6a57baa9 (patch) | |
tree | f2c56fe9b66e4655391292bd44e08adb7fafee5d /oni-package.el | |
parent | c436c82f86ec9cade711d209df839997eb00a0cc (diff) | |
download | emacs-config-a86d31cff62d673ca7c725261ed2f90f6a57baa9.tar.gz emacs-config-a86d31cff62d673ca7c725261ed2f90f6a57baa9.zip |
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.
Diffstat (limited to 'oni-package.el')
-rw-r--r-- | oni-package.el | 8 |
1 files 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 <tom@ryuslash.org> ;; 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" "<description>" (package--make-rss-entry title description archive-url)) |