From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lele Gaifax Newsgroups: gmane.emacs.help Subject: Gnus group subscriptions and messages read state Date: Fri, 04 Nov 2016 22:03:37 +0100 Organization: Nautilus Entertainments Message-ID: <8760o3arfa.fsf@metapensiero.it> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1478296155 27322 195.159.176.226 (4 Nov 2016 21:49:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 4 Nov 2016 21:49:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 04 22:49:08 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c2mLg-0001ek-Os for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Nov 2016 22:48:32 +0100 Original-Received: from localhost ([::1]:41064 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2mLj-0008Sx-JL for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Nov 2016 17:48:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2lf6-0003mR-8X for help-gnu-emacs@gnu.org; Fri, 04 Nov 2016 17:04:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2lf1-0003fo-G8 for help-gnu-emacs@gnu.org; Fri, 04 Nov 2016 17:04:32 -0400 Original-Received: from [195.159.176.226] (port=58792 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c2lf1-0003dT-9j for help-gnu-emacs@gnu.org; Fri, 04 Nov 2016 17:04:27 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1c2lef-0001nQ-Pf for help-gnu-emacs@gnu.org; Fri, 04 Nov 2016 22:04:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 49 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:9TeaKaicGrzdN5P7rJDzQTu3R30= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-Mailman-Approved-At: Fri, 04 Nov 2016 17:47:32 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111676 Archived-At: Hi all, I tried to find a more focused newsgroup for Gnus, but the obvious candidates (thru gmane.org and http://www.gnus.org/) didn't have a good answer. Please redirect me to a better place, if there's one. Foreword: I'm using Gnus (the version coming with Emacs 25.1, that is 5.13) as my only nntp client, following a couple of dozens of groups hosted by gmane.org. What follows is an excerpt of my configuration: ;; Keep Gnus stuff under ~/.emacs.d/lele/gnus/ (setq gnus-home-directory (expand-file-name "~/.emacs.d/lele/gnus/")) ;; Since I only use Gnus to read the newsgroups, disable reading and writing ;; the generic newsrc file (setq gnus-read-newsrc-file nil) (setq gnus-save-newsrc-file nil) ;; Also, I manually select which newsgroups I'm gonna follow, so don't bother ;; with keeping a notion of "new" newsgroups (setq gnus-save-killed-list nil) (setq gnus-check-new-newsgroups nil) In this way, Gnus keeps its "state" in a single file, that is .../gnus/.newsrc.eld Since I'm keeping all my ~/.emacs.d directory under version control, the one thing that bothers me and which I tried several times to find a solution is that the "subscriptions" (i.e. the list of groups I follow regularly) are kept together with the notion of which messages I already seen, or marked as sticky, etc in a single alist (specifically gnus-newsrc-alist). I share my ~/.emacs.d/ repository with a couple of friends (that's the reason for the particular setting of gnus-home-directory above), and it's thus annoying to commit the newsrc file now and then, so much that I actually never do that. What I'd like is to separate in some way the two information, and keep only the "subscriptions" under version control, so that I could easily restart reading my beloved groups on a different machine, if needed, possibly "catching up" to last week or so... Ideally, I would keep an explicit list of subscribed groups in say ~/.emacs.d/lele.el, and tell Gnus to "merge"/"extend" that to build the actual gnus-newsrc-alist at startup, or something like that. Can you suggest the least invasive way to implement that, if at all possible? Thanks in advance for any hint, ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. lele@metapensiero.it | -- Fortunato Depero, 1929.