* %c in gnus-summary-line-format in nnfolder groups
@ 2000-03-28 11:17 Pavel Janik ml.
2000-04-20 1:03 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 8+ messages in thread
From: Pavel Janik ml. @ 2000-03-28 11:17 UTC (permalink / raw)
Hello,
I'd like to have number of characters displayed insted of number of lines in
summary buffers so I changed
gnus-summary-line-format's value is
"%U%R%z%I%(%[%4c: %-20,20n%]%) %s\n"
It works in nntp foreign groups but it does not work in nnfolder groups which
I use for mail groups (there is always 0 insted of the number of chars). Is it
normal? It is not mentioned in the docs.
--
Pavel Janík ml.
Pavel.Janik@inet.cz
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: %c in gnus-summary-line-format in nnfolder groups
2000-03-28 11:17 %c in gnus-summary-line-format in nnfolder groups Pavel Janik ml.
@ 2000-04-20 1:03 ` Lars Magne Ingebrigtsen
2000-04-20 21:41 ` Pavel Janik ml.
0 siblings, 1 reply; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2000-04-20 1:03 UTC (permalink / raw)
Pavel.Janik@inet.cz (Pavel Janik ml.) writes:
> I'd like to have number of characters displayed insted of number of lines in
> summary buffers so I changed
[...]
> It works in nntp foreign groups but it does not work in nnfolder
> groups which I use for mail groups (there is always 0 insted of the
> number of chars). Is it normal?
Yes. nnfolder articles normally do not have info on the number of
characters in the articles.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: %c in gnus-summary-line-format in nnfolder groups
2000-04-20 1:03 ` Lars Magne Ingebrigtsen
@ 2000-04-20 21:41 ` Pavel Janik ml.
2000-04-21 14:24 ` Michael Welsh Duggan
0 siblings, 1 reply; 8+ messages in thread
From: Pavel Janik ml. @ 2000-04-20 21:41 UTC (permalink / raw)
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
Date: 20 Apr 2000 03:03:28 +0200
Hi,
[%c in gnus-summary-line-format and nnfolder]
> Yes. nnfolder articles normally do not have info on the number of
> characters in the articles.
hmm:
--- gnus.texi Thu Apr 20 23:35:17 2000
+++ gnus.texi.pj Thu Apr 20 23:36:26 2000
@@ -3858,7 +3858,8 @@
@item L
Number of lines in the article.
@item c
-Number of characters in the article.
+Number of characters in the article. This specifier is not supported in some
+methods (like nnfolder).
@item I
Indentation based on thread level (@pxref{Customizing Threading}).
@item T
Can I workaround this? How? I'd like to have nr of chars there. The message
can have one line and 1GB+ of chars :-)
--
Pavel Janík ml.
Pavel.Janik@inet.cz
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: %c in gnus-summary-line-format in nnfolder groups
2000-04-20 21:41 ` Pavel Janik ml.
@ 2000-04-21 14:24 ` Michael Welsh Duggan
2000-04-21 16:18 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 8+ messages in thread
From: Michael Welsh Duggan @ 2000-04-21 14:24 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 992 bytes --]
Pavel.Janik@inet.cz (Pavel Janik ml.) writes:
> From: Lars Magne Ingebrigtsen <larsi@gnus.org>
>
> [%c in gnus-summary-line-format and nnfolder]
>
> > Yes. nnfolder articles normally do not have info on the number of
> > characters in the articles.
>
> hmm:
>
> --- gnus.texi Thu Apr 20 23:35:17 2000
> +++ gnus.texi.pj Thu Apr 20 23:36:26 2000
> @@ -3858,7 +3858,8 @@
> @item L
> Number of lines in the article.
> @item c
> -Number of characters in the article.
> +Number of characters in the article. This specifier is not supported in some
> +methods (like nnfolder).
> @item I
> Indentation based on thread level (@pxref{Customizing Threading}).
> @item T
>
> Can I workaround this? How? I'd like to have nr of chars there. The message
> can have one line and 1GB+ of chars :-)
Does the following patch fix things maybe? I created it to fix
something else, but am unsure whether it would fix your problem. (Or
for that matter, break something else.)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: # of chars patch --]
[-- Type: text/x-patch, Size: 445 bytes --]
Index: lisp/nnheader.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/nnheader.el,v
retrieving revision 5.36
diff -u -r5.36 nnheader.el
--- lisp/nnheader.el 2000/03/15 10:42:57 5.36
+++ lisp/nnheader.el 2000/03/28 18:00:17
@@ -257,7 +257,7 @@
ref)
nil)))
;; Chars.
- 0
+ (- (point-max) (point-min))
;; Lines.
(progn
(goto-char p)
[-- Attachment #3: Type: text/plain, Size: 38 bytes --]
--
Michael Duggan
(md5i@cs.cmu.edu)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: %c in gnus-summary-line-format in nnfolder groups
2000-04-21 14:24 ` Michael Welsh Duggan
@ 2000-04-21 16:18 ` Lars Magne Ingebrigtsen
2000-04-21 21:21 ` Michael Welsh Duggan
0 siblings, 1 reply; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2000-04-21 16:18 UTC (permalink / raw)
Michael Welsh Duggan <md5i@cs.cmu.edu> writes:
> + (- (point-max) (point-min))
I think this will give you the size of the head, not the body of the
message.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: %c in gnus-summary-line-format in nnfolder groups
2000-04-21 16:18 ` Lars Magne Ingebrigtsen
@ 2000-04-21 21:21 ` Michael Welsh Duggan
2000-04-22 12:05 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 8+ messages in thread
From: Michael Welsh Duggan @ 2000-04-21 21:21 UTC (permalink / raw)
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> Michael Welsh Duggan <md5i@cs.cmu.edu> writes:
>
> > + (- (point-max) (point-min))
>
> I think this will give you the size of the head, not the body of the
> message.
Perhaps, but the number is consistant with what NNTP NOVs give back,
which is why I wrote it that way.
--
Michael Duggan
(md5i@cs.cmu.edu)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: %c in gnus-summary-line-format in nnfolder groups
2000-04-21 21:21 ` Michael Welsh Duggan
@ 2000-04-22 12:05 ` Lars Magne Ingebrigtsen
2000-04-22 16:12 ` Michael Welsh Duggan
0 siblings, 1 reply; 8+ messages in thread
From: Lars Magne Ingebrigtsen @ 2000-04-22 12:05 UTC (permalink / raw)
Michael Welsh Duggan <md5i@cs.cmu.edu> writes:
> > > + (- (point-max) (point-min))
> >
> > I think this will give you the size of the head, not the body of the
> > message.
>
> Perhaps, but the number is consistant with what NNTP NOVs give back,
> which is why I wrote it that way.
Uhm -- the "char" field from NNTP is the size of the head of the
article?
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: %c in gnus-summary-line-format in nnfolder groups
2000-04-22 12:05 ` Lars Magne Ingebrigtsen
@ 2000-04-22 16:12 ` Michael Welsh Duggan
0 siblings, 0 replies; 8+ messages in thread
From: Michael Welsh Duggan @ 2000-04-22 16:12 UTC (permalink / raw)
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> Michael Welsh Duggan <md5i@cs.cmu.edu> writes:
>
> > > > + (- (point-max) (point-min))
> > >
> > > I think this will give you the size of the head, not the body of the
> > > message.
> >
> > Perhaps, but the number is consistant with what NNTP NOVs give back,
> > which is why I wrote it that way.
>
> Uhm -- the "char" field from NNTP is the size of the head of the
> article?
`nnheader-parse-head' is narrowed to the article, not the head of the
article, in the instance I was tracing it. (Specifically, when
caching an article.) This may not be the case for the test you are
using. I make no claims for this patch being the correct thing to do,
only for it working for the single instance I needed it for.
--
Michael Duggan
(md5i@cs.cmu.edu)
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2000-04-22 16:12 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-28 11:17 %c in gnus-summary-line-format in nnfolder groups Pavel Janik ml.
2000-04-20 1:03 ` Lars Magne Ingebrigtsen
2000-04-20 21:41 ` Pavel Janik ml.
2000-04-21 14:24 ` Michael Welsh Duggan
2000-04-21 16:18 ` Lars Magne Ingebrigtsen
2000-04-21 21:21 ` Michael Welsh Duggan
2000-04-22 12:05 ` Lars Magne Ingebrigtsen
2000-04-22 16:12 ` Michael Welsh Duggan
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).