From: leon <sdl.web@gmail.com>
Subject: Re: How to define this summary-line-format?
Date: Mon, 07 Nov 2005 23:46:05 +0000 [thread overview]
Message-ID: <863bm8f2de.fsf@sl392.st-edmunds.cam.ac.uk> (raw)
In-Reply-To: <m2acgg2u95.fsf@seki.fr>
Sébastien Kirche <sebastien.kirche.no@spam.free.fr.invalid> writes:
> At 18:11 on nov 7 2005, leon said :
>
>> I mean the dashed lines in the summary window. Those separate date & I
>> name etc. I tried using '|' but it looked like continuous line. I
>> really like the dashed line.
>
> Oh, then those lines come from the "%4{|%}" parts of my
> gnus-summary-line-format. Basically it makes gnus place a pipe char
> between the fields.
> I suppose that the dash style is due to some characters that are bigger
> than the pipe and it makes Emacs adapt the line height.
>
>> > 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.
>
> Sorry that error comes also from my gnus-summary-line-format where the
> %4{xxx} expressions make gnus use the corresponding gnus-face-4. So the
> %first error mentionning gnus-face-5 is caused by the %5 in first line
> %of the format that places the messages flags.
> I forget to refer to them.
>
> To correct that you can either rid the "%number{" and the corresponding
> "}" or you can define your own faces.
> E.g. :
>
> (copy-face 'default 'mysubject)
> (setq gnus-face-1 'mysubject)
>
> (copy-face 'default 'mytime)
> (set-face-foreground 'mytime "indianred4")
> (setq gnus-face-2 'mytime)
> ...
Now it works like a charm. Also I set gnus-face-4 to a small font 6x12
to get a dashed '|'.
>
>> [...]
>> 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?
>
> The hollow boxes show that Emacs did not found a suitable font to
> display the corresponding character. In this case it's unicode chars.
>
> BTW : for a char you can obtain some details about the code and the
> rendering font with C-u C-x = on the char.
>
> Try to get the unifont Debian package that should help to display unicode
> chars (it helped me with Debian to get them).
apt-get install unifont fixes the problem.
>
>> Again, thanks very much
>
> :) I'm glad to provide those settings that I carefully collected for
> months from many different information sources, including the french
> emacs group fr.comp.applications.emacs, the Big8 comp.emacs,
> gnu.emacs.help, gnu.emacs.gnus *and* the emacs-wiki
> (http://www.emacswiki.org/cgi-bin/wiki)
>
> HTH
> --
> Sébastien Kirche
I'm grateful for your generosity. Now my gnus looks a lot more
pleasing. Look here: http://people.pwf.cam.ac.uk/sl392/gnus3.png
--
Cheers
next prev parent reply other threads:[~2005-11-07 23:46 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
2005-11-07 18:22 ` Sébastien Kirche
2005-11-07 23:46 ` leon [this message]
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=863bm8f2de.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).