errors in X

2006-04-18 Thread David Wainberg
Hi,

Maybe this is an emacs problem, but I'm only seeing problems so far in
Gnus.  When running Emacs and Gnus under X, if I hit M-g
(gnus-summary-rescan-group?) in the Summary or Group buffer, I get an
error: Mail source error ((args-out-of range I don't have this
problem if I run Emacs in a terminal. I'm running Emacs 21.4, Gnus
5.9.0 on Debian Sid. I recently did an apt-get dist-upgrade, which
seemed to include a big update to Xorg. Can anyone help?

The backtrace:

Debugger entered--Lisp error: (error Cannot get new mail)
  signal(error (Cannot get new mail)) error(Cannot get new mail)
  byte-code(?????\!???
????!????? [err yes-or-no-p format
  Mail source error (%s).  Continue?  error Cannot get new mail 0]
  4) mail-source-fetch((file :path /var/mail/art) (lambda (file
  orig-file) (nnmail-split-incoming file (quote nnml-save-mail) (quote
  nil) (if ... nil ...) (quote nnml-active-number
  nnmail-get-new-mail(nnml nnml-save-nov ~/Mail/ mail.misc)
  nnml-request-scan(mail.misc david)
  gnus-request-scan(nnml+david:mail.misc (nnml david))
  gnus-activate-group(nnml+david:mail.misc scan)
  gnus-group-get-new-news-this-group(1)
  gnus-summary-reselect-current-group(nil t)
  gnus-summary-rescan-group(nil) *
  call-interactively(gnus-summary-rescan-group)

Thanks much,

-David
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: errors in X

2006-04-18 Thread Sébastien Kirche
At 23:40 on Apr 18 2006, David Wainberg said :

 I recently did an apt-get dist-upgrade, which
 seemed to include a big update to Xorg. Can anyone help?

(in you headers)
 Content-Type: text/plain; charset=utf-16be
 Content-Transfer-Encoding: 8bit

It seems to me that your locales are broken as you actually sent some
kind of ascii or latin encoding and not some utf-16 big endian.

Maybe you should take a look at that ?

-- 
Sébastien Kirche
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: errors in X

2006-04-18 Thread Jesper Harder
David Wainberg [EMAIL PROTECTED] writes:

 Maybe this is an emacs problem,

Your message also exposed an unrelated Gnus error: the charset was
incorrectly specified as utf-16be in the header.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: errors in X

2006-04-18 Thread David Wainberg
Sorry about that. Thank you for pointing out the problem. Let me try
again. (I removed the odd characters from the backtrace, which I
suppose were causing gnus to automatically change the encoding. True?)

Back to my question:
This may be an Emacs problem, but I am only having trouble with Gnus
so far. I have this problem when running Emacs in X, but not when it's
in a terminal. When I hit M-g on a nnml group in summary or group buffer
I get a Mail source error: ((args-out-of-range  I am running
Emacs 21.4 and Gnus 5.9.0 on Debian Sid. A recent apt-get dist-upgrade
seemed to include a big update to Xorg. Narrowing it down to X took a
while, and I'm not sure where to go from here. Can someone point me in
the right direction?

Thanks much,

-David


Backtrace:

Debugger entered--Lisp error: (error Cannot get new mail)
  signal(error (Cannot get new mail))
  error(Cannot get new mail)
  byte-code(... [err yes-or-no-p format Mail source error (%s).
  Continue?  error Cannot get new mail 0] 4)
  mail-source-fetch((file :path /var/mail/art) (lambda (file
  orig-file) (nnmail-split-incoming file (quote nnml-save-mail) (quote
  nil) (if ... nil ...) (quote nnml-active-number
  nnmail-get-new-mail(nnml nnml-save-nov ~/Mail/ mail.misc)
  nnml-request-scan(mail.misc david)
  gnus-request-scan(nnml+david:mail.misc (nnml david))
  gnus-activate-group(nnml+david:mail.misc scan)
  gnus-group-get-new-news-this-group(nil)
  gnus-topic-get-new-news-this-topic(nil)
* call-interactively(gnus-topic-get-new-news-this-topic)
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Script output in mail-source directory :prescript

2006-04-18 Thread Timo Lilja
Is there a way to get the script output and some kind of a notice if
the exit status of the script is non-zero in a directory mail source
:prescript?

I have the following in ~/.gnus:

(setq mail-sources '((directory :path ~/path/to/mail-in
:prescript ~/path/to/get-mail-script)))

Now, the problem is that if the get-mail-script has a non-zero exit or
produces some output, nothing is shown in the Emacs buffers.

The following patch almost does what I have in mind:

--- orig.mail-source.el 2005-03-18 06:35:29.0 +0200
+++ mail-source.el  2006-04-19 00:09:56.0 +0300
@@ -667,12 +667,9 @@
 (sleep-for delay)))

 (defun mail-source-call-script (script)
-  (let ((background nil))
-(when (string-match  *$ script)
-  (setq script (substring script 0 (match-beginning 0))
-   background 0))
-(call-process shell-file-name nil background nil
- shell-command-switch script)))
+  (let ((resize-mini-windows nil)
+(max-mini-window-height 0))
+(shell-command script)))

 ;;;
 ;;; Different fetchers


Unfortunately (shell-command) does not pop the output buffer if there
is only single line of output. It doesn't help to change the
`resize-mini-windows' or `max-mini-window-height' either.

If the script exist status is non-zero, (shell-command) produces no
output.

-- 
Timo Lilja

It's a 106 miles to Chicago. We've got a full tank of gas, 
half a pack of cigarettes, it's dark, and we're wearing sunglasses.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english