2001-02-21 01:00:00 ShengHuo ZHU <zsh@cs.rochester.edu>
authorShengHuo ZHU <zsh@cs.rochester.edu>
Wed, 21 Feb 2001 06:54:16 +0000 (06:54 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Wed, 21 Feb 2001 06:54:16 +0000 (06:54 +0000)
* smiley.el (gnus-smiley-display): Don't do widening.

* smiley-ems.el (gnus-smiley-display): Don't do widening. Smiley
within body.

lisp/ChangeLog
lisp/smiley-ems.el
lisp/smiley.el

index efe9343..d96a66b 100644 (file)
@@ -1,5 +1,10 @@
 2001-02-21 01:00:00  ShengHuo ZHU  <zsh@cs.rochester.edu>
 
+       * smiley.el (gnus-smiley-display): Don't do widening.
+
+       * smiley-ems.el (gnus-smiley-display): Don't do widening. Smiley
+       within body.
+
        * gnus-msg.el (gnus-inews-do-gcc): Activate group anyway.
 
        * gnus-art.el (gnus-mime-display-multipart-alternative-as-mixed):
index e4c23e8..8e0cae3 100644 (file)
@@ -146,13 +146,10 @@ With arg, turn displaying on if and only if arg is positive."
 With arg, turn displaying on if and only if arg is positive."
   (interactive "P")
   (save-excursion
-    (set-buffer gnus-article-buffer)
-    (save-restriction
-      (widen)
-      (article-goto-body)
-      (smiley-region (point-min) (point-max))
-      (if (and (numberp arg) (<= arg 0))
-         (smiley-toggle-buffer arg)))))
+    (article-goto-body)
+    (smiley-region (point) (point-max))
+    (if (and (numberp arg) (<= arg 0))
+       (smiley-toggle-buffer arg))))
 
 (provide 'smiley)
 
index 63a684e..c74d3ee 100644 (file)
@@ -428,12 +428,9 @@ With arg, turn displaying on if and only if arg is positive."
 With arg, turn displaying on if and only if arg is positive."
   (interactive "P")
   (save-excursion
-    (set-buffer gnus-article-buffer)
-    (save-restriction
-      (widen)
-      (article-goto-body)
-      (let (buffer-read-only)
-       (smiley-toggle-buffer arg (current-buffer) (point) (point-max))))))
+    (article-goto-body)
+    (let (buffer-read-only)
+      (smiley-toggle-buffer arg (current-buffer) (point) (point-max)))))
 
 (provide 'smiley)