Mercurial > emacs
comparison lisp/strokes.el @ 63219:cf36e45beb9c
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-383
Remove "-face" suffix from strokes-char face
2005-06-10 Miles Bader <miles@gnu.org>
* lisp/strokes.el (strokes-char): Remove "-face" suffix from face name.
(strokes-char-face): New backward-compatibility alias for renamed face.
(strokes-encode-buffer): Use renamed strokes-char face.
author | Miles Bader <miles@gnu.org> |
---|---|
date | Fri, 10 Jun 2005 10:43:04 +0000 |
parents | 9eb015fb8f5c |
children | 22c5a8628828 a1b34dec1104 |
comparison
equal
deleted
inserted
replaced
63218:d70b83f4f6a7 | 63219:cf36e45beb9c |
---|---|
1 ;;; strokes.el --- control Emacs through mouse strokes | 1 ;;; strokes.el --- control Emacs through mouse strokes |
2 | 2 |
3 ;; Copyright (C) 1997, 2000, 2002 Free Software Foundation, Inc. | 3 ;; Copyright (C) 1997, 2000, 2002, 2005 Free Software Foundation, Inc. |
4 | 4 |
5 ;; Author: David Bakhash <cadet@alum.mit.edu> | 5 ;; Author: David Bakhash <cadet@alum.mit.edu> |
6 ;; Maintainer: FSF | 6 ;; Maintainer: FSF |
7 ;; Keywords: lisp, mouse, extensions | 7 ;; Keywords: lisp, mouse, extensions |
8 | 8 |
1416 ;;;; strokes-xpm stuff (later may be separate)... | 1416 ;;;; strokes-xpm stuff (later may be separate)... |
1417 | 1417 |
1418 ;; This is the stuff that will eventually be used for composing letters in | 1418 ;; This is the stuff that will eventually be used for composing letters in |
1419 ;; any language, compression, decompression, graphics, editing, etc. | 1419 ;; any language, compression, decompression, graphics, editing, etc. |
1420 | 1420 |
1421 (defface strokes-char-face '((t (:background "lightgray"))) | 1421 (defface strokes-char '((t (:background "lightgray"))) |
1422 "Face for strokes characters." | 1422 "Face for strokes characters." |
1423 :version "21.1" | 1423 :version "21.1" |
1424 :group 'strokes) | 1424 :group 'strokes) |
1425 ;; backward-compatibility alias | |
1426 (put 'strokes-char-face 'face-alias 'strokes-char) | |
1425 | 1427 |
1426 (put 'strokes 'char-table-extra-slots 0) | 1428 (put 'strokes 'char-table-extra-slots 0) |
1427 (defconst strokes-char-table (make-char-table 'strokes) ; | 1429 (defconst strokes-char-table (make-char-table 'strokes) ; |
1428 "The table which stores values for the character keys.") | 1430 "The table which stores values for the character keys.") |
1429 (aset strokes-char-table ?0 0) | 1431 (aset strokes-char-table ?0 0) |
1693 glyph (get-text-property start 'display)) | 1695 glyph (get-text-property start 'display)) |
1694 (insert "+/" (get-text-property (point) 'data) ?/) | 1696 (insert "+/" (get-text-property (point) 'data) ?/) |
1695 (delete-char 1) | 1697 (delete-char 1) |
1696 (add-text-properties start (point) | 1698 (add-text-properties start (point) |
1697 (list 'type 'stroke-string | 1699 (list 'type 'stroke-string |
1698 'face 'strokes-char-face | 1700 'face 'strokes-char |
1699 'stroke-glyph glyph | 1701 'stroke-glyph glyph |
1700 'display nil)))) | 1702 'display nil)))) |
1701 (message "Encoding strokes in %s...done" buffer))))) | 1703 (message "Encoding strokes in %s...done" buffer))))) |
1702 | 1704 |
1703 (defun strokes-xpm-for-compressed-string (compressed-string &optional bufname) | 1705 (defun strokes-xpm-for-compressed-string (compressed-string &optional bufname) |