changeset 101409:fcf22206598b

newsticker: fixed bug#1710
author Ulf Jasper <ulf.jasper@web.de>
date Fri, 23 Jan 2009 18:49:03 +0000
parents ffa1ec11b74f
children c1075d987474
files lisp/ChangeLog lisp/net/newst-backend.el
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri Jan 23 15:10:16 2009 +0000
+++ b/lisp/ChangeLog	Fri Jan 23 18:49:03 2009 +0000
@@ -1,3 +1,8 @@
+2009-01-23  Ulf Jasper  <ulf.jasper@web.de>
+
+	* net/newst-backend.el (newsticker--cache-read): Offer deletion of
+	old cache file.  Fixes bug#1710.
+
 2009-01-23  Chong Yidong  <cyd@stupidchicken.com>
 
 	* mail/rmail.el (rmail-generate-viewer-buffer): Fix typo.
--- a/lisp/net/newst-backend.el	Fri Jan 23 15:10:16 2009 +0000
+++ b/lisp/net/newst-backend.el	Fri Jan 23 18:49:03 2009 +0000
@@ -7,7 +7,7 @@
 ;; Filename:    newst-backend.el
 ;; URL:         http://www.nongnu.org/newsticker
 ;; Keywords:    News, RSS, Atom
-;; Time-stamp:  "22. Dezember 2008, 19:58:01 (ulf)"
+;; Time-stamp:  "23. Januar 2009, 19:39:22 (ulf)"
 
 ;; ======================================================================
 
@@ -2155,8 +2155,8 @@
       (progn
         (when (y-or-n-p "Old newsticker cache file exists.  Read it? ")
           (newsticker--cache-read-version1))
-        (message "Please remove/rename the old cache file (%s) now."
-                 newsticker-cache-filename))
+        (when (y-or-n-p (format "Delete old newsticker cache file? "))
+          (delete-file newsticker-cache-filename)))
     (mapc (lambda (f)
             (newsticker--cache-read-feed (car f)))
           (append newsticker-url-list-defaults newsticker-url-list))))