Gnus development mailing list
 help / color / mirror / Atom feed
* gnus-eval-in-buffer-window fails
@ 2015-03-03 18:51 James Cloos
  2015-03-04  4:56 ` Katsumi Yamaoka
  0 siblings, 1 reply; 3+ messages in thread
From: James Cloos @ 2015-03-03 18:51 UTC (permalink / raw)
  To: ding

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
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 0x997A9F17ED7DAEA6



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

end of thread, other threads:[~2015-03-04 19:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-03 18:51 gnus-eval-in-buffer-window fails James Cloos
2015-03-04  4:56 ` Katsumi Yamaoka
2015-03-04 19: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).