From 6d6d2b73d069d44a4f5c0dfa68f253777b0418fb Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sat, 4 Dec 2021 12:22:58 +0100 Subject: [PATCH] ; Fix removal of obsolete newsticker function * lisp/net/newst-plainview.el (newsticker-close-buffer) (newsticker-mark-all-items-of-feed-as-read) (newsticker-mark-all-items-as-read): Use 'newsticker--cache-save' instead of removed obsolete function 'newsticker--cache-update'. * etc/NEWS: Don't mention obsolete internal variables. --- etc/NEWS | 7 +++---- lisp/net/newst-plainview.el | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index 81fc26b147f..ac1787d7f80 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -771,10 +771,9 @@ Use 'exif-parse-file' and 'exif-field' instead. This change is now applied in 'dired-insert-directory'. ** Some functions and variables obsolete since Emacs 23 have been removed: -'find-emacs-lisp-shadows', 'newsticker--cache-read-version1', -'newsticker--cache-save-version1', 'newsticker--cache-update', -'newsticker-cache-filename', 'unify-8859-on-decoding-mode', -'unify-8859-on-encoding-mode', 'vc-arch-command'. +'find-emacs-lisp-shadows', 'newsticker-cache-filename', +'unify-8859-on-decoding-mode', 'unify-8859-on-encoding-mode', +'vc-arch-command'. * Lisp Changes in Emacs 29.1 diff --git a/lisp/net/newst-plainview.el b/lisp/net/newst-plainview.el index 420cf82e4d8..82977b000b6 100644 --- a/lisp/net/newst-plainview.el +++ b/lisp/net/newst-plainview.el @@ -589,7 +589,7 @@ calls `w3m-toggle-inline-image'. It works only if (defun newsticker-close-buffer () "Close the newsticker buffer." (interactive) - (newsticker--cache-update t) + (newsticker--cache-save) (bury-buffer)) (defun newsticker-next-new-item (&optional do-not-wrap-at-eob) @@ -748,7 +748,7 @@ Return new buffer position." (newsticker--cache-replace-age newsticker--cache feed 'new 'old) (newsticker--cache-replace-age newsticker--cache feed 'obsolete 'old) - (newsticker--cache-update) + (newsticker--cache-save) (newsticker--buffer-set-uptodate nil) (newsticker--ticker-text-setup) (newsticker-buffer-update) @@ -879,7 +879,7 @@ not get changed." (newsticker--cache-replace-age newsticker--cache 'any 'new 'old) (newsticker--buffer-set-uptodate nil) (newsticker--ticker-text-setup) - (newsticker--cache-update) + (newsticker--cache-save) (newsticker-buffer-update))) (defun newsticker-hide-extra () -- 2.39.2