From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85458 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: fancy splitting interactively Date: Fri, 09 Jan 2015 11:00:39 +0800 Message-ID: <87387kodyg.fsf@ericabrahamsen.net> References: <87fvbs6u4k.fsf@mat.ucm.es> <87lhlk168j.fsf@ucl.ac.uk> <871tncvulj.fsf@ericabrahamsen.net> <877fx37ob9.fsf@mat.ucm.es> <87k313utl5.fsf@ericabrahamsen.net> <874ms54ddy.fsf@ucl.ac.uk> <87mw5x70uw.fsf@ericabrahamsen.net> <87mw5x2qjb.fsf@ucl.ac.uk> <878uhhvxpd.fsf@topper.koldfront.dk> <877fx07l95.fsf@ericabrahamsen.net> <87r3v8o4j2.fsf@hope.eyrie.org> <87lhlgxvrn.fsf@ericabrahamsen.net> <87zj9wmmyx.fsf@hope.eyrie.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1420783995 18671 80.91.229.3 (9 Jan 2015 06:13:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Jan 2015 06:13:15 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33700@lists.math.uh.edu Fri Jan 09 07:13:09 2015 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y9Sod-0000b7-FU for ding-account@gmane.org; Fri, 09 Jan 2015 07:12:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Y9Snq-0003eb-Jw; Fri, 09 Jan 2015 00:12:10 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1Y9Pjg-0002rG-CL for ding@lists.math.uh.edu; Thu, 08 Jan 2015 20:55:40 -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.84) (envelope-from ) id 1Y9Pjf-00035y-8a for ding@lists.math.uh.edu; Thu, 08 Jan 2015 20:55:40 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1Y9Pjd-0001cj-QN for ding@gnus.org; Fri, 09 Jan 2015 03:55:37 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Y9Pit-0008G6-Nq for ding@gnus.org; Fri, 09 Jan 2015 03:54:51 +0100 Original-Received: from 111.197.154.230 ([111.197.154.230]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Jan 2015 03:54:51 +0100 Original-Received: from eric by 111.197.154.230 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Jan 2015 03:54:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 70 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 111.197.154.230 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:Eh+gnbd8UbGOZ/lM2GdEVj9Wmvo= X-Spam-Score: -0.5 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85458 Archived-At: Russ Allbery writes: > Eric Abrahamsen writes: > >> Right, that's pretty much what I meant -- if I want to send an email as >> Eric Abrahamsen, International Man of Mystery, complete with custom >> headers and signature, I don't want to have to navigate to the "Man of >> Mystery" group and compose from there. There probably isn't such a >> group, and even if there were, that's not really what I *mean*. > > Yeah, that makes sense. > >> We'd have to figure out how these identities would interact with >> composing from a group, but that could actually be interesting. A >> group's posting styles could say "use identity B when composing from >> this group", for example. > > ...but this is how Gnus already works now. Or am I missing something? > >> In short, in several cases I have gone through multiple groups and set >> the same headers on all those groups' posting styles. It would make more >> sense to me to specify that all these groups use the same identity. > > Oh, I think you're just missing the fact that this is Gnus, so you don't > need to be mucking about in the properties of individual groups and can > just use elisp. :) > > (setq gnus-posting-styles > '(("." > (address "eagle@eyrie.org") > (name "Russ Allbery") > (organization "The Eyrie") > (signature-file "~/docs/sigs/eyrie") > (eval > (setq gnus-message-archive-group (rra-archive-group "mail")))) > > ((or (string-match "^comp\\.lang\\.perl" gnus-newsgroup-name) > (string-match "^nnml:project\\.perl" gnus-newsgroup-name)) > (address "rra@cpan.org") > (signature-file "~/docs/sigs/perl")) > > ((and (string= "news.software.nntp" gnus-newsgroup-name) > (message-news-p)) > (signature-file "~/docs/sigs/help-newsgroup")) > > ((string= "nnml:project.inn" gnus-newsgroup-name) > (signature-file "~/docs/sigs/help-list")))) > > and so forth. All matching settings are applied in order, so put more > specific entries later. Right, but again this is group-centric, rather than identity-centric, which conceptually seems like the proper approach, to me. > https://www.gnu.org/software/emacs/manual/html_node/gnus/Posting-Styles.html > > But you're right that mine is based on my current group, so I have to > navigate to the appropriate group to use a particular style. Although > note the documentation of gnus-posting-styles: you can run arbitrary elisp > to figure out what style to use, among other things. So if you can figure > out some other piece of information Gnus has available to select on, you > can already use that to determine the posting style. > > But I don't think there's an easy way to give you something like Gmail's > drop-down list of identities to pick from right now. But what you say is true -- we're actually probably very close to having it, and I don't think it would take a lot of code to get from here to there. Just a little thought about how to meld identities and posting styles...