From b587309c4385d581ef9ccc48272ed8aba0f97b27 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 13 Jan 2019 12:45:15 -0800 Subject: [PATCH] =?UTF-8?q?Add=20temporary=20fix=20for=20=E2=80=98package-?= =?UTF-8?q?maint-add-news-item=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Until I get my copyright assignment sorted for the FSF I can’t send this to them. Once I’ve sorted it out I will send this fix in. --- oni-package.el | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/oni-package.el b/oni-package.el index 325798b..c8183d0 100644 --- a/oni-package.el +++ b/oni-package.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 20190113123701 +;; Version: 20190113124225 ;; 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 @@ -52,6 +52,20 @@ (setq package-archive-upload-base "/ssh:slash@ryuslash.org:usr/share/emacs/elpa/") +;;; Temporary fix for `package-maint-add-news-item', until I get my +;;; Copyright assignment back in order. +(defun package-maint-add-news-item (title description archive-url) + "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: ") + (package--update-file "elpa.rss" + "" + (package--make-rss-entry title description archive-url)) + (package--update-file "news.html" + "New entries go here" + (package--make-html-entry title description))) + ;;;###autoload (with-eval-after-load 'package (require 'oni-package)) ;;;###autoload (with-eval-after-load 'package-x (require 'oni-package))