annotate lisp/gnus/smiley-ems.el @ 52295:6019cde69fa7

*** empty log message ***
author Kenichi Handa <handa@m17n.org>
date Thu, 21 Aug 2003 11:36:40 +0000
parents 52d99cc2e9e3
children 695cf19ef79e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
31789
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
1 ;;; smiley-ems.el --- displaying smiley faces
32135
210c188cba41 (smiley-regexp-alist, smiley-update-cache): Use
Dave Love <fx@gnu.org>
parents: 32017
diff changeset
2
31789
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
3 ;; Copyright (C) 2000 Free Software Foundation, Inc.
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
4
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
5 ;; Author: Dave Love <fx@gnu.org>
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
6 ;; Keywords: news mail multimedia
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
7
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
8 ;; This file is part of GNU Emacs.
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
9
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
11 ;; it under the terms of the GNU General Public License as published by
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
13 ;; any later version.
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
14
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
15 ;; GNU Emacs is distributed in the hope that it will be useful,
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
18 ;; GNU General Public License for more details.
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
19
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
23 ;; Boston, MA 02111-1307, USA.
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
24
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
25 ;;; Commentary:
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
26
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
27 ;; A re-written, simplified version of Wes Hardaker's XEmacs smiley.el
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
28 ;; which might be merged back to smiley.el if we get an assignment for
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
29 ;; that. We don't have assignments for the images smiley.el uses, but
32135
210c188cba41 (smiley-regexp-alist, smiley-update-cache): Use
Dave Love <fx@gnu.org>
parents: 32017
diff changeset
30 ;; I'm not sure we need that degree of rococoness and defaults like a
210c188cba41 (smiley-regexp-alist, smiley-update-cache): Use
Dave Love <fx@gnu.org>
parents: 32017
diff changeset
31 ;; yellow background. Also, using PBM means we can display the images
210c188cba41 (smiley-regexp-alist, smiley-update-cache): Use
Dave Love <fx@gnu.org>
parents: 32017
diff changeset
32 ;; more generally. -- fx
31789
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
33
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
34 ;;; Test smileys: :-) :-\ :-( :-/
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
35
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
36 ;;; Code:
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
37
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
38 (require 'nnheader)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
39
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
40 (defgroup smiley nil
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
41 "Turn :-)'s into real images."
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
42 :group 'gnus-visual)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
43
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
44 ;; Maybe this should go.
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
45 (defcustom smiley-data-directory (nnheader-find-etc-directory "smilies")
34328
7263c1ed74a2 (smiley-data-directory): Fix :type.
Dave Love <fx@gnu.org>
parents: 33293
diff changeset
46 "*If non-nil, a directory to search for the smiley image files.
33293
2c227ea13cc9 (smiley-data-directory, smiley-regexp-alist): Doc fix.
Dave Love <fx@gnu.org>
parents: 32135
diff changeset
47 This is in addition to the normal image search path."
34328
7263c1ed74a2 (smiley-data-directory): Fix :type.
Dave Love <fx@gnu.org>
parents: 33293
diff changeset
48 :type '(choice directory
7263c1ed74a2 (smiley-data-directory): Fix :type.
Dave Love <fx@gnu.org>
parents: 33293
diff changeset
49 (const nil))
31789
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
50 :group 'smiley)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
51
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
52 ;; The XEmacs version has a baroque, if not rococo, set of these.
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
53 (defcustom smiley-regexp-alist
31818
1e15c63f0711 (smiley-region): Test if display-graphic-p bound
Dave Love <fx@gnu.org>
parents: 31789
diff changeset
54 ;; Perhaps :-) should be distinct -- it does appear in the Jargon File.
34493
3e2309d79ff3 (smiley-regexp-alist): Make regexps match
Gerd Moellmann <gerd@gnu.org>
parents: 34474
diff changeset
55 '(("\\([:;]-?)\\)\\(\\W\\|\\'\\)" 1 "smile.pbm")
3e2309d79ff3 (smiley-regexp-alist): Make regexps match
Gerd Moellmann <gerd@gnu.org>
parents: 34474
diff changeset
56 ("\\(:-[/\\]\\)\\(\\W\\|\\'\\)" 1 "wry.pbm")
3e2309d79ff3 (smiley-regexp-alist): Make regexps match
Gerd Moellmann <gerd@gnu.org>
parents: 34474
diff changeset
57 ("\\(:-[({]\\)\\(\\W\\|\\'\\)" 1 "frown.pbm"))
31789
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
58 "*A list of regexps to map smilies to images.
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
59 The elements are (REGEXP MATCH FILE), where MATCH is the submatch in
32135
210c188cba41 (smiley-regexp-alist, smiley-update-cache): Use
Dave Love <fx@gnu.org>
parents: 32017
diff changeset
60 rgexp to replace with IMAGE. IMAGE is the name of a PBM file in
33293
2c227ea13cc9 (smiley-data-directory, smiley-regexp-alist): Doc fix.
Dave Love <fx@gnu.org>
parents: 32135
diff changeset
61 `smiley-data-directory' or the normal image search path."
31789
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
62 :type '(repeat (list regexp
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
63 (integer :tag "Regexp match number")
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
64 (string :tag "Image name")))
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
65 :set (lambda (symbol value)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
66 (set-default symbol value)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
67 (smiley-update-cache))
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
68 :initialize 'custom-initialize-default
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
69 :group 'smiley)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
70
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
71 (defvar smiley-cached-regexp-alist nil)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
72
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
73 (defun smiley-update-cache ()
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
74 (dolist (elt smiley-regexp-alist)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
75 (let* ((data-directory smiley-data-directory)
32135
210c188cba41 (smiley-regexp-alist, smiley-update-cache): Use
Dave Love <fx@gnu.org>
parents: 32017
diff changeset
76 (image (find-image (list (list :type 'pbm
31789
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
77 :file (nth 2 elt)
32017
6ee543d2c641 (smiley-update-cache): Use `:ascent center'.
Gerd Moellmann <gerd@gnu.org>
parents: 31818
diff changeset
78 :ascent 'center)))))
31789
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
79 (if image
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
80 (push (list (car elt) (cadr elt) image)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
81 smiley-cached-regexp-alist)))))
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
82
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
83 (defvar smiley-active nil
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
84 "Non-nil means smilies in the buffer will be displayed.")
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
85 (make-variable-buffer-local 'smiley-active)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
86
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
87 (defvar smiley-mouse-map
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
88 (let ((map (make-sparse-keymap)))
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
89 (define-key map [down-mouse-2] 'ignore) ; override widget
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
90 (define-key map [mouse-2]
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
91 'smiley-mouse-toggle-buffer)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
92 map))
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
93
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
94 ;;;###autoload
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
95 (defun smiley-region (start end)
34474
ce1470fa2100 (smiley-region): Doc fix.
Gerd Moellmann <gerd@gnu.org>
parents: 34328
diff changeset
96 "Display textual smileys as images.
ce1470fa2100 (smiley-region): Doc fix.
Gerd Moellmann <gerd@gnu.org>
parents: 34328
diff changeset
97 START and END specify the region; interactively, use the values
ce1470fa2100 (smiley-region): Doc fix.
Gerd Moellmann <gerd@gnu.org>
parents: 34328
diff changeset
98 of point and mark. The value of `smiley-regexp-alist' determines
ce1470fa2100 (smiley-region): Doc fix.
Gerd Moellmann <gerd@gnu.org>
parents: 34328
diff changeset
99 which smileys to operate on and which images to use for them."
31789
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
100 (interactive "r")
31818
1e15c63f0711 (smiley-region): Test if display-graphic-p bound
Dave Love <fx@gnu.org>
parents: 31789
diff changeset
101 (when (and (fboundp 'display-graphic-p)
1e15c63f0711 (smiley-region): Test if display-graphic-p bound
Dave Love <fx@gnu.org>
parents: 31789
diff changeset
102 (display-graphic-p))
31789
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
103 (mapc (lambda (o)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
104 (if (eq 'smiley (overlay-get o 'smiley))
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
105 (delete-overlay o)))
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
106 (overlays-in start end))
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
107 (unless smiley-cached-regexp-alist
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
108 (smiley-update-cache))
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
109 (save-excursion
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
110 (let ((beg (or start (point-min)))
34508
e223a51dca47 (smiley-region): Bind `inhibit-point-motion-hooks' to t, so that we
Miles Bader <miles@gnu.org>
parents: 34493
diff changeset
111 (inhibit-point-motion-hooks t)
31818
1e15c63f0711 (smiley-region): Test if display-graphic-p bound
Dave Love <fx@gnu.org>
parents: 31789
diff changeset
112 group overlay image)
31789
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
113 (dolist (entry smiley-cached-regexp-alist)
31818
1e15c63f0711 (smiley-region): Test if display-graphic-p bound
Dave Love <fx@gnu.org>
parents: 31789
diff changeset
114 (setq group (nth 1 entry)
1e15c63f0711 (smiley-region): Test if display-graphic-p bound
Dave Love <fx@gnu.org>
parents: 31789
diff changeset
115 image (nth 2 entry))
31789
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
116 (goto-char beg)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
117 (while (re-search-forward (car entry) end t)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
118 (when image
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
119 (setq overlay (make-overlay (match-beginning group)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
120 (match-end group)))
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
121 (overlay-put overlay
31818
1e15c63f0711 (smiley-region): Test if display-graphic-p bound
Dave Love <fx@gnu.org>
parents: 31789
diff changeset
122 'display `(when smiley-active ,@image))
31789
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
123 (overlay-put overlay 'mouse-face 'highlight)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
124 (overlay-put overlay 'smiley t)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
125 (overlay-put overlay
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
126 'help-echo "mouse-2: toggle smilies in buffer")
34493
3e2309d79ff3 (smiley-regexp-alist): Make regexps match
Gerd Moellmann <gerd@gnu.org>
parents: 34474
diff changeset
127 (overlay-put overlay 'keymap smiley-mouse-map)
3e2309d79ff3 (smiley-regexp-alist): Make regexps match
Gerd Moellmann <gerd@gnu.org>
parents: 34474
diff changeset
128 (goto-char (match-end group)))))))
31789
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
129 (setq smiley-active t)))
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
130
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
131 (defun smiley-toggle-buffer (&optional arg)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
132 "Toggle displaying smiley faces.
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
133 With arg, turn displaying on if and only if arg is positive."
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
134 (interactive "P")
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
135 (if (numberp arg)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
136 (setq smiley-active (> arg 0))
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
137 (setq smiley-active (not smiley-active))))
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
138
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
139 (defun smiley-mouse-toggle-buffer (event)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
140 "Toggle displaying smiley faces.
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
141 With arg, turn displaying on if and only if arg is positive."
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
142 (interactive "e")
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
143 (save-excursion
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
144 (save-window-excursion
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
145 (mouse-set-point event)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
146 (smiley-toggle-buffer))))
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
147
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
148 (eval-when-compile (defvar gnus-article-buffer))
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
149
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
150 (defun gnus-smiley-display (&optional arg)
48588
ShengHuo ZHU <zsh@cs.rochester.edu>
parents: 34508
diff changeset
151 "Display textual emoticons (\"smilies\") as small graphical icons.
31789
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
152 With arg, turn displaying on if and only if arg is positive."
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
153 (interactive "P")
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
154 (save-excursion
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
155 (set-buffer gnus-article-buffer)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
156 (save-restriction
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
157 (widen)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
158 (article-goto-body)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
159 (smiley-region (point-min) (point-max))
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
160 (if (and (numberp arg) (<= arg 0))
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
161 (smiley-toggle-buffer arg)))))
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
162
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
163 (provide 'smiley)
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
164
ff5eb810214a *** empty log message ***
Dave Love <fx@gnu.org>
parents:
diff changeset
165 ;;; smiley-ems.el ends here