From c6193b537918acc34d4600148f7d5149c29d79c3 Mon Sep 17 00:00:00 2001 From: Ulf Jasper Date: Mon, 16 Feb 2009 20:45:14 +0000 Subject: [PATCH] newsticker: offer deletion of old groups file. --- lisp/ChangeLog | 5 +++++ lisp/net/newst-treeview.el | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index dd6b376a988..093bd0fa8e1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2009-02-16 Ulf Jasper + + * net/newst-treeview.el (newsticker--treeview-load): Offer + deletion of old groups file. + 2009-02-16 Glenn Morris * mail/rmailout.el (rmail-delete-unwanted-fields) diff --git a/lisp/net/newst-treeview.el b/lisp/net/newst-treeview.el index a30fe8ebb39..572387f60f2 100644 --- a/lisp/net/newst-treeview.el +++ b/lisp/net/newst-treeview.el @@ -7,7 +7,7 @@ ;; URL: http://www.nongnu.org/newsticker ;; Created: 2007 ;; Keywords: News, RSS, Atom -;; Time-stamp: "8. Februar 2009, 19:24:05 (ulf)" +;; Time-stamp: "16. Februar 2009, 21:25:09 (ulf)" ;; ====================================================================== @@ -1261,6 +1261,9 @@ Note: does not update the layout." (concat newsticker-dir "/groups"))) (buf (and (file-exists-p filename) (find-file-noselect filename)))) + (if (and (file-exists-p newsticker-groups-filename) + (y-or-n-p (format "Delete old newsticker groups file? ")) + (delete-file newsticker-groups-filename))) (when buf (set-buffer buf) (goto-char (point-min))