diff options
| author | Dave Love | 2000-10-04 15:32:24 +0000 |
|---|---|---|
| committer | Dave Love | 2000-10-04 15:32:24 +0000 |
| commit | d32525fdbe0beb37320145f75e003739c16f2c51 (patch) | |
| tree | 7ce7b1e00e38483cc8805bb67d33db2174657c04 | |
| parent | 7669d6a3c316e97804e6b3a44357725e6dad9838 (diff) | |
| download | emacs-d32525fdbe0beb37320145f75e003739c16f2c51.tar.gz emacs-d32525fdbe0beb37320145f75e003739c16f2c51.zip | |
(smiley-regexp-alist, smiley-update-cache): Use
pbm images.
| -rw-r--r-- | lisp/gnus/smiley-ems.el | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lisp/gnus/smiley-ems.el b/lisp/gnus/smiley-ems.el index 378345d8168..4bc0c1c5ab1 100644 --- a/lisp/gnus/smiley-ems.el +++ b/lisp/gnus/smiley-ems.el | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | ;;; smiley-ems.el --- displaying smiley faces | 1 | ;;; smiley-ems.el --- displaying smiley faces |
| 2 | |||
| 2 | ;; Copyright (C) 2000 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2000 Free Software Foundation, Inc. |
| 3 | 4 | ||
| 4 | ;; Author: Dave Love <fx@gnu.org> | 5 | ;; Author: Dave Love <fx@gnu.org> |
| @@ -26,9 +27,9 @@ | |||
| 26 | ;; A re-written, simplified version of Wes Hardaker's XEmacs smiley.el | 27 | ;; A re-written, simplified version of Wes Hardaker's XEmacs smiley.el |
| 27 | ;; which might be merged back to smiley.el if we get an assignment for | 28 | ;; which might be merged back to smiley.el if we get an assignment for |
| 28 | ;; that. We don't have assignments for the images smiley.el uses, but | 29 | ;; that. We don't have assignments for the images smiley.el uses, but |
| 29 | ;; I'm not sure we need that degree of rococoness and they shouldn't | 30 | ;; I'm not sure we need that degree of rococoness and defaults like a |
| 30 | ;; have a yellow background by default. Also, using XBM means we can | 31 | ;; yellow background. Also, using PBM means we can display the images |
| 31 | ;; display the images more generally. -- fx | 32 | ;; more generally. -- fx |
| 32 | 33 | ||
| 33 | ;;; Test smileys: :-) :-\ :-( :-/ | 34 | ;;; Test smileys: :-) :-\ :-( :-/ |
| 34 | 35 | ||
| @@ -49,12 +50,12 @@ | |||
| 49 | ;; The XEmacs version has a baroque, if not rococo, set of these. | 50 | ;; The XEmacs version has a baroque, if not rococo, set of these. |
| 50 | (defcustom smiley-regexp-alist | 51 | (defcustom smiley-regexp-alist |
| 51 | ;; Perhaps :-) should be distinct -- it does appear in the Jargon File. | 52 | ;; Perhaps :-) should be distinct -- it does appear in the Jargon File. |
| 52 | '(("\\([:;]-?)\\)\\W" 1 "smile.xbm") | 53 | '(("\\([:;]-?)\\)\\W" 1 "smile.pbm") |
| 53 | ("\\(:-[/\\]\\)\\W" 1 "wry.xbm") | 54 | ("\\(:-[/\\]\\)\\W" 1 "wry.pbm") |
| 54 | ("\\(:-[({]\\)\\W" 1 "frown.xbm")) | 55 | ("\\(:-[({]\\)\\W" 1 "frown.pbm")) |
| 55 | "*A list of regexps to map smilies to images. | 56 | "*A list of regexps to map smilies to images. |
| 56 | The elements are (REGEXP MATCH FILE), where MATCH is the submatch in | 57 | The elements are (REGEXP MATCH FILE), where MATCH is the submatch in |
| 57 | rgexp to replace with IMAGE. IMAGE is the name of an XBM file in | 58 | rgexp to replace with IMAGE. IMAGE is the name of a PBM file in |
| 58 | `smiley-data-directory'." | 59 | `smiley-data-directory'." |
| 59 | :type '(repeat (list regexp | 60 | :type '(repeat (list regexp |
| 60 | (integer :tag "Regexp match number") | 61 | (integer :tag "Regexp match number") |
| @@ -70,7 +71,7 @@ rgexp to replace with IMAGE. IMAGE is the name of an XBM file in | |||
| 70 | (defun smiley-update-cache () | 71 | (defun smiley-update-cache () |
| 71 | (dolist (elt smiley-regexp-alist) | 72 | (dolist (elt smiley-regexp-alist) |
| 72 | (let* ((data-directory smiley-data-directory) | 73 | (let* ((data-directory smiley-data-directory) |
| 73 | (image (find-image (list (list :type 'xbm | 74 | (image (find-image (list (list :type 'pbm |
| 74 | :file (nth 2 elt) | 75 | :file (nth 2 elt) |
| 75 | :ascent 'center))))) | 76 | :ascent 'center))))) |
| 76 | (if image | 77 | (if image |