]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove some compat code from python.el
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 13 Oct 2021 16:34:58 +0000 (18:34 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 13 Oct 2021 16:34:58 +0000 (18:34 +0200)
* lisp/progmodes/python.el
(python-shell-font-lock-post-command-hook): Remove Emacs 24.3 and
earlier compat code.

lisp/progmodes/python.el

index f1dab76a81bc7859d3e22f48dd83651b0ce23c62..75aae23051a631ae8d6b010e7765bf0a81c9e354 100644 (file)
@@ -2731,11 +2731,7 @@ goes wrong and syntax highlighting in the shell gets messed up."
                                (point-max))
                 (setq font-lock-buffer-pos (point))
                 (insert input)
-                ;; Ensure buffer is fontified, keeping it
-                ;; compatible with Emacs < 24.4.
-                (if (fboundp 'font-lock-ensure)
-                    (funcall 'font-lock-ensure)
-                  (font-lock-default-fontify-buffer))
+                (font-lock-ensure)
                 (buffer-substring font-lock-buffer-pos
                                   (point-max))))
              (replacement-length (length replacement))