emacs-diffs
[Top][All Lists]
Advanced

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

master d884b43634 1/7: Partially fix some python tests (bug#59477)


From: Yuan Fu
Subject: master d884b43634 1/7: Partially fix some python tests (bug#59477)
Date: Sat, 26 Nov 2022 21:36:29 -0500 (EST)

branch: master
commit d884b43634b149aa504bc204fdce9690a5a880d0
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    Partially fix some python tests (bug#59477)
    
    This fixes
    
    python-font-lock-assignment-statement-multiline-1
    python-font-lock-assignment-statement-multiline-2
    python-font-lock-assignment-statement-multiline-3
    python-font-lock-assignment-statement-multiline-4
    python-font-lock-assignment-statement-multiline-5
    python-font-lock-assignment-statement-multiline-6
    
    but leaves
    
    python-tests--fill-long-first-line
    
    unfixed.
    
    * lisp/progmodes/python.el (python-mode): Add the missing setup.
---
 lisp/progmodes/python.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 2a7e8a4081..9bbcac612f 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -6598,7 +6598,9 @@ implementations: `python-mode' and `python-ts-mode'."
               `(,python-font-lock-keywords
                 nil nil nil nil
                 (font-lock-syntactic-face-function
-                 . python-font-lock-syntactic-face-function)))
+                 . python-font-lock-syntactic-face-function)
+                (font-lock-extend-after-change-region-function
+                 . python-font-lock-extend-region)))
   (setq-local syntax-propertize-function
               python-syntax-propertize-function)
   (setq-local imenu-create-index-function



reply via email to

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