From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/38181 Path: main.gmane.org!not-for-mail From: Martin Kretzschmar Newsgroups: gmane.emacs.gnus.general Subject: Suggestion for additional %B-leaf type Date: Wed, 22 Aug 2001 18:29:27 +0200 Message-ID: <87snekt5w8.fsf@gmx.net> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1035174087 21018 80.91.224.250 (21 Oct 2002 04:21:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:21:27 +0000 (UTC) Return-Path: Return-Path: Original-Received: (qmail 7630 invoked from network); 22 Aug 2001 16:32:36 -0000 Original-Received: from mail.gmx.net (213.165.64.20) by gnus.org with SMTP; 22 Aug 2001 16:32:36 -0000 Original-Received: (qmail 2712 invoked by uid 0); 22 Aug 2001 16:32:08 -0000 Original-Received: from h280.ibc.de.easynet.net (HELO mogli.kretzschmar) (212.224.5.24) by mail.gmx.net (mp009-rz3) with SMTP; 22 Aug 2001 16:32:08 -0000 Original-To: ding@gnus.org User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.104 Original-Lines: 51 Xref: main.gmane.org gmane.emacs.gnus.general:38181 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:38181 --=-=-= Hi, I don't really like the %[ and %] in my summary lines. However, knowing that an article was adopted (is this the right word?) into a tree is quite useful. So I'd like to encode this in the thread tree (%B) as in mutt. This patch --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=adopted-leaves.diff Content-Description: adopted-leaf-variable for %B --- /tmp/gnus-sum.el4258DDW Tue Aug 14 22:49:50 2001 +++ /tmp/gnus-sum.el425824P Tue Aug 14 22:49:50 2001 @@ -4115,6 +4115,8 @@ "With %B spec, used for a leaf with brothers.") (defvar gnus-sum-thread-tree-single-leaf "\\-> " "With %B spec, used for a leaf without brothers.") +(defvar gnus-sum-thread-tree-adopted-leaf "\\*> " + "With %B spec, used for an adopted leaf") (defun gnus-summary-prepare-threads (threads) "Prepare summary buffer from THREADS and indentation LEVEL. @@ -4358,9 +4360,11 @@ gnus-sum-thread-tree-vertical gnus-sum-thread-tree-indent)) (cdr (reverse tree-stack)))) (if (nth 1 thread) gnus-sum-thread-tree-leaf-with-other - gnus-sum-thread-tree-single-leaf))))) + (if (eq gnus-tmp-opening-bracket ?\<) + gnus-sum-thread-tree-adopted-leaf + gnus-sum-thread-tree-single-leaf)))))) (when (string= gnus-tmp-name "") (setq gnus-tmp-name gnus-tmp-from)) (unless (numberp gnus-tmp-lines) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable adds a new variable `gnus-sum-thread-tree-adopted-leaf' which is used for adopted leaves (leaves that would have `<' as opening bracket). Question 1: Is it, under any circumstances possible that an adopted article has brothers? (I.e. do I need `gnus-sum-thread-tree-adopted-leaf-with-other'? Question 2: Could this be integrated into Oort? Question 3: The patch is optimized for size ;-) Should the line (if (eq gnus-tmp-opening-bracket ?\<)=20 be changed so that it doesn't depend on gnus-tmp-opening bracket?=20 Maybe the information `<' or `[' should be factored out into some variable. What would be its name? Martin PS: In Emacs 21, ASCII art does not nearly look as good as unicode art so I chose these settings under X with the quite complete fixed font: (setq gnus-sum-thread-tree-root "=E2=96=A0 ") (setq gnus-sum-thread-tree-single-indent "=E2=96=A1 ") (setq gnus-sum-thread-tree-vertical "=E2=94=82 ") (setq gnus-sum-thread-tree-indent " ") (setq gnus-sum-thread-tree-leaf-with-other "=E2=94=9C=E2=94=80=E2=96=B6 ") (setq gnus-sum-thread-tree-single-leaf "=E2=95=B0=E2=94=80=E2=96=B6 ") (setq gnus-sum-thread-tree-adopted-leaf "=E2=95=B0=E2=95=B6=E2=96=B7 ") Producing this Summary O 14-Aug Jason R. Mastaler ( 21) =E2=96=A0 Re: gnus-delay.el: let = Gnus remind you of action items=20 O 15-Aug Kai Gro=C3=9Fjohann ( 26) =E2=94=9C=E2=94=80=E2=96= =B6=20=20 O 15-Aug Jason R. Mastaler ( 14) =E2=94=82 =E2=95=B0=E2=94=80=E2= =96=B6=20=20 O 15-Aug Kai Gro=C3=9Fjohann ( 14) =E2=95=B0=E2=94=80=E2=96= =B6=20=20 O 19-Aug Lars Magne Ingebrigtse ( 15) =E2=95=B0=E2=95=B6=E2=96=B7= =20=20 O 20-Aug Kai Gro=C3=9Fjohann ( 30) =E2=95=B0=E2=94=80=E2= =96=B6=20=20 O 20-Aug Lars Magne Ingebrigtse ( 17) =E2=94=9C=E2=94=80=E2=96= =B6=20=20 O 20-Aug Kai Gro=C3=9Fjohann ( 19) =E2=95=B0=E2=94=80= =E2=96=B6=20=20 --=-=-=--