James Cloos
2015-03-03 18:51:51 UTC
The function I use to re-classify main as spam looks like:
(defun jimc-gnus-report-spam (n)
"Submit spam, then mark it as expirable."
(interactive "p")
(gnus-eval-in-buffer-window gnus-original-article-buffer
(save-restriction
(widen)
(call-process-region (point-min) (point-max) "/usr/local/bin/re-classify" nil 0 nil "--user" "cloos" "--class=spam" "--source=error")))
(gnus-summary-mark-as-expirable 1))
But that no longer works since I switched to a larger monitor.
I use gnus with the typical *Summary* and *Article* buffers visible.
Now, gnus-eval-in-buffer-window splits the lower pane horizontally,
leavin *Summary*, *Article* and the original buffer visible but does
not operate on the (gnus-original-article-buffer) buffer. The call
to (call-process-region) never occurs.
I just tested in a narrow frame (by way of C-x 5 2); there it works.
Is this fixable in my code? Something other that (gnus-eval-in-buffer-window)?
Or is this a bug in emacs (master) itself?
-JimC
(defun jimc-gnus-report-spam (n)
"Submit spam, then mark it as expirable."
(interactive "p")
(gnus-eval-in-buffer-window gnus-original-article-buffer
(save-restriction
(widen)
(call-process-region (point-min) (point-max) "/usr/local/bin/re-classify" nil 0 nil "--user" "cloos" "--class=spam" "--source=error")))
(gnus-summary-mark-as-expirable 1))
But that no longer works since I switched to a larger monitor.
I use gnus with the typical *Summary* and *Article* buffers visible.
Now, gnus-eval-in-buffer-window splits the lower pane horizontally,
leavin *Summary*, *Article* and the original buffer visible but does
not operate on the (gnus-original-article-buffer) buffer. The call
to (call-process-region) never occurs.
I just tested in a narrow frame (by way of C-x 5 2); there it works.
Is this fixable in my code? Something other that (gnus-eval-in-buffer-window)?
Or is this a bug in emacs (master) itself?
-JimC
--
James Cloos <***@jhcloos.com> OpenPGP: 0x997A9F17ED7DAEA6
James Cloos <***@jhcloos.com> OpenPGP: 0x997A9F17ED7DAEA6