From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85448 Path: news.gmane.org!not-for-mail From: Ivan Kanis Newsgroups: gmane.emacs.gnus.general Subject: Sorting threaded articles on top of summary Date: Thu, 08 Jan 2015 09:11:36 +0100 Message-ID: <87a91tpu87.fsf@kanis.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1420704813 26851 80.91.229.3 (8 Jan 2015 08:13:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Jan 2015 08:13:33 +0000 (UTC) To: Gnus General Original-X-From: ding-owner+M33690@lists.math.uh.edu Thu Jan 08 09:13:27 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 1Y98Cv-0006qN-TL for ding-account@gmane.org; Thu, 08 Jan 2015 09:12:42 +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 1Y98C4-0006ZD-1f; Thu, 08 Jan 2015 02:11:48 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Y98C2-0006Z5-3T for ding@lists.math.uh.edu; Thu, 08 Jan 2015 02:11:46 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1Y98C1-0007y2-0k for ding@lists.math.uh.edu; Thu, 08 Jan 2015 02:11:45 -0600 Original-Received: from kanis.fr ([46.19.35.252] helo=srv2.kanis.fr) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1Y98Bz-000102-7s for ding@gnus.org; Thu, 08 Jan 2015 09:11:43 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kanis.fr; s=alpha; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; bh=sq4kbsG+jRY9tdGzfmSNiHN7nWEkj9gpn/+XHK92eAs=; b=NXj6oiXAS8AryskQng8yPux9ag1UFWajUlTjGs3hLHyKqTDV5oSs+rjKWkuwy3VM2lw6FC3gHhvTnMk2MwrM3kGA1+6drjSMNm0Gxq65+OZSRXlRhirO/vmOMSwSgB6N; Original-Received: from smtp.comencini.fr ([164.138.25.8]) by smtp.comencini.fr with esmtpsa (TLS1.1:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80.1) (envelope-from ) id 1Y98Bn-00087e-Mq for ding@gnus.org; Thu, 08 Jan 2015 09:11:31 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAAXNSR0IArs4c6QAAAB5QTFRF IBkXUxMTOCwoTC4qcUY8iFxQmmper31txpaJ/v/8aKZ1oAAAAcVJREFUOMt100tu2zAQAFDCXnUZ oAcIqG68LZULVLQBbwuSiffm6AIRRyeotAySJoVu2+FPpJWWC3/4NKOZocSW/yxWfnJ2+Bdwzhj7 8gleWVy7DXC2rkMNr2V/zRbghXIwthf3VbIA9Ffc71vZCSFyCEsBggtNS8ludwvfmhYA0Vn9o4DP zMWxR7+cPWzAYFzwM0ModtdmcDbDS6i/hT7L+RZof5yCXGrYe5jn2YO6BYMjgY+51tCIAqHgBLwR pwLnGuRjAKyBJkuN4yd4U92uCY1vUr2D/c5b8DuxyQwfOHUeaLqDJhnkkuGXbB56h2C1IVBdgncc bBi6feroa9B6jUDojnQPQKupbyXyeeCE1oT7Oqrt+SnfY3mkiyGA/3AmD3H5g32CcBx6hY8pRkwJ 9PpcjRGobUfprFnhAa1vepwcgMOhwG+pdSgKHFU9HAvoAH6XUl7lDUCCq5Qb6GMbVm3Aj++qDYCt wdBc/YHgOFCmS3mjDMRcSE2qY4E3Q3PVIQRQmeodNH4QEbRUFZzW+VotzwX4yTcRTySOML1qjcE5 hTirVqDHkMAP0PjAywp3d18JZtqzvr9zDYD+GaSKtE6Zlr/DLPNFmOcvBAAAAABJRU5ErkJggg== User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.51 (gnu/linux) X-Spam-Score: 0.7 (/) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.4649 Ham tokens: 0.000-2409--19250h-0s--0d--H*u:Emacs, 0.000-406--3241h-0s--0d--H*u:Gnus, 0.000-406--3241h-0s--0d--H*UA:Gnus, 0.000-388--3098h-0s--0d--H*u:linux, 0.000-388--3098h-0s--0d--H*UA:linux Spam tokens: 0.999-6--0h-19s--0d--kidnapped, 0.995-28907--757h-112023s--0d--H*r:quimby.gnus.org, 0.993-26967--1139h-106139s--0d--H*Ad:D*gnus.org, 0.991-28830--1533h-114659s--0d--HX-Spam-Relays-External:quimby.gnus.org, 0.991-28830--1533h-114659s--0d--H*RU:quimby.gnus.org Autolearn status: ham -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4649] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85448 Archived-At: Hello, I look at newsgroup once in a long while. I find that threaded articles are more interesting than lone post. This is why I am trying to put threaded articles on top of my summary. I set gnus-thread-sort-functions to '(gnus-thread-sort-by-score). Now I am trying to tweak gnus-article-sort-by-score to compare threaded article. (defun gnus-article-sort-by-score (h1 h2) (let ((score1 (or (cdr (assq (mail-header-number h1) gnus-newsgroup-scored)) gnus-summary-default-score 0)) (score2 (or (cdr (assq (mail-header-number h2) gnus-newsgroup-scored)) gnus-summary-default-score 0))) (if (= score1 score2) (is-thread h2) (> score1 score2)))) The problem I am facing is how do I tell that h2 is threaded? I looked at the function that does a total score of a thread and found it hard to understand. Is the internal of gnus (such as header format) documented anywhere? Am I even going the right way about this? Should I score threaded article higher rather than messing with the sort function? Any help much welcome, Ivan -- Webmasters kidnapped by evil cult. -- BOFH excuse #43