all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: BP25 <bp25@riseup.net>, Ulf Jasper <ulf.jasper@web.de>
Cc: 74198@debbugs.gnu.org
Subject: bug#74198: 29.4; Newsticker reloads old items as new
Date: Mon, 04 Nov 2024 14:38:36 +0200	[thread overview]
Message-ID: <86y11zuqb7.fsf@gnu.org> (raw)
In-Reply-To: <87zfmg56di.fsf@riseup.net> (message from BP25 on Sun, 03 Nov 2024 21:56:09 +0000)

> From: BP25 <bp25@riseup.net>
> Date: Sun, 03 Nov 2024 21:56:09 +0000
> 
> In GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41,
> cairo version 1.18.0)
> System Description: Fedora Linux 39 (Workstation Edition)
> 
> PART A:
> 
> delete your newsticker folder
> emacs -nw -Q --load .emacs
> where .emacs contains:
> --8<---------------cut here---------------start------------->8---
> (custom-set-variables
>  '(newsticker-frontend 'newsticker-plainview)
>  '(newsticker-url-list
>    '(("Weather London" "https://weather-broker-cdn.api.bbci.co.uk/en/forecast/rss/3day/2643743" nil nil nil)))
>  '(newsticker-url-list-defaults nil)
>  '(newsticker-retrieval-interval 0)
>  '(newsticker-automatically-mark-items-as-old nil)
>    )
> --8<---------------cut here---------------end--------------->8---
> M-x newsticker-show-news
> M-x newsticker-get-all-news
> M-x newsticker-show-news
> Mark the items of the first (and only non-default) feed as old
> M-x newsticker-show-news
> 
> Expected result: the items previously visible as orange stay orange.
> Obtained result: the items previously visible as orange are white.
> 
> 
> PART B:
> 
> Same as PART A except remove the line
> '(newsticker-url-list-defaults nil)
> from .emacs
> 
> Expected result: the items previously visible as orange stay orange.
> Obtained result: the items previously visible as orange stay orange.
> 
> 
> PART C:
> 
> Same as PART A except remove the line
> '(newsticker-retrieval-interval 0)
> from .emacs
> 
> Expected result: the items previously visible as orange stay orange.
> Obtained result: the items previously visible as orange stay orange.
> 
> 
> ANALYSIS: There must be some conflict between
> '(newsticker-url-list-defaults nil) and '(newsticker-retrieval-interval 0)

The doc string of newsticker-retrieval-interval says

  If this value is not positive (i.e. less than or equal to 0)
  items are retrieved only once!

Doesn't that explain what you see?

(Disclaimer: I know nothing about newsticker.)





  reply	other threads:[~2024-11-04 12:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-03 21:56 bug#74198: 29.4; Newsticker reloads old items as new BP25
2024-11-04 12:38 ` Eli Zaretskii [this message]
2024-11-04 15:40   ` Ulf Jasper via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-07 15:49     ` Ulf Jasper via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-08  7:52       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86y11zuqb7.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=74198@debbugs.gnu.org \
    --cc=bp25@riseup.net \
    --cc=ulf.jasper@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.