Mercurial > emacs
comparison lisp/textmodes/table.el @ 63227:6f4701bb40a7
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-391
Remove "-face" suffix from table-cell face
2005-06-10 Miles Bader <miles@gnu.org>
* lisp/textmodes/table.el (table-cell): Remove "-face" suffix from face
name.
(table-cell-face): New backward-compatibility alias for renamed face.
(table--put-cell-face-property, table--update-cell-face):
Use renamed table-cell face.
author | Miles Bader <miles@gnu.org> |
---|---|
date | Fri, 10 Jun 2005 10:45:37 +0000 |
parents | ebbe0a507fe4 |
children | 77cc3a2cedb3 a1b34dec1104 |
comparison
equal
deleted
inserted
replaced
63226:33e854825b44 | 63227:6f4701bb40a7 |
---|---|
680 "*Key sequence to be used as prefix for table command key bindings." | 680 "*Key sequence to be used as prefix for table command key bindings." |
681 :type '(vector (repeat :inline t sexp)) | 681 :type '(vector (repeat :inline t sexp)) |
682 :tag "Table Command Prefix" | 682 :tag "Table Command Prefix" |
683 :group 'table) | 683 :group 'table) |
684 | 684 |
685 (defface table-cell-face | 685 (defface table-cell |
686 '((((min-colors 88) (class color)) | 686 '((((min-colors 88) (class color)) |
687 (:foreground "gray90" :background "blue1")) | 687 (:foreground "gray90" :background "blue1")) |
688 (((class color)) | 688 (((class color)) |
689 (:foreground "gray90" :background "blue")) | 689 (:foreground "gray90" :background "blue")) |
690 (t (:bold t))) | 690 (t (:bold t))) |
691 "*Face used for table cell contents." | 691 "*Face used for table cell contents." |
692 :tag "Cell Face" | 692 :tag "Cell Face" |
693 :group 'table) | 693 :group 'table) |
694 ;; backward-compatibility alias | |
695 (put 'table-cell-face 'face-alias 'table-cell) | |
694 | 696 |
695 (defcustom table-cell-horizontal-chars "-=" | 697 (defcustom table-cell-horizontal-chars "-=" |
696 "*Characters that may be used for table cell's horizontal border line." | 698 "*Characters that may be used for table cell's horizontal border line." |
697 :tag "Cell Horizontal Boundary Characters" | 699 :tag "Cell Horizontal Boundary Characters" |
698 :type 'string | 700 :type 'string |
5262 (put-text-property beg end 'table-cell t object) | 5264 (put-text-property beg end 'table-cell t object) |
5263 (put-text-property beg end 'yank-handler table-yank-handler object)) | 5265 (put-text-property beg end 'yank-handler table-yank-handler object)) |
5264 | 5266 |
5265 (defun table--put-cell-face-property (beg end &optional object) | 5267 (defun table--put-cell-face-property (beg end &optional object) |
5266 "Put cell face property." | 5268 "Put cell face property." |
5267 (put-text-property beg end 'face 'table-cell-face object)) | 5269 (put-text-property beg end 'face 'table-cell object)) |
5268 | 5270 |
5269 (defun table--put-cell-keymap-property (beg end &optional object) | 5271 (defun table--put-cell-keymap-property (beg end &optional object) |
5270 "Put cell keymap property." | 5272 "Put cell keymap property." |
5271 (put-text-property beg end 'keymap 'table-cell-map object)) | 5273 (put-text-property beg end 'keymap 'table-cell-map object)) |
5272 | 5274 |
5301 object) | 5303 object) |
5302 | 5304 |
5303 (defun table--update-cell-face () | 5305 (defun table--update-cell-face () |
5304 "Update cell face according to the current mode." | 5306 "Update cell face according to the current mode." |
5305 (if (featurep 'xemacs) | 5307 (if (featurep 'xemacs) |
5306 (set-face-property 'table-cell-face 'underline table-fixed-width-mode) | 5308 (set-face-property 'table-cell 'underline table-fixed-width-mode) |
5307 (set-face-inverse-video-p 'table-cell-face table-fixed-width-mode))) | 5309 (set-face-inverse-video-p 'table-cell table-fixed-width-mode))) |
5308 | 5310 |
5309 (table--update-cell-face) | 5311 (table--update-cell-face) |
5310 | 5312 |
5311 (defun table--get-property (cell property) | 5313 (defun table--get-property (cell property) |
5312 "Get CELL's PROPERTY." | 5314 "Get CELL's PROPERTY." |