aboutsummaryrefslogtreecommitdiffstats
path: root/oni-package.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2019-01-13 12:45:15 -0800
committerGravatar Tom Willemse2019-01-13 12:45:15 -0800
commitb587309c4385d581ef9ccc48272ed8aba0f97b27 (patch)
treea625e5a2ed30a32f4d7ab9271b4da236cbb61faf /oni-package.el
parent96888f9f971d94392288fb94b80ed60ca0809434 (diff)
downloademacs-config-b587309c4385d581ef9ccc48272ed8aba0f97b27.tar.gz
emacs-config-b587309c4385d581ef9ccc48272ed8aba0f97b27.zip
Add temporary fix for ‘package-maint-add-news-item’
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.
Diffstat (limited to 'oni-package.el')
-rw-r--r--oni-package.el16
1 files changed, 15 insertions, 1 deletions
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 <tom@ryuslash.org>
;; 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"
+ "<description>"
+ (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))