Gnus development mailing list
 help / color / mirror / Atom feed
* [patch] smiley-buffer (was: не показываются смайлики)
       [not found]                     ` <87el4upega.fsf@unix.home>
@ 2003-03-26 19:13                       ` Vasily Korytov
  0 siblings, 0 replies; only message in thread
From: Vasily Korytov @ 2003-03-26 19:13 UTC (permalink / raw)
  Cc: ding


[-- Attachment #1.1: Type: text/plain, Size: 373 bytes --]

On the xemacs-users-ru maling list a smiley-buffer function was
requested in Oort (it exists in XEmacs version of smiley.el). I wrote
one, but I'm not sure, if it mimics the arglist and return values (this
one returns the value of smiley-region). Anyway, attaching the patch.

2003-03-26  Vasily Korytov  <deskpot@myrealbox.com>

	* smiley.el (smiley-buffer): New.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: smiley.el.patch --]
[-- Type: text/x-patch, Size: 701 bytes --]

--- smiley.el~	Sun Feb  9 05:47:41 2003
+++ smiley.el	Wed Mar 26 22:02:59 2003
@@ -135,6 +135,16 @@
 	      (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."

[-- Attachment #1.3: Type: text/plain, Size: 141 bytes --]

-- 
       I accept RFC3156 and RFC1991-compatible encrypted mail.
PGP key fingerprint: 123A 7CCE 6E26 6233 0D87 E01A A0F8 3524 FCD8 1841

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-26 19:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <87llz654lt.fsf@mail.kubtelecom.ru>
     [not found] ` <isu9jbxp.fsf@ispras.ru>
     [not found]   ` <87el4w6gak.fsf@mail.kubtelecom.ru>
     [not found]     ` <y933ofmh.fsf@ispras.ru>
     [not found]       ` <87ptof8ql2.fsf@mail.kubtelecom.ru>
     [not found]         ` <llz3o4pv.fsf@ispras.ru>
     [not found]           ` <87n0jj5u7w.fsf@mail.kubtelecom.ru>
     [not found]             ` <he9ro2d5.fsf@ispras.ru>
     [not found]               ` <87n0jj2p2t.fsf@mail.kubtelecom.ru>
     [not found]                 ` <87of3z2fmi.fsf@unix.home>
     [not found]                   ` <87isu6ign5.fsf@mail.kubtelecom.ru>
     [not found]                     ` <87el4upega.fsf@unix.home>
2003-03-26 19:13                       ` [patch] smiley-buffer (was: не показываются смайлики) Vasily Korytov

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).