Fetch URL in unibyte mode.
authorShengHuo ZHU <zsh@cs.rochester.edu>
Sat, 11 Dec 1999 17:33:47 +0000 (17:33 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Sat, 11 Dec 1999 17:33:47 +0000 (17:33 +0000)
lisp/ChangeLog
lisp/webmail.el

index 50bf20c..edfcfdf 100644 (file)
@@ -1,3 +1,7 @@
+1999-12-11 12:30:20  Shenghuo ZHU  <zsh@cs.rochester.edu>
+
+       * webmail.el (webmail-url): Use mm-with-unibyte-current-buffer.
+
 1999-12-10 16:22:24  Shenghuo ZHU  <zsh@cs.rochester.edu>
 
        * nnweb.el (nnweb-request-article): Return cons.
index 138c0e4..c49628b 100644 (file)
     expr)))
 
 (defun webmail-url (xurl)
-  (cond 
-   ((eq (car xurl) 'content)
-    (pop xurl)
-    (webmail-fetch-simple (if (stringp (car xurl))
-                             (car xurl)
-                           (apply 'format (webmail-eval (car xurl))))
-                         (apply 'format (webmail-eval (cdr xurl)))))
-   ((eq (car xurl) 'post)
-    (pop xurl)
-    (webmail-fetch-form (car xurl) (webmail-eval (cdr xurl))))
-   (t
-    (nnweb-insert (apply 'format (webmail-eval xurl))))))
-
+  (mm-with-unibyte-current-buffer
+    (cond 
+     ((eq (car xurl) 'content)
+      (pop xurl)
+      (webmail-fetch-simple (if (stringp (car xurl))
+                               (car xurl)
+                             (apply 'format (webmail-eval (car xurl))))
+                           (apply 'format (webmail-eval (cdr xurl)))))
+     ((eq (car xurl) 'post)
+      (pop xurl)
+      (webmail-fetch-form (car xurl) (webmail-eval (cdr xurl))))
+     (t
+      (nnweb-insert (apply 'format (webmail-eval xurl)))))))
+  
 (defun webmail-decode-entities ()
   (goto-char (point-min))
   (while (re-search-forward "&\\(#[0-9]+\\|[a-z]+\\);" nil t)