* simplify subject in Summary buffer
@ 2003-09-28 7:40 Denis Dzyubenko
2003-09-30 17:36 ` Reiner Steib
0 siblings, 1 reply; 12+ messages in thread
From: Denis Dzyubenko @ 2003-09-28 7:40 UTC (permalink / raw)
Hello,
Is it possible to simplify subjects in Summary buffer - remove some
parts of subjects using regexps? In documentation I found
gnus-list-identifiers, but it removes text only in the beginning of
the subject and only in the Article buffer, but I want to do the same
in the Summary. How can I do this?
--
Denis.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: simplify subject in Summary buffer
2003-09-28 7:40 simplify subject in Summary buffer Denis Dzyubenko
@ 2003-09-30 17:36 ` Reiner Steib
2003-10-01 15:05 ` Denis Dzyubenko
0 siblings, 1 reply; 12+ messages in thread
From: Reiner Steib @ 2003-09-30 17:36 UTC (permalink / raw)
On Sun, Sep 28 2003, Denis Dzyubenko wrote:
> Is it possible to simplify subjects in Summary buffer - remove some
> parts of subjects using regexps? In documentation I found
> gnus-list-identifiers, but it removes text only in the beginning of
> the subject and only in the Article buffer, but I want to do the same
> in the Summary.
When I set `gnus-list-identifiers' to "foo b" a subject "foo bar bla"
is replaced with "ar bla" in both, the summary and the article buffer.
When I use "^foo b", it's only removed in the summary buffer.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- PGP key available via WWW http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: simplify subject in Summary buffer
2003-09-30 17:36 ` Reiner Steib
@ 2003-10-01 15:05 ` Denis Dzyubenko
2003-10-01 15:59 ` Wes Hardaker
0 siblings, 1 reply; 12+ messages in thread
From: Denis Dzyubenko @ 2003-10-01 15:05 UTC (permalink / raw)
On Tue, 30 Sep 2003 19:36:37 +0200,
Reiner Steib(RS) wrote:
RS> When I set `gnus-list-identifiers' to "foo b" a subject "foo bar bla"
RS> is replaced with "ar bla" in both, the summary and the article buffer.
RS> When I use "^foo b", it's only removed in the summary buffer.
I see. Anyway, gnus-list-identifiers removes text only from beginning
of subject, but I need to remove text from the end. Is it possible ?
--
Denis.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: simplify subject in Summary buffer
2003-10-01 15:05 ` Denis Dzyubenko
@ 2003-10-01 15:59 ` Wes Hardaker
2003-10-01 17:19 ` Denis Dzyubenko
0 siblings, 1 reply; 12+ messages in thread
From: Wes Hardaker @ 2003-10-01 15:59 UTC (permalink / raw)
Cc: ding
>>>>> On Wed, 01 Oct 2003 19:05:12 +0400, Denis Dzyubenko <shad@mail.kubtelecom.ru> said:
RS> When I set `gnus-list-identifiers' to "foo b" a subject "foo bar bla"
RS> is replaced with "ar bla" in both, the summary and the article buffer.
RS> When I use "^foo b", it's only removed in the summary buffer.
Denis> I see. Anyway, gnus-list-identifiers removes text only from
Denis> beginning of subject, but I need to remove text from the
Denis> end. Is it possible ?
I posted a gnus-highlight file a while back that lets you do
highlighting via regexps on subject lines. You could very easily
use it to attach a regexp it to an invisible font?
--
"In the bathtub of history the truth is harder to hold than the soap,
and much more difficult to find." -- Terry Pratchett
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: simplify subject in Summary buffer
2003-10-01 15:59 ` Wes Hardaker
@ 2003-10-01 17:19 ` Denis Dzyubenko
2003-10-01 19:25 ` Wes Hardaker
0 siblings, 1 reply; 12+ messages in thread
From: Denis Dzyubenko @ 2003-10-01 17:19 UTC (permalink / raw)
Cc: ding
On Wed, 01 Oct 2003 08:59:16 -0700,
Wes Hardaker(WH) wrote to me:
WH> I posted a gnus-highlight file a while back that lets you do
WH> highlighting via regexps on subject lines. You could very easily
WH> use it to attach a regexp it to an invisible font?
ok, I'll search for it. But it is not exactly what I want because
subjects in replies should be stripped too, but this can be done with
gnus-simplify-headers function.
--
Denis.
The best warez: ftp://127.0.0.1
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: simplify subject in Summary buffer
2003-10-01 17:19 ` Denis Dzyubenko
@ 2003-10-01 19:25 ` Wes Hardaker
2003-10-01 19:46 ` Danny Siu
2003-10-02 7:49 ` Mark Trettin
0 siblings, 2 replies; 12+ messages in thread
From: Wes Hardaker @ 2003-10-01 19:25 UTC (permalink / raw)
Cc: ding
[-- Attachment #1: Type: text/plain, Size: 707 bytes --]
>>>>> On Wed, 01 Oct 2003 21:19:40 +0400, Denis Dzyubenko <shad@mail.kubtelecom.ru> said:
Denis> ok, I'll search for it. But it is not exactly what I want because
Denis> subjects in replies should be stripped too, but this can be done with
Denis> gnus-simplify-headers function.
It gives you the ability to do per-line changing (normally used for
highlighting, but if you use a font which is either small or invisible
or .., it could be used to hide stuff too).
I'll attach it below so you don't have to find it. See the examples
in the variable documentation for details.
--
"In the bathtub of history the truth is harder to hold than the soap,
and much more difficult to find." -- Terry Pratchett
[-- Attachment #2: gnus-highlight.el --]
[-- Type: application/emacs-lisp, Size: 8390 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: simplify subject in Summary buffer
2003-10-01 19:25 ` Wes Hardaker
@ 2003-10-01 19:46 ` Danny Siu
2003-10-01 23:39 ` Wes Hardaker
2003-10-02 7:49 ` Mark Trettin
1 sibling, 1 reply; 12+ messages in thread
From: Danny Siu @ 2003-10-01 19:46 UTC (permalink / raw)
Wes,
Thanks! I find it very useful.
Care to share your gnus-summary-highlight-expressions as an example usage?
:-)
--
Danny Siu
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: simplify subject in Summary buffer
2003-10-01 19:46 ` Danny Siu
@ 2003-10-01 23:39 ` Wes Hardaker
0 siblings, 0 replies; 12+ messages in thread
From: Wes Hardaker @ 2003-10-01 23:39 UTC (permalink / raw)
>>>>> On Wed, 01 Oct 2003 12:46:31 -0700, Danny Siu <dsiu@adobe.com> said:
Danny> Care to share your gnus-summary-highlight-expressions as an
Danny> example usage? :-)
There is a very long set of documentation for that variable... And an
example in it:
(require 'gnus-highlight)
(setq gnus-summary-highlight-expressions '(
; turns "keyword" green.
(".*\\(keyword\\)" . "green")
; turns entire line yellow
(".*otherword" . ((face . "yellow")))
; turns "thirdex" blue
(".*\\(choice1\\|choice2\\).*\\(thirdex\\)" . ((face . "blue"
match . 2)))
)
Settings I use include bbdb mark-char marks (normally a + by default
but a mark-char insert within bbdb will replace the + by something
else, which I for important people like my boss, etc. They then get a
line highlighted in yellow:
(setq gnus-summary-highlight-expressions
'(
(".*\\(teststring\\)" . ((fg . "blue2")
(bg . "green1")))
; full line highlight for x-ping
("^*" . "green")
; bbdb marks for author
; (assumes bbdb marks in one column and From: marked in []s)
("^......[^EOR].^[^[]*\\[\\([^]]+\\)\\]" . ((bg . "yellow")))
("^......[^EOR]./[^[]*\\[\\([^]]+\\)\\]" . ((fg . "brown2")))
("^......[^EOR].\\+[^[]*\\[\\([^]]+\\)\\]" . "#b0e0ff")
; specific key word marks
(".*\\(snmp\\)" . "#c0c0ff")
))
--
"In the bathtub of history the truth is harder to hold than the soap,
and much more difficult to find." -- Terry Pratchett
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: simplify subject in Summary buffer
2003-10-01 19:25 ` Wes Hardaker
2003-10-01 19:46 ` Danny Siu
@ 2003-10-02 7:49 ` Mark Trettin
2003-10-02 23:59 ` Miles Bader
1 sibling, 1 reply; 12+ messages in thread
From: Mark Trettin @ 2003-10-02 7:49 UTC (permalink / raw)
On Wed, 01 Oct 2003, Wes Hardaker said:
[...]
> It gives you the ability to do per-line changing (normally used for
> highlighting, but if you use a font which is either small or invisible
> or .., it could be used to hide stuff too).
I'd like to use it, too. But it seems that `find-face' is not defined
in Emacs (at least not in the stable version). Or do I have to load
some additional package?
[...]
Bye
Mark
--
Mark Trettin · Aachen · Germany · Where is Aachen? --> N: 50°46' E: 06°05'
BOFH excuse #132:
SCSI Chain overterminated
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: simplify subject in Summary buffer
2003-10-02 7:49 ` Mark Trettin
@ 2003-10-02 23:59 ` Miles Bader
2003-10-03 9:11 ` Mark Trettin
0 siblings, 1 reply; 12+ messages in thread
From: Miles Bader @ 2003-10-02 23:59 UTC (permalink / raw)
Mark Trettin <mtr-dev0@gmx.de> writes:
> I'd like to use it, too. But it seems that `find-face' is not defined
> in Emacs (at least not in the stable version). Or do I have to load
> some additional package?
It's defined in CVS HEAD as an obsolete compatibility function
(in lucid.el).
The definition used there is basically just the same as (facep NAME),
but looking at the posted code suggests that it might be better to use
(and (facep NAME) NAME) in this case.
-Miles
--
Love is a snowmobile racing across the tundra. Suddenly it flips over,
pinning you underneath. At night the ice weasels come. --Nietzsche
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: simplify subject in Summary buffer
2003-10-02 23:59 ` Miles Bader
@ 2003-10-03 9:11 ` Mark Trettin
2003-10-03 15:52 ` Wes Hardaker
0 siblings, 1 reply; 12+ messages in thread
From: Mark Trettin @ 2003-10-03 9:11 UTC (permalink / raw)
On 03 Oct 2003, Miles Bader stated:
> Mark Trettin <mtr-dev0@gmx.de> writes:
>> I'd like to use it, too. But it seems that `find-face' is not defined
>> in Emacs (at least not in the stable version). Or do I have to load
>> some additional package?
>
> It's defined in CVS HEAD as an obsolete compatibility function
> (in lucid.el).
>
> The definition used there is basically just the same as (facep NAME),
> but looking at the posted code suggests that it might be better to use
> (and (facep NAME) NAME) in this case.
Thank you very much. After changing the two (find-face ...) in
gnus-highlight.el it works really nice.
Bye
Mark
--
Mark Trettin · Aachen · Germany · Where is Aachen? --> N: 50°46' E: 06°05'
BOFH excuse #336:
the xy axis in the trackball is coordinated with the summer soltice
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: simplify subject in Summary buffer
2003-10-03 9:11 ` Mark Trettin
@ 2003-10-03 15:52 ` Wes Hardaker
0 siblings, 0 replies; 12+ messages in thread
From: Wes Hardaker @ 2003-10-03 15:52 UTC (permalink / raw)
>>>>> On Fri, 03 Oct 2003 11:11:51 +0200, Mark Trettin <mtr-dev0@gmx.de> said:
Mark> Thank you very much. After changing the two (find-face ...) in
Mark> gnus-highlight.el it works really nice.
Changed in my master copy. Glad you like it.
Do note that there is also a gnus-article-highlight-expressions
variable similar to the summary buffer highlighting but works in
articles too.
EG:
(setq gnus-treat-highlight-headers 'head)
(setq gnus-article-highlight-expressions
'(
; highlights "keyword" in any header.
(".*\(keyword\)" . "yellow")
; highlights particular source addresses
("From:.*\(somewhere\|elsewhere\)" . "red2")
))
--
"In the bathtub of history the truth is harder to hold than the soap,
and much more difficult to find." -- Terry Pratchett
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2003-10-03 15:52 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-28 7:40 simplify subject in Summary buffer Denis Dzyubenko
2003-09-30 17:36 ` Reiner Steib
2003-10-01 15:05 ` Denis Dzyubenko
2003-10-01 15:59 ` Wes Hardaker
2003-10-01 17:19 ` Denis Dzyubenko
2003-10-01 19:25 ` Wes Hardaker
2003-10-01 19:46 ` Danny Siu
2003-10-01 23:39 ` Wes Hardaker
2003-10-02 7:49 ` Mark Trettin
2003-10-02 23:59 ` Miles Bader
2003-10-03 9:11 ` Mark Trettin
2003-10-03 15:52 ` Wes Hardaker
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).