Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: leon <sdl.web@gmail.com>
Subject: Re: How to define this summary-line-format?
Date: Mon, 07 Nov 2005 17:15:38 +0000	[thread overview]
Message-ID: <8664r4xttx.fsf@sl392.st-edmunds.cam.ac.uk> (raw)
In-Reply-To: <m2y840390f.fsf@seki.fr>

Sébastien Kirche <sebastien.kirche.no@spam.free.fr.invalid> writes:

> At 12:11 on nov 7 2005, leon said :
>
> It is not only a modeline format, it also uses gnus buffers
> configuration (look at the docstring of gnus-buffer-configuration)
>
> For example I use the following to have the frame splitted horizontally
> while reading a message with the message body at the bottom and the
> group summary on the top :
>
>     (gnus-add-configuration
>      '(article
>        (vertical 1.0 (summary 13 point)
>                  (article 1.0) )))

I mean the dashed lines in the summary window. Those separate date & name
etc. I tried using '|' but it looked like continuous line. I really like
the dashed line.

>
>
> With a custom date format :
> ;; affichage de la date en relatif
> (setq gnus-user-date-format-alist
> 	  '(((gnus-seconds-today) . "     %k:%M") 				;dans la journée =      14:39
> 		((+ 86400 (gnus-seconds-today)) . "hier %k:%M")     ;hier            = hier 14:39
> 		((+ 604800 (gnus-seconds-today)) . "%a  %k:%M")     ;dans la semaine = sam  14:39
> 		((gnus-seconds-month) . "%a  %d")     				;ce mois         = sam  28
> 		((gnus-seconds-year) . "%b %d")       				;durant l'année  = mai  28
> 		(t . "%b %d '%y")))                   				;le reste        = mai  28 '05
>

Get this error: "symbol's value as variable is void: gnus-face-5"
My knowledge of gnus doesn't allow me to debug this. 

> The formats are those of format-time-string and should use your locals
> to write the days and months names in your language.
>
>
> You need to set the use of the thread display in the mode line format,
> for example :
> (setq gnus-summary-line-format 
>       (concat
>        "%*%5{%U%R%z%}"
>        "%4{|%}"
>        "%2{%-10&user-date;%}"
>        "%4{|%}"
>        "%2{ %}%(%-24,24f"
>        "%4{|%}"
>        "%2{%5i%}"
>        "%4{|%}"
>        "%2{%6k %}%)"
>        "%4{|%}"
>        "%2{ %}%3{%B%}%1{%s%}\n")) ;%B = threads display
>
> The threads nice characters can be obtained by changing the default
> display; It works nice under GNU/Linux and OSX (with atsui support), I
> have not tested recently with Windows.
>
> 	  (setq gnus-sum-thread-tree-root "\x490b3 ") ; "> "
> 	  (setq gnus-sum-thread-tree-false-root "\x490b3 ")                    ; "> "
> 	  (setq gnus-sum-thread-tree-single-indent "  ")                 ; ""
> 	  (setq gnus-sum-thread-tree-leaf-with-other "\x4903c\x49020\x490fb ") ; "+-> "
> 	  (setq gnus-sum-thread-tree-vertical "\x49022")                       ; "| "
> 	  (setq gnus-sum-thread-tree-single-leaf "\x49034\x49020\x490fb ")	; "\\-> "
>
> Some variants :
> 	  (setq gnus-sum-thread-tree-root "\x4912f ")                          ; "> "
> 	  (setq gnus-sum-thread-tree-false-root "\x490f8 ")                    ; "> "
> 	  (setq gnus-sum-thread-tree-false-root "\x4912f ")                    ; "> "
> 	  (setq gnus-sum-thread-tree-single-indent "\x4912e ")                 ; ""
> 	  (setq gnus-sum-thread-tree-single-indent "\x490b3 ")                 ; ""
> 	  (setq gnus-sum-thread-tree-single-leaf "\x490b0\x49020\x490fa ")   ; "\\-> "
>

I highly appreciate your help! However I got some weird boxes instead
of the beautiful threading. The screenshot is here 
(http://people.pwf.cam.ac.uk/sl392/gnus.png). 

I'm running gnus 5.10.6 from emacs-snapshot-gtk in debian
unstable. It's actually 22.0.50.1. I think it should have utf-8
support. Maybe I'm missing something in the configure. Any ideas?

>
> Let's try what I wrote and look at the docstrings of the different
> variables and function to know the format specifiers to be able to build
> your own display.
>
> HTH.
> -- 
> Sébastien Kirche

Again, thanks very much

-- 
Cheers


  reply	other threads:[~2005-11-07 17:15 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-07 11:40 leon
2005-11-07 13:03 ` Sébastien Kirche
2005-11-07 17:15   ` leon [this message]
2005-11-07 18:22     ` Sébastien Kirche
2005-11-07 23:46       ` leon
2005-11-08 10:12         ` Sébastien Kirche
2005-11-09  2:31           ` leon
2005-11-09 10:06             ` Sébastien Kirche
2005-11-09 12:49               ` leon
2005-11-18 20:32   ` leon
2005-11-21 10:16     ` Sébastien Kirche
2005-11-24 21:57       ` leon
2005-11-07 14:40 ` Frank Schmitt
2005-11-07 17:48   ` Reiner Steib
2005-11-07 18:32     ` leon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8664r4xttx.fsf@sl392.st-edmunds.cam.ac.uk \
    --to=sdl.web@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).