* mm-decode.el (mm-dissect-multipart): Consider the case of empty
authorShengHuo ZHU <zsh@cs.rochester.edu>
Tue, 19 Feb 2002 17:13:13 +0000 (17:13 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Tue, 19 Feb 2002 17:13:13 +0000 (17:13 +0000)
parts.

* ietf-drums.el (ietf-drums-syntax-table): Modify syntax of
non-ascii chars.

* rfc2231.el (rfc2231-parse-string): Support non-ascii chars.

lisp/ChangeLog
lisp/ietf-drums.el
lisp/mm-decode.el
lisp/rfc2231.el

index 47a7e98..2a3b744 100644 (file)
@@ -1,5 +1,13 @@
 2002-02-19  ShengHuo ZHU  <zsh@cs.rochester.edu>
 
+       * mm-decode.el (mm-dissect-multipart): Consider the case of empty
+       parts.
+
+       * ietf-drums.el (ietf-drums-syntax-table): Modify syntax of
+       non-ascii chars.
+
+       * rfc2231.el (rfc2231-parse-string): Support non-ascii chars.
+
        * gnus-art.el (gnus-article-wash-html-with-w3): Remove
        w3-delay-image-loads.
        * mm-view.el (mm-inline-text-html-render-with-w3): Ditto.
index e1b19a9..52d7b81 100644 (file)
     (modify-syntax-entry ?* " " table)
     (modify-syntax-entry ?\; " " table)
     (modify-syntax-entry ?\' " " table)
+    (if (featurep 'xemacs)
+       (let ((i 128))
+         (while (< i 256)
+           (modify-syntax-entry i "w" table)
+           (setq i (1+ i)))))
     table))
 
 (defun ietf-drums-token-to-list (token)
index d80fde0..2949b1c 100644 (file)
@@ -567,7 +567,9 @@ for types in mm-keep-viewer-alive-types."
          (save-restriction
            (narrow-to-region start (point))
            (setq parts (nconc (list (mm-dissect-buffer t)) parts)))))
-      (forward-line 2)
+      (end-of-line 2)
+      (or (looking-at boundary)
+         (forward-line 1))
       (setq start (point)))
     (when (and start (< start end))
       (save-excursion
index dd391b1..4d1994c 100644 (file)
@@ -1,6 +1,6 @@
 ;;; rfc2231.el --- Functions for decoding rfc2231 headers
 
-;; Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
+;; Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
 
 ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
 ;; This file is part of GNU Emacs.
@@ -112,10 +112,11 @@ The list will be on the form
              (setq value
                    (buffer-substring (1+ (point))
                                      (progn (forward-sexp 1) (1- (point))))))
-            ((and (memq c ttoken)
+            ((and (or (memq c ttoken)
+                      (> c ?\177)) ;; EXTENSION: Support non-ascii chars.
                   (not (memq c stoken)))
              (setq value (buffer-substring
-                          (point) (progn (forward-sexp 1) (point)))))
+                          (point) (progn (forward-sexp) (point)))))
             (t
              (error "Invalid header: %s" string)))
            (when encoded