Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <simon@josefsson.org>
Cc: ding@gnus.org
Subject: Re: nnimap dying when trying to symbol-name 105
Date: 30 Aug 2000 13:13:08 +0200	[thread overview]
Message-ID: <ilu8ztfgfy3.fsf@barbar.josefsson.org.d.dynas.se> (raw)
In-Reply-To: <jpvpumrjgx6.fsf@repokari.cs.Helsinki.FI>

Jaakko Kangasharju <jkangash@cs.helsinki.fi> writes:

> I add the backtrace I got with debug-on-error and imap-log created by
> imap.

Thanks for the details.

It seem to be some subtleness in `read'.  It's easy to fix, but Emacs
and XEmacs seem to behave differently so I'm not sure what the proper
fix is.

Emacs: (read "(foo?Abar)")  => (foo 65 bar)

XEmacs: (read "(foo?Abar)") => (foo\?Abar)

Could someone shred any light on the matter?

The patch below autodetect the `read' behaviour and take care of the
difference.  It is NOT a proper fix, but you should be able to read
your mail with it while we debug this.

Index: imap.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/imap.el,v
retrieving revision 1.22
diff -w -u -u -w -r1.22 imap.el
--- imap.el	2000/08/11 17:47:17	1.22
+++ imap.el	2000/08/30 11:09:45
@@ -2183,6 +2183,9 @@
 	pos)
     (while (setq pos (string-match "\\\\" str (and pos (+ 2 pos))))
       (setq str (replace-match "\\\\" nil t str)))
+    (when (= (length (symbol-name (read "A?A"))) 1)
+      (while (setq pos (string-match "\\?" str (and pos (+ 2 pos))))
+	(setq str (replace-match "\\?" nil t str))))
     (mapcar 'symbol-name (read str))))
 
 ;;   envelope        = "(" env-date SP env-subject SP env-from SP env-sender SP




  reply	other threads:[~2000-08-30 11:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-30  8:23 Jaakko Kangasharju
2000-08-30 11:13 ` Simon Josefsson [this message]
2000-09-08 19:26   ` Simon Josefsson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ilu8ztfgfy3.fsf@barbar.josefsson.org.d.dynas.se \
    --to=simon@josefsson.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).