From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: from mx1.math.uh.edu (mx1.math.uh.edu [129.7.128.32]) by inbox.vuxu.org (Postfix) with ESMTP id 499DD25523 for ; Sat, 2 Nov 2024 01:54:23 +0100 (CET) Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1t72PE-000000012K1-1MZd for ml@inbox.vuxu.org; Fri, 01 Nov 2024 19:54:20 -0500 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.97.1) (envelope-from ) id 1t72PC-00000006KXS-08Ws for ml@inbox.vuxu.org; Fri, 01 Nov 2024 19:54:18 -0500 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtp (Exim 4.97.1) (envelope-from ) id 1t72P8-00000006KXJ-0vae for ding@lists.math.uh.edu; Fri, 01 Nov 2024 19:54:15 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1t72P3-000000012JR-1l8z for ding@lists.math.uh.edu; Fri, 01 Nov 2024 19:54:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=l3EzIln7dFwxXxiUqzb7Cz6Btz5qdzBfHBXdItTR0YA=; b=YJrAAxieni9egftAnWkSGjedRK /MWLwZPFEXo47Z9evAuJkSLqPyX7iszRyDnupd0TZ6yCv1H0cGsfvXDTE0mYMN4SpPlqaVDNldEoo brmy78TOC2lJa77w+A7+3amraTxN1djMwsifawDS72nJxOs74xm4J8KdfVhgxk34r8bU=; Received: from mout.gmx.net ([212.227.15.15]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t72Ot-00048v-8L for ding@gnus.org; Sat, 02 Nov 2024 01:54:01 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1730508836; x=1731113636; i=jimjoe@gmx.net; bh=l3EzIln7dFwxXxiUqzb7Cz6Btz5qdzBfHBXdItTR0YA=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=IkgP2/IcQEUDA/0Ca1WHW7rg0aca/rogM0RlmRDDsN3XvznB3DnIxowNRTN/59jX 16PLbD/hU1gxLGnIvxtC+ktAKfx7w0Ofm2Tt4b+Yh5WUsblhIeLc5ygZGmTb0gMdP 2rx0UqN5f8YB2yKi+NyYkjWbhJ77R4V6I+H3nD/bDvdpuD3ecWpyWmDLJ80zhyBBB VZQkJtB7yamGMGCrpqTkOtpD45JypOAJpgUbNvFg3CKV7sGAT2xMZCrkoUiWjqfwQ dMpO9MbPjyisohLISZaKQMRU1OdAVzGMTL3uLDrxcYeBxWyz/fUAkxMx6MoP3fKAJ sVb1WSzs1+XcXyP0wg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from user-Inspiron-3493 ([117.221.126.109]) by mail.gmx.net (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MPokD-1tTEFk1bJj-00JMOz; Sat, 02 Nov 2024 01:53:56 +0100 From: James Thomas To: Dilip Cc: ding@gnus.org Subject: Re: How to maintain newsrc.eld clean and tidy In-Reply-To: <87o736lnnb.fsf@protonmail.com> (Dilip's message of "Sat, 26 Oct 2024 18:33:48 +0000") References: <87o736lnnb.fsf@protonmail.com> Date: Sat, 02 Nov 2024 06:23:51 +0530 Message-ID: <861pzu317k.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:6C1furkWofA11EIBDvv3ReGX7mTDO8FlU9zSEKkyvIUSP8GtSZr fU+K6JEVRZM5V7SMSdEMLp69lxz4advGoLrIRoUXZWIFKTIWXvkqR/yrwt4eXp/BtV/vrxs YNdz/3+Z7KUTN5uI68fSeBJGH8tsYrczelUXJ4gyvX59G3lLgLkuGNYt9UPcut6WKmng+S4 coP85j8fRhXv39Y/L69/Q== UI-OutboundReport: notjunk:1;M01:P0:MtKKemfi8w0=;N0D7ARUnEDM5d0AaMQ1INnQ6XpL dDlUnBj3n+ngUt4jf0TtP2fTfANJuGzmo9bJlqQU3ErcPhcdbT5wdUozdjEkJCLAhWHL0rxA0 pdqUo4eFclyJ1WIaXg6nS5GTmiiev3AZEspOsui1ZBoPKOX9DnWWZ54y6m+YjX7MGkXOhvByw t2ZTkR6Zj9PPjTgSHz140wNGXA7LdvEfeoqisEdXXPny2Z7j5QLnBtkNeS1bUz4lC91TQEmOc xDSrHMRElCSw0veNl5R14WN5gHHEWHyluz9o0p594gDJ3a4D3Tng5J2QWftw1/mot4z5f8qMO R8hbU0okEsCJqE68ZMJXmJiO6ZDXCLdvDqGtl3B9bHwKM5Iq/QcvRbUhEFLo3BiN36Rw4mhXe ztUTJOeK0Getm5wpa2jUg+LswEyNI2y6pmCwshs5aNkVv1A+bSdt4PUAnFPp8ecKEr+ZfowFb nXFFYYhES9hdDXJ0mevb/CER19Ueb0nPw1l5S/+MhS4ygESb7BCdgMfmZyP7KJtOtNUK5Anni T15cxJ5p+Oyb7x2a+maoErGp4rtCmGnB0mEqfcwtb9pyEdEg8C7xz+tX8if1GMUdbo16C6kWe LKz5b1n82yCT8MzwNhdjK5HFTj9zd7ZFTcNqcOH/irJNf69oIu6lSBHwvmkmZ/L+VXcq3UApG GFq+UEdKMTZug0r6eps+djzPeFZ7qr/3OiK+Rz4Ow8SFYawoKGqRU3g5byghM7eNoRX7clmqL S79JWJKe7PYv/VrsEEPn+/Rex7eJ5gu3EBGcHy4cXf0yYTfmP0H3JzyHTXBVSvXvV5B53MnAb qymIdR57Ri+E8LzwgSIECrvw== List-ID: Precedence: bulk Dilip wrote: > 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. Simple: add a -request-compact-group back-end function for nntp. :-) > Thank you for taking time to read this. No problem. Regards, James