Gnus development mailing list
 help / color / mirror / Atom feed
* How to maintain newsrc.eld clean and tidy
@ 2024-10-26 18:33 Dilip
  2024-10-26 19:48 ` Bob Newell
  2024-11-02  0:53 ` James Thomas
  0 siblings, 2 replies; 10+ messages in thread
From: Dilip @ 2024-10-26 18:33 UTC (permalink / raw)
  Cc: ding

The following message is a courtesy copy of an article
that has been posted to gmane.emacs.gnus.general as well.

Hi gnus!

Gnus saves the state of reading into ~gnus-newsrc-alist~ as in elisp
data form.

When I read all messages from a group, I would expect the data form to
shrink or minimize, but I still see long form of data for that group.
Note: By read everything, for old messages I run ~gnus-topic-catchup-articles~ (=c=) on group buffer

Eg:

#+begin_src emacs-lisp
(setq gnus-newsrc-alist
      '( ("nntp+news.gmane.io:gmane.comp.gnu.guix.user" 3 ((1 . 18968))
          ((unexist) (seen (1 . 18968))) "nntp:news.gmane.io") ))
#+end_src
^ I'd expect this form to show that all have been read from 1-18968.

But actually it saves data in session wise based on what were read.
#+begin_src emacs-lisp
(setq gnus-newsrc-alist
      '( ("nntp+news.gmane.io:gmane.comp.gnu.guix.user" 3 ((1 . 18968))
          ((unexist) (seen (18957 . 18968) (18937 . 18944) (18912 . 18920) ........)) "nntp:news.gmane.io") ))
#+end_src
^ But it looks this way. Which create very long lines.

May I know the significance of this form? Why can't it be simple?

After searching up a bit, I notice that =gnus-topic-alist= and =gnus-topic-topology= and be easily maintained manually by config.

So may I get some tips to maintain newsrc file clean and in version control. As I do want to sync with phone (android emacs app) to read as well.
Basically I'm expecting to want that =gnus-newsrc-alist= (hash-table) to be simple in a way that only reports
#+begin_src text
("news...." 3 ((1 . 100)) ((unexist) (seen (1 . 10))))
#+end_src

and not splits of =(1 . 2) (3 . 4) (5 . 10)= for very long lines.

Thank you for taking time to read this.
-- 
Best,
Dilip



^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: How to maintain newsrc.eld clean and tidy
@ 2024-10-28 14:41 Dilip
  0 siblings, 0 replies; 10+ messages in thread
From: Dilip @ 2024-10-28 14:41 UTC (permalink / raw)
  To: Björn Bidar; +Cc: ding

> The rest of my config is here below:
> https://github.com/Thaodan/emacs.d/blob/master/init.org

Thank you for sharing dotfiles. This will help me find something new ;)

-- 
Best,
Dilip



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-11-03  7:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-26 18:33 How to maintain newsrc.eld clean and tidy Dilip
2024-10-26 19:48 ` Bob Newell
2024-10-26 20:54   ` Björn Bidar
     [not found]   ` <4904.38762806065$1729976159@news.gmane.org>
2024-10-27  5:38     ` Dilip
2024-10-27  9:51       ` Andreas Schwab
     [not found]         ` <87plnlr95i.fsf@protonmail.com>
2024-10-27 13:43           ` Andreas Schwab
2024-10-28 13:20       ` Björn Bidar
2024-11-02  0:53 ` James Thomas
2024-11-03  7:56   ` Dilip
2024-10-28 14:41 Dilip

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).