2003-03-26 Vasily Korytov <deskpot@myrealbox.com>
authorShengHuo ZHU <zsh@cs.rochester.edu>
Wed, 26 Mar 2003 20:48:26 +0000 (20:48 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Wed, 26 Mar 2003 20:48:26 +0000 (20:48 +0000)
* smiley.el (smiley-buffer): New function.

lisp/ChangeLog
lisp/smiley.el

index 8c55822..223fa23 100644 (file)
@@ -1,3 +1,7 @@
+2003-03-26  Vasily Korytov  <deskpot@myrealbox.com>
+
+       * smiley.el (smiley-buffer): New function.
+       
 2003-03-26  Kevin Greiner <kgreiner@xpediantsolutions.com>
 
        * gnus-agent.el (gnus-agent-fetch-selected-article): Replaced
index c2841cb..a85a170 100644 (file)
@@ -135,6 +135,16 @@ A list of images is returned."
              (gnus-put-image image string))))
        images))))
 
+;;;###autoload
+(defun smiley-buffer (&optional buffer)
+  "Run `smiley-region' at the buffer, specified in the argument or
+interactively. If there's no argument, do it at the current buffer"
+  (interactive "bBuffer to run smiley-region: ")
+  (save-excursion
+    (if buffer
+       (set-buffer (get-buffer buffer)))
+    (smiley-region (point-min) (point-max))))
+
 (defun smiley-toggle-buffer (&optional arg)
   "Toggle displaying smiley faces in article buffer.
 With arg, turn displaying on if and only if arg is positive."