changeset 102060:5216898e2bed

newsticker: offer deletion of old groups file.
author Ulf Jasper <ulf.jasper@web.de>
date Mon, 16 Feb 2009 20:45:14 +0000
parents 9bcea07061a8
children cd6c733e7e27
files lisp/ChangeLog lisp/net/newst-treeview.el
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Mon Feb 16 17:41:58 2009 +0000
+++ b/lisp/ChangeLog	Mon Feb 16 20:45:14 2009 +0000
@@ -1,3 +1,8 @@
+2009-02-16  Ulf Jasper  <ulf.jasper@web.de>
+
+	* net/newst-treeview.el (newsticker--treeview-load): Offer
+	deletion of old groups file.
+
 2009-02-16  Glenn Morris  <rgm@gnu.org>
 
 	* mail/rmailout.el (rmail-delete-unwanted-fields)
--- a/lisp/net/newst-treeview.el	Mon Feb 16 17:41:58 2009 +0000
+++ b/lisp/net/newst-treeview.el	Mon Feb 16 20:45:14 2009 +0000
@@ -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 @@
               (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))