Gnus development mailing list
 help / color / mirror / Atom feed
* gnus-summary-show-raw-article change?
@ 2010-12-06 21:11 James Cloos
  2010-12-06 22:15 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: James Cloos @ 2010-12-06 21:11 UTC (permalink / raw)
  To: ding

As of commit c4ec1d88972a1f69fd552518d46eb108e3b5987a
the calls to gnus-summary-show-raw-article do nothing.

This breaks my report-as-spam and report-as-edible functs,
which need to (call-process-region) on the (widen) of the
raw article.

Should I be doing something different than:

(defun jimc-gnus-dspam-report-false-positive (n)
  "Submit false-positive to dspam."
  (interactive "p")
  (gnus-summary-show-raw-article)
  (gnus-eval-in-buffer-window gnus-article-buffer
    (save-restriction
      (widen)
      (call-process-region (point-min) (point-max) "/usr/bin/dspam"
      nil 0 nil
      "--mode=teft" "--user" "ME" "--class=innocent" "--source=error"))))


-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gnus-summary-show-raw-article change?
  2010-12-06 21:11 gnus-summary-show-raw-article change? James Cloos
@ 2010-12-06 22:15 ` Lars Magne Ingebrigtsen
  2010-12-07 15:22   ` James Cloos
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-12-06 22:15 UTC (permalink / raw)
  To: ding

James Cloos <cloos@jhcloos.com> writes:

>   (gnus-eval-in-buffer-window gnus-article-buffer

If you want to do something with the original raw article, working with
`gnus-original-article-buffer' is usually easier.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gnus-summary-show-raw-article change?
  2010-12-06 22:15 ` Lars Magne Ingebrigtsen
@ 2010-12-07 15:22   ` James Cloos
  0 siblings, 0 replies; 3+ messages in thread
From: James Cloos @ 2010-12-07 15:22 UTC (permalink / raw)
  To: ding

>>>>> "LMI" == Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

LMI> James Cloos <cloos@jhcloos.com> writes:
>> (gnus-eval-in-buffer-window gnus-article-buffer

LMI> If you want to do something with the original raw article, working
LMI> with `gnus-original-article-buffer' is usually easier.

OK.  Makes sense.  

Now I just need to decide on what notification I should have them do.
(The side-effect of the raw article helped make it obvious that the
command did something. :)

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-07 15:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-06 21:11 gnus-summary-show-raw-article change? James Cloos
2010-12-06 22:15 ` Lars Magne Ingebrigtsen
2010-12-07 15:22   ` James Cloos

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).