From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/1878 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.user Subject: Re: [REQ] Feature Request : "fancy" gnus-posting-styles Date: Tue, 14 Jan 2003 19:03:53 +0100 Organization: Programmerer Ingebrigtsen Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1138668511 13045 80.91.229.2 (31 Jan 2006 00:48:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:48:31 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:29:50 2006 Original-Path: quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: quimbies.gnus.org Original-X-Trace: quimby.gnus.org 1042567855 31174 80.91.231.2 (14 Jan 2003 18:10:55 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 14 Jan 2003 18:10:55 GMT Mail-Copies-To: never X-Now-Playing: Kid 606's _Why I Love Life_: "Sad Motherfucker Part Two" Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUcBxuWVVRgCDPs59bF tWoiMX5kgpqrJk+6gllMLkb///+IClKsDVsxS5f+/v1qq8smz0dOAAACBElEQVR4nLXUPWjbQBQH 8CPgfpChqJM9FJRbUpC3mAwdulh4K9GiUXQpIhCnpV6u0EmgQR0CCW2hpnTypuEg3spp8uLBGrpc liI6dLtBozejvncn1SG2t/aBMdyP/z0/+dmk51b9o6Z6LtYghCLPy1KlTfH6vSxLgPX5ugC2nqcc 4M6R2gW3E2rzNuyR8mr1soIazq8Ze5ckiQWvREMh3yDkeZbn+XzEDhljCEv5AyNDsehqOKQN3EgN WQ3MgOKrwnukIXc0vLfrxCq4bGmYEQ0jAk2IQvDIvdWvYXdK9g3sGTgvCknktzMhhN3N5pRScn9E lOLVMiw8//NPgGk3R0CDxDKETHEuRCayrAZmIPSh+VmuJ5zBhzXNf7PvXwV7ayXRFT6LD2NdAJMF pfgs4siK4Yt9If0AbkaYUYojx1b01ABpQNg4ctw24K/BofsarAMDHg6mwd5D+NJ5GJtEUAO1ibPI kqsOeeAmCC0DNsxJpk5kWR3Sti58FJ+k6QQnBWzDEI8PrIsikH7La4A6U4AoakdPCun7kICrqCNw QghE2LyQMpC6x2mS4Mi40v2j3kkV6qWG5RqPL1+vV2oy6A/c408IPffk2S149fE4HGBiYz2VXtGt qws7+hf4Nthc6pTfvUrV2Q3YmfhvwHfBP+qhtp/D7xz+fVTJFS/hcfBSF779AeQ0rX7rkAExAAAA AElFTkSuQmCC User-Agent: Gnus/5.090013 (Oort Gnus v0.13) Emacs/21.2.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:4w3zY6Qf2CqS7ja1BV7k7O6W54M= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:2018 Original-Lines: 38 X-Gnus-Article-Number: 2018 Tue Jan 17 17:29:50 2006 Xref: news.gmane.org gmane.emacs.gnus.user:1878 Archived-At: Francois-David.Collin@wanadoo.fr (François-David Collin) writes: > I looked at the function gnus-configure-posting-styles, and I realize > that I really don't want to touch it. To implement the thing, I'm > thinking, in a first approach, of a wrapper wich converts the tree in > a flat standard gnus-posting-styles, [...] > They're two drawbacks : > > - the gnus-posting-style variable won't be human-readable, perhaps > should be hidden That could be dealt with by adding an additional variable that this complex spec would have control over, and letting `gnus-configure-posting-styles' use that as well. > - if the tree is complex, the leaf expressions could be very long, the > gnus-configure will slowly parses a very very big structure. I don't > think we will encounter such a situation, but who knows. If speed > matters, providing a global function which stores a walk-state in > the tree, and using this function in match-clause of > gnus-posting-styles should do the trick. I think that might be a problem. `gnus-configure-posting-styles' is a quite long function, but it isn't all that complex. I think you should be able to shoe-horn in a predicate-like spec in there without too much problem. A third method would be to use `gnus-make-predicate' to just make a function out of the predicates, but it might be difficult to make it fit in there... -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen