emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master ca3eb85: Make tables more resistant to major mode changes


From: Lars Ingebrigtsen
Subject: master ca3eb85: Make tables more resistant to major mode changes
Date: Sun, 17 Nov 2019 04:06:35 -0500 (EST)

branch: master
commit ca3eb85495e61b7255c2c5466fd1cdae7c9fa8d4
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    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).
---
 lisp/textmodes/table.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/textmodes/table.el b/lisp/textmodes/table.el
index 839df03..92aaa46 100644
--- a/lisp/textmodes/table.el
+++ b/lisp/textmodes/table.el
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]