Gnus development mailing list
 help / color / mirror / Atom feed
* bug (and possible fix): truncating lines in some groups but not others
@ 2022-01-23 18:35 RL
  2022-01-24 18:42 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: RL @ 2022-01-23 18:35 UTC (permalink / raw)
  To: ding

Hi all,

I was trying to set truncate-lines to t in some groups and nil in
others.

In gnus-art.el the docstring for gnus-article-truncate-lines says

 'Valid values are nil, t, `head', `first', `last', an integer or a
  predicate.'

which led me to think this would work:

(setq gnus-article-truncate-lines '("group1" "group2"))

but this turns on truncate-lines in all groups, not just group1 and group2.

I think that the issue is that gnus-article-truncate-lines is only
actually allowed to be nil or non-nil, ie:

- the docstring for gnus-article-truncate-lines is wrong
- there should be a new variable gnus-treat-truncate-lines
    (defined like gnus-treat-fill-long-lines )
- there should be a new function gnus-article-truncate-long-lines that
     simply does: (setq truncate-lines t)
     (or should that be  gnus-article-truncate-lines? - i dont
      understand why the latter is defined at all: truncate-lines is
      already buffer-local)
- gnus-treatment-function-alist should contain an element
    (gnus-treat-truncate-lines gnus-article-truncate-long-lines)

am i misunderstanding?



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

end of thread, other threads:[~2022-01-24 18:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-23 18:35 bug (and possible fix): truncating lines in some groups but not others RL
2022-01-24 18:42 ` Lars Ingebrigtsen

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