diff options
Diffstat (limited to 'lisp/textmodes/table.el')
| -rw-r--r-- | lisp/textmodes/table.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/textmodes/table.el b/lisp/textmodes/table.el index 430a196166f..af13c2fe61c 100644 --- a/lisp/textmodes/table.el +++ b/lisp/textmodes/table.el | |||
| @@ -682,7 +682,7 @@ height." | |||
| 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)) |
| @@ -691,6 +691,8 @@ height." | |||
| 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." |
| @@ -5264,7 +5266,7 @@ and the right cell border character." | |||
| 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." |
| @@ -5303,8 +5305,8 @@ instead of the current buffer and returns the OBJECT." | |||
| 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 | ||