GNU bug report logs - #32390
[ipython 6.x] unmatched quotes break fontification in python.el (superseded by #33959)

Previous Next

Package: emacs;

Reported by: Carlos Pita <carlosjosepita <at> gmail.com>

Date: Tue, 7 Aug 2018 18:50:02 UTC

Severity: minor

Tags: confirmed, fixed, patch

Found in version 26.1

Fixed in version 27.1

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Carlos Pita <carlosjosepita <at> gmail.com>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 32390 <at> debbugs.gnu.org
Subject: bug#32390: 26.1; python.el: cleanup font lock buffer after input is sent
Date: Fri, 31 Aug 2018 08:56:58 -0300
[Message part 1 (text/plain, inline)]
My report was for ipython. I've attached a screenshot showing the problem.

The way I'm fixing this issue at the moment is by patching
python-shell-font-lock-comint-output-filter-function like this:

(defun python-shell-font-lock-comint-output-filter-function (output)
  "Clean up the font-lock buffer after any OUTPUT."
  (if (and (python-shell-comint-end-of-output-p
            (ansi-color-filter-apply output))
           (not (string-match "\\.\\.\\.: $" output)))
      ;; If output is other than an input prompt then "real" output has
      ;; been received and the font-lock buffer must be cleaned up.
      (python-shell-font-lock-cleanup-buffer)
    ;; Otherwise just add a newline.
    (python-shell-font-lock-with-font-lock-buffer
      (goto-char (point-max))
      (newline)))
  output)
[Screenshot_2018-08-31_08:54:00.png (image/png, attachment)]

This bug report was last modified 5 years and 221 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.