Gnus development mailing list
 help / color / mirror / Atom feed
From: deskpot@myrealbox.com (Vasily Korytov)
Cc: ding@gnus.org
Subject: [patch] smiley-buffer (was: не показываются смайлики)
Date: Wed, 26 Mar 2003 22:13:19 +0300	[thread overview]
Message-ID: <87llz2djqo.fsf_-___36200.3544149504$1048706007@unix.home> (raw)
In-Reply-To: <87el4upega.fsf@unix.home> (deskpot@myrealbox.com's message of "Wed, 26 Mar 2003 14:14:29 +0300")


[-- 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 --]

           reply	other threads:[~2003-03-26 19:13 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <87el4upega.fsf@unix.home>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='87llz2djqo.fsf_-___36200.3544149504$1048706007@unix.home' \
    --to=deskpot@myrealbox.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).