From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/17861 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.user Subject: Re: syncing groups/topics arrangement between machines? Date: Sun, 27 Dec 2015 14:15:01 +0800 Message-ID: <87r3i8mn8a.fsf@ericabrahamsen.net> References: <87mvswh3tw.fsf@jnanam.net> <87fuyotpy6.fsf@debian.uxu> <87io3kh28t.fsf@jnanam.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1451196928 3902 80.91.229.3 (27 Dec 2015 06:15:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Dec 2015 06:15:28 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sun Dec 27 07:15:22 2015 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aD4bw-000116-M6 for gegu-info-gnus-english@m.gmane.org; Sun, 27 Dec 2015 07:15:20 +0100 Original-Received: from localhost ([::1]:40825 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aD4bv-0000Tl-VO for gegu-info-gnus-english@m.gmane.org; Sun, 27 Dec 2015 01:15:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57187) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aD4bt-0000Te-BE for info-gnus-english@gnu.org; Sun, 27 Dec 2015 01:15:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aD4bo-0007PG-C1 for info-gnus-english@gnu.org; Sun, 27 Dec 2015 01:15:17 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:49709) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aD4bo-0007PC-4r for info-gnus-english@gnu.org; Sun, 27 Dec 2015 01:15:12 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aD4bm-0000n2-Gx for info-gnus-english@gnu.org; Sun, 27 Dec 2015 07:15:10 +0100 Original-Received: from 111.197.157.87 ([111.197.157.87]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Dec 2015 07:15:10 +0100 Original-Received: from eric by 111.197.157.87 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Dec 2015 07:15:10 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 73 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 111.197.157.87 User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:ktd04GlmIiL0+uvK5cz/CNG9Pr0= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:17861 Archived-At: Benjamin Slade writes: > Emanuel Berg writes: > >> Benjamin Slade writes: >> >>> I'm not certain where Gnus stores groups/topics >>> settings. I would like to be to sync group/topic >>> settings/arrangements between machines. >>> Is this possible? >> >> Do you mean as in _settings_ - i.e., preferences, or >> "configuration and extention" in the Emacs world? >> >> Then: >> >> gnus-init-file >> >> (But note you can put your Gnus Elisp >> configs/extensions in *any* file and just `load' it >> manually if you feel there is a reason to.) >> >> Or do you mean as in _state_ - what groups you >> subscribe to, what messages you have read, etc? >> >> Then: >> >> gnus-current-startup-file >> gnus-startup-file >> >> Or do you mean something else? >> >> Then: >> >> What do you mean? > > So in the *Group* buffer, which looks like: > > [ Gnus -- 9198 ] > [ Emacs ] > 0:imap+mymail:emacs > 7:imap+mymail:sexy_emacs > [ Work ] > 9000:imap+gmail:urgent_work > [ misc ] > 89:imap+mymail:origami > ... > etc., etc. > > I have setup certain topics and arranged groups within them. Is there a > way to sync this between machines? Or is it something which needs to be > recreated by hand on each separate machine? > > It doesn't look like Gnus is saving these settings in .emacs or anything. It's kept in the variable `gnus-topic-alist', which is saved to the file pointed to by `gnus-startup-file', which on this machine points to ~/.emacs.d/.newsrc. That's where gnus stores most of its state, including subscribed groups and message marks. I wouldn't recommend copying this file between machines -- I tried that before, and it didn't work out well. There is a possibility that in the future, Gnus' various state objects will be separated out a little more cleanly. It would be nice to at least have a separation between "settings than can be synced or kept in version control" (which would include group subscriptions and topic arrangements), and "settings that only Gnus should mess with", which I guess would mostly be marks. For the time being, though, at least you can manually copy the setq statement out of newsrc.eld... Yours, Eric