Gnus development mailing list
 help / color / mirror / Atom feed
* Idea: Examples for making the summary buffer look like other newsreaders
@ 2002-01-03  5:48 Lars Magne Ingebrigtsen
  2002-01-03  9:52 ` Vincent Bernat
  2002-01-03 15:01 ` Jens Bethkowsky
  0 siblings, 2 replies; 16+ messages in thread
From: Lars Magne Ingebrigtsen @ 2002-01-03  5:48 UTC (permalink / raw)


A user on gnu.emacs.gnus asked how to make the Gnus summary buffer
look like xnews, and Jesper Harder came up with a solution.

Wouldn't it be nice to have a section in the manual listing various
settings to have the Gnus summary buffer ape other newsreaders?

Post the examples to this thread, and I'll collect them and put them
in the manual.  Include sample output from the settings.

Here's Jesper Harder's example:

> > Subject                  Lines    From     Date   Score
> >   ...                    Lines    From     Date   Score
> >   ...                    Lines    From     Date   Score
> >
> > -subject as the first item, 
> > -an indention of e.g. 3 for every quote level,
> > -cut the subject after X characters, so the following colums are fixed
> > -if the Subject is the same as the subject of the father or it's            
> >     "Re:Subject of the father" then display ... instead of it

> Here is something that's reasonably close to the way XNews displays it:

> (setq gnus-summary-line-format "%U%R %>%(%-45,45s%)%<%4L  %-25,25f  %d  %i \n")
> (setq gnus-summary-same-subject "...")


-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Idea: Examples for making the summary buffer look like other newsreaders
  2002-01-03  5:48 Idea: Examples for making the summary buffer look like other newsreaders Lars Magne Ingebrigtsen
@ 2002-01-03  9:52 ` Vincent Bernat
  2002-01-03 10:20   ` Lars Magne Ingebrigtsen
  2002-01-03 15:01 ` Jens Bethkowsky
  1 sibling, 1 reply; 16+ messages in thread
From: Vincent Bernat @ 2002-01-03  9:52 UTC (permalink / raw)


OoO En cette fin de nuit blanche du jeudi 03 janvier 2002, vers 06:48,
Lars Magne Ingebrigtsen <larsi@gnus.org> disait:

> Wouldn't it be nice to have a section in the manual listing various
> settings to have the Gnus summary buffer ape other newsreaders?

Is it possible to get threads look like mutt and slrn (using pixmap
instead of standard chars) ?
-- 
BOFH excuse #274:
It was OK before you touched it.



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Idea: Examples for making the summary buffer look like other newsreaders
  2002-01-03  9:52 ` Vincent Bernat
@ 2002-01-03 10:20   ` Lars Magne Ingebrigtsen
  2002-01-03 11:53     ` Pavel Janík
  0 siblings, 1 reply; 16+ messages in thread
From: Lars Magne Ingebrigtsen @ 2002-01-03 10:20 UTC (permalink / raw)


Vincent Bernat <bernat@scientist.com> writes:

> Is it possible to get threads look like mutt and slrn (using pixmap
> instead of standard chars) ?

Do we have image support in the format-spec strings yet?  If not, I
can add that...

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Idea: Examples for making the summary buffer look like other newsreaders
  2002-01-03 10:20   ` Lars Magne Ingebrigtsen
@ 2002-01-03 11:53     ` Pavel Janík
  2002-01-03 12:04       ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 16+ messages in thread
From: Pavel Janík @ 2002-01-03 11:53 UTC (permalink / raw)


   From: Lars Magne Ingebrigtsen <larsi@gnus.org>
   Date: Thu, 03 Jan 2002 11:20:02 +0100

   > Do we have image support in the format-spec strings yet?  If not, I
   > can add that...

No.

BTW - you seem to look for things to implement :-) I have one thing which
I'd like to be able to do with plain Gnus. I like RMAIL concept of
(emacs)Rmail Labels.

I do not want to describe it again, here are relevant e-mails:

Description: http://www.gnus.org/list-archives/ding/200005/msg00345.html
Another Lobby ;-): http://www.gnus.org/list-archives/ding/200103/msg00094.html
-- 
Pavel Janík

# Okay, what on Earth is this one supposed to be used for?
                  -- 2.4.0 drivers/char/cp437.uni



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Idea: Examples for making the summary buffer look like other newsreaders
  2002-01-03 11:53     ` Pavel Janík
@ 2002-01-03 12:04       ` Lars Magne Ingebrigtsen
  2002-01-03 19:54         ` Kai Großjohann
  0 siblings, 1 reply; 16+ messages in thread
From: Lars Magne Ingebrigtsen @ 2002-01-03 12:04 UTC (permalink / raw)


Pavel@Janik.cz (Pavel Janík) writes:

> BTW - you seem to look for things to implement :-)

Not really.  :-)

> I have one thing which I'd like to be able to do with plain Gnus. I
> like RMAIL concept of (emacs)Rmail Labels.

I think labels are a good idea, but they seem to require quite a bit
of work to get to, er, work. 

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Idea: Examples for making the summary buffer look like other newsreaders
  2002-01-03  5:48 Idea: Examples for making the summary buffer look like other newsreaders Lars Magne Ingebrigtsen
  2002-01-03  9:52 ` Vincent Bernat
@ 2002-01-03 15:01 ` Jens Bethkowsky
  2002-01-03 16:58   ` Lars Magne Ingebrigtsen
                     ` (2 more replies)
  1 sibling, 3 replies; 16+ messages in thread
From: Jens Bethkowsky @ 2002-01-03 15:01 UTC (permalink / raw)


On Thu, 03 Jan 2002, Lars Magne Ingebrigtsen wrote:

> A user on gnu.emacs.gnus asked how to make the Gnus summary buffer
> look like xnews, and Jesper Harder came up with a solution.
> 
> Wouldn't it be nice to have a section in the manual listing various
> settings to have the Gnus summary buffer ape other newsreaders?
> 
> Post the examples to this thread, and I'll collect them and put them
> in the manual.  Include sample output from the settings.

At the moment I have a somewhat slrn-influenced summary-buffer:

,----[ .gnus ]
| ;:* Summary-Buffer
| (setq gnus-summary-line-format "%R%U%z:%4L [%-16,16n] %I%s\n"
| 	gnus-thread-indent-level 2
| 	gnus-summary-same-subject "`->")
`----

It looks like this:

,----[ *Summary de.comm.software.gnus* ]
| AO+:  40 [Raffael Herzog  ] Re: [gnus] quoted-printable
|  O+:  29 [Jo Moskalewski  ]   `->
|  O+:  26 [Torsten Hilbrich]     `->
|  O+:  54 [Raffael Herzog  ]       `->
|  O+:  16 [Raymond Scholz  ]         `->
|  O+:  63 [Raffael Herzog  ]           `->
|  O+:  32 [Nikolaus Rath   ]             `->
|  O+:  19 [Nikolaus Rath   ]               Zeichensatzkodierung (was: [gnus] quoted-printable)
|  !+:  17 [Frank Haun      ]             Re: [gnus] quoted-printable
|  O+:   6 [Robin S. Socha  ]               `->
|  O+:  53 [Raymond Scholz  ]             `->
|  O+:  22 [Jens Bethkowsky ]   `->
|  O+:  34 [Nikolaus Rath   ]   `->
|  O+:  29 [Raffael Herzog  ]   `->
`----

With Oort's '%B' instead of '%I' this should get close, I guess. Only
the number of articles in hidden subthreads is missing. And I don't know
how scores are displayed in slrn, never used it there...

> Here's Jesper Harder's example:

[snip]

>> Here is something that's reasonably close to the way XNews displays it:
> 
>> (setq gnus-summary-line-format "%U%R %>%(%-45,45s%)%<%4L  %-25,25f  %d  %i \n")
>> (setq gnus-summary-same-subject "...")

Well, I don't like the behaviour of %>...%<, because it makes a huge gap
between the indented and the following column. Is there a way to change
this, because I could imagine to put the lines-column and a new
date-column at the end.

..tt..
Jens

-- 
PGP or GnuPG encrypted Mail preferred.       See Headers for public key.
 /"\
 \ / *A*venturicarum *S*ignum *C*orpus *I*nvariabiliter *I*nstauratus
  x  Ribbon campain: Say NO to HTML in email, news and magic books!
 / \



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Idea: Examples for making the summary buffer look like other newsreaders
  2002-01-03 15:01 ` Jens Bethkowsky
@ 2002-01-03 16:58   ` Lars Magne Ingebrigtsen
  2002-01-03 17:05     ` wrong-type-argument (was: Idea: Examples for making the summary buffer look like other newsreaders) Michael Cook
  2002-01-03 18:41     ` Idea: Examples for making the summary buffer look like other newsreaders Jens Bethkowsky
  2002-01-03 20:15   ` Frank Haun
  2002-01-03 23:08   ` Vincent Bernat
  2 siblings, 2 replies; 16+ messages in thread
From: Lars Magne Ingebrigtsen @ 2002-01-03 16:58 UTC (permalink / raw)


Jens Bethkowsky <jb.dev.null@gmx.de> writes:

> Well, I don't like the behaviour of %>...%<, because it makes a huge gap
> between the indented and the following column. Is there a way to change
> this, because I could imagine to put the lines-column and a new
> date-column at the end.

Well, the definition is in `gnus-summary-line-format-alist':

    (?\> (make-string gnus-tmp-level ? ) ?s)
    (?\< (make-string (max 0 (- 20 gnus-tmp-level)) ? ) ?s)

You could just alter that to something else.    
    
-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 16+ messages in thread

* wrong-type-argument (was: Idea: Examples for making the summary buffer look like other newsreaders)
  2002-01-03 16:58   ` Lars Magne Ingebrigtsen
@ 2002-01-03 17:05     ` Michael Cook
  2002-01-03 17:22       ` ShengHuo ZHU
  2002-01-03 18:41     ` Idea: Examples for making the summary buffer look like other newsreaders Jens Bethkowsky
  1 sibling, 1 reply; 16+ messages in thread
From: Michael Cook @ 2002-01-03 17:05 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> You could just alter that to something else.    

when i view that article (the one i'm following-up to), i get the
following stack trace:

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  gnus-convert-gray-x-face-to-xpm(("#JXvzDM.!\\!H$~a{{3O(,C`m+{ghEpOw3i`K3sDvNIk:+lyu\\P-&L#Kd$45\\kIk'zhtnBG{\n {|8cw+&P+_<tn?S6`b!H+s%]bAF\\V{V}P58nmNzZ\"Y&@16=LB,BM@n-7QQ7$t_W~70r|}'V.p,AI|t\n (Y>foPbWvPF,0knwz=YpdsJ&b6O(-X%>'>z8I[ok)<\"`azM)1.bs?o&YX:6KU9ltSB=x-GkJG=KW2=\n s}@!Qn$m,|5e?:^]6]&{tMGrS(5SPE-DuEg<$q!dR&X*|e\\C)2<Jxn*^XUCw3GYb<MS^BhS%#\n" "#F0'k$V)$o|5D>;<*xFdG&@~j#rk>@\"Xx#%,EcmR6]R,hj]5O\n"))
  article-display-x-face()
  apply(article-display-x-face nil)
  (if interactive (call-interactively (quote article-display-x-face)) (apply (quote article-display-x-face) args))
  (save-excursion (set-buffer gnus-article-buffer) (if interactive (call-interactively ...) (apply ... args)))
  gnus-article-display-x-face()
  gnus-treat-article(head)
  gnus-display-mime()
  gnus-article-prepare-display()
  gnus-article-prepare(25758 nil)
  gnus-summary-display-article(25758 nil)
  gnus-summary-select-article(nil force)
  gnus-summary-show-article(nil)
  call-interactively(gnus-summary-show-article)

for some (but not all) other articles recently posted by lars, i
also get a stack trace.

i did `cvs up' a couple hours ago or so.  i'm running emacs 21.1.1.

m.



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: wrong-type-argument (was: Idea: Examples for making the summary buffer look like other newsreaders)
  2002-01-03 17:05     ` wrong-type-argument (was: Idea: Examples for making the summary buffer look like other newsreaders) Michael Cook
@ 2002-01-03 17:22       ` ShengHuo ZHU
  2002-01-03 17:41         ` Michael Cook
  0 siblings, 1 reply; 16+ messages in thread
From: ShengHuo ZHU @ 2002-01-03 17:22 UTC (permalink / raw)


Michael Cook <michael.cook@cisco.com> writes:

> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>
>> You could just alter that to something else.    
>
> when i view that article (the one i'm following-up to), i get the
> following stack trace:
>
> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
>   gnus-convert-gray-x-face-to-xpm(

It is probably because some versions of uncompface don't support -X
option.

ShengHuo



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: wrong-type-argument (was: Idea: Examples for making the summary buffer look like other newsreaders)
  2002-01-03 17:22       ` ShengHuo ZHU
@ 2002-01-03 17:41         ` Michael Cook
  2002-01-03 17:47           ` wrong-type-argument Karl Kleinpaste
  0 siblings, 1 reply; 16+ messages in thread
From: Michael Cook @ 2002-01-03 17:41 UTC (permalink / raw)


ShengHuo ZHU <zsh@cs.rochester.edu> writes:

> It is probably because some versions of uncompface don't support -X
> option.

hmm.  the uncompface i'm using doesn't seem to:

$ uncompface -X
uncompface: -X: No such file or directory

do we have a url for the recommended version of uncompface?

m.



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: wrong-type-argument
  2002-01-03 17:41         ` Michael Cook
@ 2002-01-03 17:47           ` Karl Kleinpaste
  0 siblings, 0 replies; 16+ messages in thread
From: Karl Kleinpaste @ 2002-01-03 17:47 UTC (permalink / raw)


Michael Cook <michael.cook@cisco.com> writes:
> do we have a url for the recommended version of uncompface?

See the "X-Face and depth" thread, where Lars, myself, and others are
hashing this out.



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Idea: Examples for making the summary buffer look like other newsreaders
  2002-01-03 16:58   ` Lars Magne Ingebrigtsen
  2002-01-03 17:05     ` wrong-type-argument (was: Idea: Examples for making the summary buffer look like other newsreaders) Michael Cook
@ 2002-01-03 18:41     ` Jens Bethkowsky
  2002-01-03 18:56       ` Lars Magne Ingebrigtsen
  1 sibling, 1 reply; 16+ messages in thread
From: Jens Bethkowsky @ 2002-01-03 18:41 UTC (permalink / raw)


On Thu, 03 Jan 2002, Lars Magne Ingebrigtsen wrote:
> Jens Bethkowsky <jb.dev.null@gmx.de> writes:

> Well, the definition is in `gnus-summary-line-format-alist':
> 
>     (?\> (make-string gnus-tmp-level ? ) ?s)
>     (?\< (make-string (max 0 (- 20 gnus-tmp-level)) ? ) ?s)
> 
> You could just alter that to something else.    

Cool. I'll play a bit with that.

As a Lisp-Newbie: Is there a better way to change the variable than
using 
"(setq gnus-summary-line-format-alist 
       (remove
        '(?\< (make-string (max 0 (- 20 gnus-tmp-level)) ? ) ?s)
        gnus-summary-line-format-alist))
 (add-to-list 'gnus-summary-line-format-alist 
              '(?\< (make-string (max 0 (- x gnus-tmp-level)) ? ) ?s))"
?

..tt..
Jens

-- 
PGP or GnuPG encrypted Mail preferred.       See Headers for public key.
: Don't forget that MS-Windows ist just a temporary workaround until you
: can switch to a GNU system ;-) 
:                                         [gnupg-w32-1.0.6 - Readme.w32]



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Idea: Examples for making the summary buffer look like other newsreaders
  2002-01-03 18:41     ` Idea: Examples for making the summary buffer look like other newsreaders Jens Bethkowsky
@ 2002-01-03 18:56       ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 16+ messages in thread
From: Lars Magne Ingebrigtsen @ 2002-01-03 18:56 UTC (permalink / raw)


Jens Bethkowsky <jb.dev.null@gmx.de> writes:

> As a Lisp-Newbie: Is there a better way to change the variable than
> using 
> "(setq gnus-summary-line-format-alist 
>        (remove

(setq gnus-summary-line-format-alist
      (delq (assq ?> gnus-summary-line-format-alist)
            gnus-summary-line-format-alist))

But you don't really have to remove anything.  If you just

(push '(?> whatever) gnus-summary-line-format-alist)

then Gnus will use that, since it'll use the first instance of the
spec in the alist.

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Idea: Examples for making the summary buffer look like other newsreaders
  2002-01-03 12:04       ` Lars Magne Ingebrigtsen
@ 2002-01-03 19:54         ` Kai Großjohann
  0 siblings, 0 replies; 16+ messages in thread
From: Kai Großjohann @ 2002-01-03 19:54 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> I think labels are a good idea, but they seem to require quite a bit
> of work to get to, er, work. 

Maybe extra headers can help a good bit, here.

kai
-- 
Simplification good!  Oversimplification bad!  (Larry Wall)



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Idea: Examples for making the summary buffer look like other newsreaders
  2002-01-03 15:01 ` Jens Bethkowsky
  2002-01-03 16:58   ` Lars Magne Ingebrigtsen
@ 2002-01-03 20:15   ` Frank Haun
  2002-01-03 23:08   ` Vincent Bernat
  2 siblings, 0 replies; 16+ messages in thread
From: Frank Haun @ 2002-01-03 20:15 UTC (permalink / raw)


Jens Bethkowsky <jb.dev.null@gmx.de> writes:

> | (setq gnus-summary-line-format "%R%U%z:%4L [%-16,16n] %I%s\n"

With changing 
  "%R%U%z:%4L [%-16,16n] %I%s\n" to

  "%R%U%z:%4L %[%-16,16n%] %I%s\n" 
              ^         ^

you get an indicator if the article has no parent.

Frank
-- 
  (error "Couldn't find doc group")



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Idea: Examples for making the summary buffer look like other newsreaders
  2002-01-03 15:01 ` Jens Bethkowsky
  2002-01-03 16:58   ` Lars Magne Ingebrigtsen
  2002-01-03 20:15   ` Frank Haun
@ 2002-01-03 23:08   ` Vincent Bernat
  2 siblings, 0 replies; 16+ messages in thread
From: Vincent Bernat @ 2002-01-03 23:08 UTC (permalink / raw)


OoO Vers la fin de l'après-midi du jeudi 03 janvier 2002, vers 16:01,
Jens Bethkowsky <jb.dev.null@gmx.de> disait:

> ,----[ .gnus ]
> | ;:* Summary-Buffer
> | (setq gnus-summary-line-format "%R%U%z:%4L [%-16,16n] %I%s\n"
> | 	gnus-thread-indent-level 2
> | 	gnus-summary-same-subject "`->")
> `----

> It looks like this:

> ,----[ *Summary de.comm.software.gnus* ]
> | AO+:  40 [Raffael Herzog  ] Re: [gnus] quoted-printable
[...]

Putting a "screenshot" is really a good idea. It is always a pain to
describe the result and a pain to test it on its configuration ! :)
-- 
panic("Attempted to kill the idle task!");
	2.2.16 /usr/src/linux/kernel/exit.c



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2002-01-03 23:08 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-03  5:48 Idea: Examples for making the summary buffer look like other newsreaders Lars Magne Ingebrigtsen
2002-01-03  9:52 ` Vincent Bernat
2002-01-03 10:20   ` Lars Magne Ingebrigtsen
2002-01-03 11:53     ` Pavel Janík
2002-01-03 12:04       ` Lars Magne Ingebrigtsen
2002-01-03 19:54         ` Kai Großjohann
2002-01-03 15:01 ` Jens Bethkowsky
2002-01-03 16:58   ` Lars Magne Ingebrigtsen
2002-01-03 17:05     ` wrong-type-argument (was: Idea: Examples for making the summary buffer look like other newsreaders) Michael Cook
2002-01-03 17:22       ` ShengHuo ZHU
2002-01-03 17:41         ` Michael Cook
2002-01-03 17:47           ` wrong-type-argument Karl Kleinpaste
2002-01-03 18:41     ` Idea: Examples for making the summary buffer look like other newsreaders Jens Bethkowsky
2002-01-03 18:56       ` Lars Magne Ingebrigtsen
2002-01-03 20:15   ` Frank Haun
2002-01-03 23:08   ` Vincent Bernat

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).