diff options
| author | Lars Ingebrigtsen | 2021-10-13 18:34:58 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-10-13 18:34:58 +0200 |
| commit | 93b40da8e1c0ef418c716ee62b8e8fdecc16cd44 (patch) | |
| tree | 6f06455fdf06e9e3a235208f4592a382dfd7b735 | |
| parent | aed4aec6bb6509234d1e9f2590d8f6b082885be1 (diff) | |
| download | emacs-93b40da8e1c0ef418c716ee62b8e8fdecc16cd44.tar.gz emacs-93b40da8e1c0ef418c716ee62b8e8fdecc16cd44.zip | |
Remove some compat code from python.el
* lisp/progmodes/python.el
(python-shell-font-lock-post-command-hook): Remove Emacs 24.3 and
earlier compat code.
| -rw-r--r-- | lisp/progmodes/python.el | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index f1dab76a81b..75aae23051a 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -2731,11 +2731,7 @@ goes wrong and syntax highlighting in the shell gets messed up." | |||
| 2731 | (point-max)) | 2731 | (point-max)) |
| 2732 | (setq font-lock-buffer-pos (point)) | 2732 | (setq font-lock-buffer-pos (point)) |
| 2733 | (insert input) | 2733 | (insert input) |
| 2734 | ;; Ensure buffer is fontified, keeping it | 2734 | (font-lock-ensure) |
| 2735 | ;; compatible with Emacs < 24.4. | ||
| 2736 | (if (fboundp 'font-lock-ensure) | ||
| 2737 | (funcall 'font-lock-ensure) | ||
| 2738 | (font-lock-default-fontify-buffer)) | ||
| 2739 | (buffer-substring font-lock-buffer-pos | 2735 | (buffer-substring font-lock-buffer-pos |
| 2740 | (point-max)))) | 2736 | (point-max)))) |
| 2741 | (replacement-length (length replacement)) | 2737 | (replacement-length (length replacement)) |