From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87824 Path: news.gmane.org!.POSTED!not-for-mail From: jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo) Newsgroups: gmane.emacs.gnus.general Subject: Re: swapping which account is my "primary" select method Date: Mon, 20 Nov 2017 15:35:42 -0500 Message-ID: <874lpoeli9.fsf@yale.edu> References: <337C011F-9607-42DB-A7D3-28F2F5E84715@raeburn.org> <87tvxqwjrw.fsf@tullinup.koldfront.dk> <79953329-0EE8-4530-BD5E-449688CD1539@raeburn.org> <87o9nwagil.fsf@tullinup.koldfront.dk> <87d14c207n.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1511210208 27725 195.159.176.226 (20 Nov 2017 20:36:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Nov 2017 20:36:48 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+m36038@lists.math.uh.edu Mon Nov 20 21:36:43 2017 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from mxfilter-048035.atla03.us.yomura.com ([107.189.48.35]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGso4-0006eh-EJ for ding-account@gmane.org; Mon, 20 Nov 2017 21:36:40 +0100 X-Yomura-MXScrub: 1.0 Original-Received: from lists1.math.uh.edu (unknown [129.7.128.208]) by mxfilter-048035.atla03.us.yomura.com (Halon) with ESMTPS id 850b9e0b-ce32-11e7-8154-b499baabecb2; Mon, 20 Nov 2017 20:36:43 +0000 (UTC) Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.89) (envelope-from ) id 1eGsnV-0002ji-Se; Mon, 20 Nov 2017 14:36:05 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1eGsnS-0002j7-22 for ding@lists.math.uh.edu; Mon, 20 Nov 2017 14:36:02 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.89) (envelope-from ) id 1eGsnQ-0007At-PE for ding@lists.math.uh.edu; Mon, 20 Nov 2017 14:36:01 -0600 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1eGsnP-0004It-Ex for ding@gnus.org; Mon, 20 Nov 2017 21:35:59 +0100 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eGsnC-0003bq-TA for ding@gnus.org; Mon, 20 Nov 2017 21:35:46 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 70 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:69pc4hyfoqFkKKYcGJa80PO7tTk= List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87824 Archived-At: Eric Abrahamsen writes: > asjo@koldfront.dk (Adam Sjøgren) writes: > >> Ken writes: >> >>> Is there any special status given to “native” groups that I >>> might still care about, or does it all Just Work? >> >> Not that I remember, I've been running with '(nnnil) as >> primary-select-method for years. > > I think the only real difference is that groups belonging to the > primary method show up in the Group buffer *without* their > server prefix string. So: > > primary method: > gmane.emacs.gnus.general > > secondary method: > news.gmane.org:gmane.emacs.gnus.general > > AFAICT, that's the only user-visible difference. That annoyed me quite a bit so I dealt with it by creating a file with the substitutions of the names that I want separated by semicolons, for example #+BEGIN_EXAMPLE nimap+gmail:[Gmail]/All Mail;All mail news.gmane.org:gmane.emacs.gnus.general;gnus news.gmane.org:gwene.org.emacsen.planet;Planet Emacsen #+END_EXAMPLE And the following code: #+BEGIN_SRC emacs-lisp (setq gnus-group-line-format "%M%S%p%P%5y:%B%(%uG%)\n") (defun gnus-user-format-function-G (arg) (let ((mapped-name (assoc gnus-tmp-group jaam/group-name-map))) (if (null mapped-name) gnus-tmp-group (cdr mapped-name)))) (eval-after-load "gnus" '(defcustom jaam/group-name-map-file (nnheader-concat gnus-home-directory "~/.group-name-map-file") "File with entries for `jaam/group-name-map'. Each mapping should be in one separate line with the real name of the group a semicolon and the alias name of the group.")) (defun jaam/update-group-name-map () (with-temp-buffer (insert-file-contents jaam/group-name-map-file) (setq jaam/group-name-map (mapcar (lambda (x) (let ((entries (split-string x ";"))) (cons (car entries) (cadr entries)))) (split-string (buffer-string) "[\n]+"))))) (eval-after-load "gnus" '(jaam/update-group-name-map)) #+END_SRC Best, -- Jorge.