Gnus development mailing list
 help / color / mirror / Atom feed
From: Dave Abrahams <dave@boostpro.com>
To: ding@gnus.org
Subject: Re: gnus-treat-[hide-citation[-maybe]]
Date: Sun, 11 Sep 2011 06:24:52 -0400	[thread overview]
Message-ID: <m21uvnpea3.fsf@pluto.luannocracy.com> (raw)
In-Reply-To: <m3r53o16aw.fsf@stories.gnus.org>


on Sat Sep 10 2011, Lars Magne Ingebrigtsen <larsi-AT-gnus.org> wrote:

> Dave Abrahams <dave@boostpro.com> writes:
>
>> Furthermore, I'd like that capability for all of the `treat-' things.
>> You give me the "integer" option which says "apply if the thing is less
>> than n characters," which seems like it must've been designed for an era
>> when CPU cycles were much more expensive than they are now, or for
>> people who get truly enormous messages.
>
> That era is approaching again, as Emacs moves to cell phones...  :-)

Meh; my phone is more powerful than that era's desktops

>> But for any `treat-' action whose business is hiding information
>> that's going to get in my way, I usually only want it when the thing
>> in question gets really big.  For example, I want to see peoples'
>> signatures, but if their company forces them to write an obnoxiously
>> long disclaimer in the signature area, well, I don't want to see that.
>
> Yes, having that treatment function only trigger on long signatures
> would be nice.  So a way to specify a, er, sort of algorithm-specific
> input to each treatment function would be nice.

One easy change would be to make negative numbers set a minimum length
for applicability.

> Anyway, I've made the doc string of `gnus-treat-hide-citation-maybe'
> more sensible.

"Hide cited text according to certain conditions?"

That's not much help.  Those "certain conditions"
(head,first,last,integer,predicate) seem to apply to all treatments.  If
so, saying "according to certain conditions" is more confusing than
helpful: it implies that the available conditions are different for this
treatment

Here's how I currently see these two treatments:

gnus-treat-hide-citation-maybe: completely hide cited text
gnus-treat-hide-citation:       hide some portion of cited text

is this an inaccurate understanding?

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com




  reply	other threads:[~2011-09-11 10:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-02  5:31 gnus-treat-[hide-citation[-maybe]] Dave Abrahams
2011-09-10 20:38 ` gnus-treat-[hide-citation[-maybe]] Lars Magne Ingebrigtsen
2011-09-11 10:24   ` Dave Abrahams [this message]
2011-09-12  4:25     ` gnus-treat-[hide-citation[-maybe]] Lars Magne Ingebrigtsen
2011-09-12 13:19       ` gnus-treat-[hide-citation[-maybe]] Dave Abrahams
2011-09-21 18:21         ` gnus-treat-[hide-citation[-maybe]] Lars Magne 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=m21uvnpea3.fsf@pluto.luannocracy.com \
    --to=dave@boostpro.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).