mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Make tables more resistant to major mode changes
* lisp/textmodes/table.el (table--put-cell-face-property) (table--remove-cell-properties): Ensure that we don't lose the table face when switching from buffers with font locking to ones without (or vice versa) (bug#35481).
This commit is contained in:
parent
9ac8901b0a
commit
ca3eb85495
1 changed files with 2 additions and 2 deletions
|
|
@ -5151,7 +5151,7 @@ and the right cell border character."
|
|||
|
||||
(defun table--put-cell-face-property (beg end &optional object)
|
||||
"Put cell face property."
|
||||
(put-text-property beg end 'face 'table-cell object))
|
||||
(put-text-property beg end 'font-lock-face 'table-cell object))
|
||||
|
||||
(defun table--put-cell-keymap-property (beg end &optional object)
|
||||
"Put cell keymap property."
|
||||
|
|
@ -5178,7 +5178,7 @@ instead of the current buffer and returns the OBJECT."
|
|||
'table-cell nil
|
||||
'table-justify nil
|
||||
'table-valign nil
|
||||
'face nil
|
||||
'font-lock-face nil
|
||||
'rear-nonsticky nil
|
||||
'cursor-sensor-functions nil
|
||||
'keymap nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue