aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMiles Bader2005-06-10 10:45:37 +0000
committerMiles Bader2005-06-10 10:45:37 +0000
commitb4c925d8e57082786c4f7dc5d209888fb8af0f82 (patch)
tree2eb83e8f731f69e7be54b2403ee39815a418c302 /lisp
parentb390eb09fc4c6af8d36eede409ac5b5e6ec7593d (diff)
downloademacs-b4c925d8e57082786c4f7dc5d209888fb8af0f82.tar.gz
emacs-b4c925d8e57082786c4f7dc5d209888fb8af0f82.zip
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.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/textmodes/table.el10
2 files changed, 12 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0b7338f31fd..84cc6c6ee22 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,11 @@
12005-06-10 Miles Bader <miles@gnu.org> 12005-06-10 Miles Bader <miles@gnu.org>
2 2
3 * textmodes/table.el (table-cell): Remove "-face" suffix from face
4 name.
5 (table-cell-face): New backward-compatibility alias for renamed face.
6 (table--put-cell-face-property, table--update-cell-face):
7 Use renamed table-cell face.
8
3 * textmodes/sgml-mode.el (sgml-namespace): Remove "-face" suffix 9 * textmodes/sgml-mode.el (sgml-namespace): Remove "-face" suffix
4 from face name. 10 from face name.
5 (sgml-namespace-face): New backward-compatibility alias for 11 (sgml-namespace-face): New backward-compatibility alias for
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