Gnus development mailing list
 help / color / mirror / Atom feed
From: RL <richard.lewis.debian@googlemail.com>
To: ding@gnus.org
Subject: bug (and possible fix): truncating lines in some groups but not others
Date: Sun, 23 Jan 2022 18:35:16 +0000	[thread overview]
Message-ID: <861r0yz4ez.fsf@simplex.rtf.org.uk> (raw)

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?



             reply	other threads:[~2022-01-24 18:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-23 18:35 RL [this message]
2022-01-24 18:42 ` Lars Ingebrigtsen

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=861r0yz4ez.fsf@simplex.rtf.org.uk \
    --to=richard.lewis.debian@googlemail.com \
    --cc=ding@gnus.org \
    /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).