From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Carlos Pita Newsgroups: gmane.emacs.bugs Subject: bug#32390: 26.1; python.el: cleanup font lock buffer after input is sent Date: Tue, 07 Aug 2018 15:49:34 -0300 Message-ID: <87sh3q1075.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1533667689 5099 195.159.176.226 (7 Aug 2018 18:48:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2018 18:48:09 +0000 (UTC) To: 32390@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 07 20:48:05 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fn71Y-0001EM-MN for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Aug 2018 20:48:04 +0200 Original-Received: from localhost ([::1]:40421 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fn73f-0000ep-6H for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Aug 2018 14:50:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fn73W-0000TU-65 for bug-gnu-emacs@gnu.org; Tue, 07 Aug 2018 14:50:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fn73T-0002zi-20 for bug-gnu-emacs@gnu.org; Tue, 07 Aug 2018 14:50:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38906) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fn73S-0002zH-So for bug-gnu-emacs@gnu.org; Tue, 07 Aug 2018 14:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fn73S-0004d8-Fq for bug-gnu-emacs@gnu.org; Tue, 07 Aug 2018 14:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carlos Pita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Aug 2018 18:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32390 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153366779417771 (code B ref -1); Tue, 07 Aug 2018 18:50:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Aug 2018 18:49:54 +0000 Original-Received: from localhost ([127.0.0.1]:43924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fn73J-0004cX-VI for submit@debbugs.gnu.org; Tue, 07 Aug 2018 14:49:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52057) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fn73I-0004cH-QP for submit@debbugs.gnu.org; Tue, 07 Aug 2018 14:49:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fn73C-0002j0-76 for submit@debbugs.gnu.org; Tue, 07 Aug 2018 14:49:47 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:33722) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fn73C-0002io-1l for submit@debbugs.gnu.org; Tue, 07 Aug 2018 14:49:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fn73A-0000Mm-Lo for bug-gnu-emacs@gnu.org; Tue, 07 Aug 2018 14:49:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fn737-0002gB-Gz for bug-gnu-emacs@gnu.org; Tue, 07 Aug 2018 14:49:44 -0400 Original-Received: from mail-qk0-x22b.google.com ([2607:f8b0:400d:c09::22b]:38053) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fn737-0002fv-AM for bug-gnu-emacs@gnu.org; Tue, 07 Aug 2018 14:49:41 -0400 Original-Received: by mail-qk0-x22b.google.com with SMTP id 126-v6so12208361qke.5 for ; Tue, 07 Aug 2018 11:49:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=IskZAmS4NIB3KgZ9ryC3V3Ph1+QHoOCXoCA2D8BTEuY=; b=LmSon7/CdhR7cek98R1AyaMAOAo4KO9qcVUtb3tT3HnlpNVK+8oo3d4cUWEyOx6yk1 RAqQg4KOXBWaT49HBtlfQ2ILWJFWc2qMVg0eLBPWN1Zy2gYaS5HAxpQANc3g58Lrg3Kt uAKlxDgSKw1P3l6+pPC4fKMf1pDsv6vB0NOO3qnoPLxWFRye1nJoy9wUevvmGmxPJwEE 1VJlWtZSMIRtXZitLjtVo8aN9fVKTsa90zVVdH0N9is4jU09b7N2UzV1wxXmxrY9seIv I/QRhod7TyN2H3vrGuqFQinDEJJw5jZsOAVOhsv+RcoVhiOZ5Zd4/g47uS3m48/rEZkO UBKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=IskZAmS4NIB3KgZ9ryC3V3Ph1+QHoOCXoCA2D8BTEuY=; b=Bej+rxThvuhOW5T+PUNEnFOZjW30D7jjvx+EuTnsrug9b1xa4PrQ1+SHL7jkNUNYyg UIqUYfQtQUL08UYejOAEJGp8ha93rBNrV1AnGRdjkzPBE3lyJY46RfcJZyJXPLgeS+W9 d/CIJXUVNh68XOE/xFX/H4b4mib/qE/1d9T/VF6PjF/3p8P9Q9cToPp9dGBWo+dM6NxV lE2hcyDhgEm2iLP9xg4ykLGx2ObN/WBqKAWjgrCkm2dkg34LAVgl68VqdStWazWW6ZTa 1+gI5WgaK+Yu+r2Z51BH9o5ZxeQHkmZJ2tqZh9v8gUBkI3H6X+d8pKACu+fk5XcMFoV4 TN+A== X-Gm-Message-State: AOUpUlGtL293s61xBICZU68g5fJqkfZU7KMkjOD9YsgKDVtuWBq3wrcB l0l6yf3di5m4hbR3JhCkiE7lrou+ X-Google-Smtp-Source: AA+uWPwnKXRWC2UI4ZJkWmkbDw7VhKA3rTmKlZG8LOujLWol4NJWWRye4lSNRD2FHqWm7Qkyf83kVA== X-Received: by 2002:a37:ddd2:: with SMTP id u79-v6mr17255016qku.420.1533667780434; Tue, 07 Aug 2018 11:49:40 -0700 (PDT) Original-Received: from archlinux ([190.2.33.33]) by smtp.gmail.com with ESMTPSA id l18-v6sm962967qtp.56.2018.08.07.11.49.39 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Aug 2018 11:49:40 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:149334 Archived-At: font-locking gets often confused because of unclosed string delimiters. For example, type " and then press return, start typing in the new input prompt and the input will be identified as a docstring. It's ok to keep the font lock buffer while doing multiline edition, but after input is sent to the underlying process the buffer should be cleaned up so that each input is independently colorized. --- In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-07-05 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.12000000 Recent messages: Loading ido-completing-read+...done Loading paren...done Loading winner...done Loading xclip...done Source file =E2=80=98/home/carlos/.emacs.d/elpa/elpy-20180720.155/elpy-shel= l.el=E2=80=99 newer than byte-compiled file [yas] Prepared just-in-time loading of snippets successfully. For information about GNU Emacs and the GNU system, type C-h C-a. ido-read-internal: Command attempted to use minibuffer while in minibuffer You can run the command =E2=80=98run-python=E2=80=99 with M-x r-py RET Shell native completion is disabled, using fallback Configured using: 'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib --localstatedir=3D/var --with-x-toolkit=3Dgtk3 --with-xft --with-modules 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fstack-protector-str= ong -fno-plt' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS LIBSYSTEMD LCMS2 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Inferior Python Minor modes in effect: pdf-occur-global-minor-mode: t diff-auto-refine-mode: t pyvenv-mode: t shell-dirtrack-mode: t compilation-shell-minor-mode: t xclip-mode: t winner-mode: t show-paren-mode: t ido-ubiquitous-mode: t ido-everywhere: t global-company-mode: t company-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny rfc822 mml mml-sec epa derived epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail display-line-numbers checkdoc pdf-occur ibuf-ext ibuffer ibuffer-loaddefs tablist tablist-filter semantic/wisent/comp semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet dired dired-loaddefs pdf-isearch let-alist pdf-misc imenu pdf-tools pdf-view bookmark pp jka-compr pdf-cache pdf-info tq pdf-util image-mode org-protocol org-element avl-tree generator org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs cl-extra yasnippet elec-pair highlight-indentation flymake-proc flymake warnings help-fns radix-tree help-mode elpy find-file-in-project ivy delsel colir color ivy-overlay ffap thingatpt windmove diff-mode easy-mmode elpy-shell pyvenv esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode esh-util elpy-profile elpy-django elpy-refactor subr-x python tramp-sh tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete parse-time format-spec advice json map grep compile comint ansi-color files-x doom-themes-org doom-tomorrow-night-theme doom-themes doom-themes-common company-oddmuse company-keywords company-etags etags xref project company-gtags company-dabbrev-code company-dabbrev company-files company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-bbdb xclip winner ring paren ido-completing-read+ memoize s cus-edit minibuf-eldef ido gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr wid-edit company edmacro kmacro pcase cus-start cus-load finder-inf info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 556542 20830) (symbols 48 43787 5) (miscs 40 1025 265) (strings 32 128269 3450) (string-bytes 1 3715198) (vectors 16 66976) (vector-slots 8 1097024 18728) (floats 8 516 401) (intervals 56 385 0) (buffers 992 16))