From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/5975 Path: news.gmane.org!not-for-mail From: leon Newsgroups: gmane.emacs.gnus.user Subject: Re: How to define this summary-line-format? Date: Mon, 07 Nov 2005 23:46:05 +0000 Organization: University of Cambridge, England Message-ID: <863bm8f2de.fsf@sl392.st-edmunds.cam.ac.uk> References: <86slu8eler.fsf@sl392.st-edmunds.cam.ac.uk> <8664r4xttx.fsf@sl392.st-edmunds.cam.ac.uk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1138671597 29611 80.91.229.2 (31 Jan 2006 01:39:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:39:57 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:36:07 2006 Original-Path: quimby.gnus.org!newsfeed.gazeta.pl!fu-berlin.de!feed1.jnfs.ja.net!feed3.jnfs.ja.net!jnfs.ja.net!gemini.csx.cam.ac.uk!news.cam.ac.uk!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: sl392.st-edmunds.cam.ac.uk User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:OohXIvD+/ocjUHLkS6jIS8ImXIo= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:6117 Original-Lines: 90 X-Gnus-Article-Number: 6117 Tue Jan 17 17:36:07 2006 Xref: news.gmane.org gmane.emacs.gnus.user:5975 Archived-At: Sébastien Kirche 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