* gnus-treat-body-highlight-signature redux
@ 1998-10-25 4:34 Lars Magne Ingebrigtsen
1998-10-25 14:26 ` Hrvoje Niksic
0 siblings, 1 reply; 10+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-10-25 4:34 UTC (permalink / raw)
And all the other highlighting/washing variables.
Ok; we then have a bunch of variables that say what
highlighting/washing is to be done. Only text/plain parts should have
this washing applied. However, some highlighting functions should be
applied to all text/plain parts, while others only to some. For
instance, the signature highlighting thing should probably only be
applied to the final text/plain part.
So -- we have the following valid values:
nil -- don't do it
t -- always do it
last -- only do it on the last part
N -- a number; only do it on parts smaller than N
These aren't exactly orthogonal values, but perhaps that's not a
problem.
Will This Do?
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gnus-treat-body-highlight-signature redux
1998-10-25 4:34 gnus-treat-body-highlight-signature redux Lars Magne Ingebrigtsen
@ 1998-10-25 14:26 ` Hrvoje Niksic
1998-10-25 17:03 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 10+ messages in thread
From: Hrvoje Niksic @ 1998-10-25 14:26 UTC (permalink / raw)
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> nil -- don't do it
> t -- always do it
> last -- only do it on the last part
> N -- a number; only do it on parts smaller than N
>
> These aren't exactly orthogonal values, but perhaps that's not a
> problem.
>
> Will This Do?
Please implement these things as plists, as I proposed. That will
make the much easier to extend. For example:
(defvar gnus-some-citation-variable-or-other
'(max-size 100000 relevant-parts last ...))
--
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
Ask not for whom the <CONTROL-G> tolls.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gnus-treat-body-highlight-signature redux
1998-10-25 14:26 ` Hrvoje Niksic
@ 1998-10-25 17:03 ` Lars Magne Ingebrigtsen
1998-10-28 17:23 ` Per Abrahamsen
0 siblings, 1 reply; 10+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-10-25 17:03 UTC (permalink / raw)
Hrvoje Niksic <hniksic@srce.hr> writes:
> Please implement these things as plists, as I proposed. That will
> make the much easier to extend. For example:
>
> (defvar gnus-some-citation-variable-or-other
> '(max-size 100000 relevant-parts last ...))
But wasn't the general idea to make the syntax as simple as possible
for easy Custom-ization? The nil/t/number/last/header thing gives a
very simple menu to choose from...
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gnus-treat-body-highlight-signature redux
1998-10-25 17:03 ` Lars Magne Ingebrigtsen
@ 1998-10-28 17:23 ` Per Abrahamsen
1998-10-29 11:13 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 10+ messages in thread
From: Per Abrahamsen @ 1998-10-28 17:23 UTC (permalink / raw)
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> Hrvoje Niksic <hniksic@srce.hr> writes:
>
> > Please implement these things as plists, as I proposed. That will
> > make the much easier to extend. For example:
> >
> > (defvar gnus-some-citation-variable-or-other
> > '(max-size 100000 relevant-parts last ...))
>
> But wasn't the general idea to make the syntax as simple as possible
> for easy Custom-ization? The nil/t/number/last/header thing gives a
> very simple menu to choose from...
Hrvoje's scheme could be implemented with an "on/off/advanced" (nil,
t, plist) menu choice. That would give a simple interface for the
common case.
On the other hand, your scheme is also extensible, it would just be
(nil, t, number, last, plist).
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gnus-treat-body-highlight-signature redux
1998-10-28 17:23 ` Per Abrahamsen
@ 1998-10-29 11:13 ` Lars Magne Ingebrigtsen
1998-10-29 11:44 ` Hrvoje Niksic
0 siblings, 1 reply; 10+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-10-29 11:13 UTC (permalink / raw)
Per Abrahamsen <abraham@dina.kvl.dk> writes:
> On the other hand, your scheme is also extensible, it would just be
> (nil, t, number, last, plist).
Would this be the right way to do it?
(defcustom gnus-treat-body-highlight-signature t
"Highlight the signature."
:group 'gnus-article
:type '(choice (const :tag "Off" nil)
(const :tag "On" t)
(const :tag "Last" last)
(integer :tag "Less")
(sexp :tag "Predicate")))
And then the predicate would be as I described before, more or less.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gnus-treat-body-highlight-signature redux
1998-10-29 11:13 ` Lars Magne Ingebrigtsen
@ 1998-10-29 11:44 ` Hrvoje Niksic
1998-10-29 12:02 ` Lars Magne Ingebrigtsen
1998-10-29 12:48 ` Per Abrahamsen
0 siblings, 2 replies; 10+ messages in thread
From: Hrvoje Niksic @ 1998-10-29 11:44 UTC (permalink / raw)
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> Per Abrahamsen <abraham@dina.kvl.dk> writes:
>
> > On the other hand, your scheme is also extensible, it would just be
> > (nil, t, number, last, plist).
>
> Would this be the right way to do it?
>
> (defcustom gnus-treat-body-highlight-signature t
> "Highlight the signature."
> :group 'gnus-article
> :type '(choice (const :tag "Off" nil)
> (const :tag "On" t)
> (const :tag "Last" last)
> (integer :tag "Less")
> (sexp :tag "Predicate")))
>
> And then the predicate would be as I described before, more or less.
I have no idea what predicate is, but if you mean the plist as I
described it, you could use fancier stuff than `sexp'.
--
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
main(){printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60);}
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gnus-treat-body-highlight-signature redux
1998-10-29 11:44 ` Hrvoje Niksic
@ 1998-10-29 12:02 ` Lars Magne Ingebrigtsen
1998-10-29 13:19 ` Per Abrahamsen
1998-10-29 12:48 ` Per Abrahamsen
1 sibling, 1 reply; 10+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-10-29 12:02 UTC (permalink / raw)
Hrvoje Niksic <hniksic@srce.hr> writes:
> I have no idea what predicate is, but if you mean the plist as I
> described it, you could use fancier stuff than `sexp'.
No, the predicate would look something like:
(and (not header) (or (less 10) last))
Which is a sexp, I guess.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gnus-treat-body-highlight-signature redux
1998-10-29 11:44 ` Hrvoje Niksic
1998-10-29 12:02 ` Lars Magne Ingebrigtsen
@ 1998-10-29 12:48 ` Per Abrahamsen
1 sibling, 0 replies; 10+ messages in thread
From: Per Abrahamsen @ 1998-10-29 12:48 UTC (permalink / raw)
Hrvoje Niksic <hniksic@srce.hr> writes:
> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>
> > Per Abrahamsen <abraham@dina.kvl.dk> writes:
> >
> > > On the other hand, your scheme is also extensible, it would just be
> > > (nil, t, number, last, plist).
> >
> > Would this be the right way to do it?
> >
> [ ... ]
> I have no idea what predicate is, but if you mean the plist as I
> described it, you could use fancier stuff than `sexp'.
What Hrvoje said.
You don't need to implement the plist right away, just start with the
on/off/first N/last, and then add plists when need arises.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~1998-10-31 14:12 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-10-25 4:34 gnus-treat-body-highlight-signature redux Lars Magne Ingebrigtsen
1998-10-25 14:26 ` Hrvoje Niksic
1998-10-25 17:03 ` Lars Magne Ingebrigtsen
1998-10-28 17:23 ` Per Abrahamsen
1998-10-29 11:13 ` Lars Magne Ingebrigtsen
1998-10-29 11:44 ` Hrvoje Niksic
1998-10-29 12:02 ` Lars Magne Ingebrigtsen
1998-10-29 13:19 ` Per Abrahamsen
1998-10-31 14:12 ` Lars Magne Ingebrigtsen
1998-10-29 12:48 ` Per Abrahamsen
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).