linking "article washing" script to menu and keyboard shortcut
  Home FAQ Contact Sign in
gnu.emacs.gnus only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.gnus Profile…
 Up
linking "article washing" script to menu and keyboard shortcut         


Author: Andrzej Adam Filip
Date: Aug 28, 2008 04:57

Could you recommend short "HOW TO" about linking specific external
article washing script to emacs/gnus menus?
[the long way is to use: Article/Washing/Unix pipe ... ]

P.S.
I post in UTF-8 to news hierarchy where *some* [...] ignore encoding
properly declared in headers and assume ISO-8859-X.

--
[pl>en Andrew] Andrzej Adam Filip : anfi@onet.eu : anfi@xl.wp.pl
I don't care for the Sugar Smacks commercial. I don't like the idea of
a frog jumping on my Breakfast.
-- Lowell, Chicago Reader 10/15/82
4 Comments
Re: linking "article washing" script to menu and keyboard shortcut         


Author: Tassilo Horn
Date: Aug 28, 2008 05:56

Andrzej Adam Filip writes:

Hi Andrzej,
> Could you recommend short "HOW TO" about linking specific external
> article washing script to emacs/gnus menus?

Something like this should work:

--8<---------------cut here---------------start------------->8---
(defun th-gnus-summary-pipe-message-through-foo ()
(interactive)
(gnus-summary-pipe-message "foo"))

(define-key gnus-summary-mode-map (kbd "C-c p")
'th-gnus-summary-pipe-message-through-foo)
--8<---------------cut here---------------end--------------->8---

Simply replace foo with your script.

Bye,
Tassilo
--
If programmers deserve to be rewarded for creating innovative programs,
by the same token they deserve to be punished if they restrict the use
of these programs. (Richard M. Stallman)
no comments
Re: linking "article washing" script to menu and keyboard shortcut         


Author: Ted Zlatanov
Date: Aug 28, 2008 06:45

On Thu, 28 Aug 2008 13:57:52 +0200 Andrzej Adam Filip wrote:
AAF> Could you recommend short "HOW TO" about linking specific external
AAF> article washing script to emacs/gnus menus?
AAF> [the long way is to use: Article/Washing/Unix pipe ... ]
AAF> P.S.
AAF> I post in UTF-8 to news hierarchy where *some* [...] ignore encoding
AAF> properly declared in headers and assume ISO-8859-X.

Is the washing script to do the encoding conversion or for something
else? You should be able to do encoding conversions in a recent Emacs
release without external tools.

I think there's a hook for what you describe: gnus-message-setup-hook,
but there may be a more specific way for washing in particular.

Ted
no comments
Re: linking "article washing" script to menu and keyboard shortcut         


Author: Andrzej Adam Filip
Date: Aug 28, 2008 07:04

Ted Zlatanov lifelogs.com> wrote:
> On Thu, 28 Aug 2008 13:57:52 +0200 Andrzej Adam Filip wrote:
>
>> Could you recommend short "HOW TO" about linking specific external
>> article washing script to emacs/gnus menus?
>> [the long way is to use: Article/Washing/Unix pipe ... ]
>
>> P.S.
>> I post in UTF-8 to news hierarchy where *some* [...] ignore encoding
>> properly declared in headers and assume ISO-8859-X.
>
> Is the washing script to do the encoding conversion or for something
> else? You should be able to do encoding conversions in a recent Emacs
> release without external tools.

The problem is when *some* posters quote my posts in UTF-8
a) declaring no encoding and keeping UTF-8 "as posted"
( ISO-8859-2 is "guessed as default" for pl.* hierarchy )
b) declare ISO-8859-2 encoding but fail to convert UTF-8 to it

The standard outcome is that *what they quote* contains "bushes".
Show full article (1.75Kb)
no comments
Re: linking "article washing" script to menu and keyboard shortcut         


Author: Andrzej Adam Filip
Date: Aug 30, 2008 09:19

Tassilo Horn member.fsf.org> wrote:
> Andrzej Adam Filip writes:
>> Could you recommend short "HOW TO" about linking specific external
>> article washing script to emacs/gnus menus?
>
> Something like this should work:
>
> --8<---------------cut here---------------start------------->8---
> (defun th-gnus-summary-pipe-message-through-foo ()
> (interactive)
> (gnus-summary-pipe-message "foo"))
>
> (define-key gnus-summary-mode-map (kbd "C-c p")
> 'th-gnus-summary-pipe-message-through-foo)
> --8<---------------cut here---------------end--------------->8---
>
> Simply replace foo with your script.
Show full article (0.99Kb)
no comments