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#33959: 26.1.90; python.el font-lock buffer wreaks havoc when eldoc is enabled Date: Wed, 02 Jan 2019 23:08:53 -0300 Message-ID: <87h8eq332i.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1546481306 21876 195.159.176.226 (3 Jan 2019 02:08:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 3 Jan 2019 02:08:26 +0000 (UTC) To: 33959@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 03 03:08:21 2019 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 1gesQm-0005ax-Ko for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Jan 2019 03:08:20 +0100 Original-Received: from localhost ([127.0.0.1]:48428 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gesSt-0000NU-4M for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Jan 2019 21:10:31 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gesSj-0000IR-Ep for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2019 21:10:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gesSU-0004H0-2V for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2019 21:10:14 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57719) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gesSQ-0004DY-JT for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2019 21:10:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gesSQ-0006SN-94 for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2019 21:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Carlos Pita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Jan 2019 02:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33959 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.154648137224777 (code B ref -1); Thu, 03 Jan 2019 02:10:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Jan 2019 02:09:32 +0000 Original-Received: from localhost ([127.0.0.1]:45096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gesRv-0006RY-VF for submit@debbugs.gnu.org; Wed, 02 Jan 2019 21:09:32 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gesRt-0006RQ-Ui for submit@debbugs.gnu.org; Wed, 02 Jan 2019 21:09:30 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:40098) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gesRt-0003RW-OT for submit@debbugs.gnu.org; Wed, 02 Jan 2019 21:09:29 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gesRs-0000ED-0v for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2019 21:09:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gesRn-0003JW-1G for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2019 21:09:27 -0500 Original-Received: from mail-qk1-x736.google.com ([2607:f8b0:4864:20::736]:32949) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gesRk-00032f-PB for bug-gnu-emacs@gnu.org; Wed, 02 Jan 2019 21:09:21 -0500 Original-Received: by mail-qk1-x736.google.com with SMTP id d15so4457855qkj.0 for ; Wed, 02 Jan 2019 18:09:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=rnKLTZEs0x6IQtCGK/GWBWvwW0czAn61uhYK7DxrlJk=; b=WasbGepq8Lf9CNaO7p9DHVGGxhM5s2Lx02lLt4vtJjVai/7k5fpvD9+agO7ajl6XcT 3kKKRKzujCn544iUIsn/OROYngxHAY2E8lVLaYQIsDZXF71b1xcSNPvExAncZNZ40cO1 pDl6AnrVSoGY2R+VThf0Yigj9OQjjHRR4RaGivh5YeVKBfkfRzztwpNc0L+FVjng7A8j fI6Jj3jzLJ1fXjfMo5TwWBuYjlylM0IOXGFcjtTCfyEDGKeeC/OK1CDhzNWIId3GbGzr zDBsxowZFAQR4wdCYY4aCpf8sZ4NytpUp28bTaRk2u9dZNmU8wj8wFtV7/HuEuEuS2NE TuNg== 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; bh=rnKLTZEs0x6IQtCGK/GWBWvwW0czAn61uhYK7DxrlJk=; b=YIKVSS1w+7xJrg/Id1/MY/zkG4awqUlJpwdrHp26mixBG4AW/yZmV7Ke+yRG8DgfvM rugFLiK19V3N5kObKazRdvjlLxzH5Bp5mrCuVeBe1DEAZXbHMjMfSHpbSoeDPTNs83lz z1tI0J6cwuk/YjLYux8sOsf6YVDBH8rdzBj512uGzXGTxsyf2tGqQspkVyTb3St4ND2K pBpfGIEM/K+HzRkxltrHofQMMXb0PGZDswqU7d/ErW2n9SGteLjGO1TuxmH845gyLDNC iL0tPMnk3PWbeMFRutieaq0K6seAJpbYi00NSPZenTyVKD5UsiLVsusfa+le8/hlrcoz lbeg== X-Gm-Message-State: AJcUukf62p3zeQPdLhJOtzGnt6EKwzlrI0hHBjw20Zaz2yy4t4haoh/N gRIgLBJne0dCuVva2rJsQaZJvNTi X-Google-Smtp-Source: ALg8bN40DNS6RuNera03y28BVOuhyh1kA7mzrW8tpfIKLMnkSBQtS5V8TgeImvANzg+WIp4IEuWYkw== X-Received: by 2002:a37:5f05:: with SMTP id t5mr43258648qkb.47.1546481341876; Wed, 02 Jan 2019 18:09:01 -0800 (PST) Original-Received: from archlinux ([181.228.213.205]) by smtp.gmail.com with ESMTPSA id v53sm25634501qtb.6.2019.01.02.18.09.00 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Jan 2019 18:09:01 -0800 (PST) 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:154100 Archived-At: Simply open the font lock buffer *Python-font-lock* while keeping an inferior mode python buffer at its side. Now start typing, wait a couple of seconds and type another character, play like this for a while and you will find out that many new lines are added to the buffer and that the current line is replicated between those empty lines. This is bad by itself, but the symptom that made me realize of the problem is that unclosed strings pair with their replicas in other lines and hence get quite a random fontification. Easier: enter the font lock buffer and scroll to the top. Maybe write something. Sooner than later the buffer will scroll down by itself. Delete everything, add a character, wait a moment, newlines appear below the character. I started disabling minor modes one by one until I found out that the culprit was eldoc. I haven't investigated further but I believe that just disabling eldoc there would be fine, don't you? I will submit a patch in a moment. Btw, I've submitted a patch for another font lock buffer related bug [1] a time ago and I might be wrong but I got the impression that python.el is rather forgotten these days. I wouldn't mind becoming a maintainer at all, or helping with maintenance, if necessary. [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32390 Best regards -- Carlos --------------------------------------- In GNU Emacs 26.1.90 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.24.1) of 2018-12-05 built on archlinux Repository revision: c7897c27861fd8b2690f40e77402edced6aa0ceb Windowing system distributor 'The X.Org Foundation', version 11.0.12003000 Recent messages: delete-backward-char: Beginning of buffer Winner mode disabled delete-backward-char: Beginning of buffer Xclip mode disabled Invalid byte code in /home/carlos/local/stow/emacs-26/share/emacs/26.1.90/lisp/emacs-lisp/cl-extra.elc Show-Paren mode disabled Ido-Ubiquitous mode disabled Invalid byte code in /home/carlos/local/stow/emacs-26/share/emacs/26.1.90/lisp/emacs-lisp/cl-extra.elc Eldoc mode disabled in current buffer delete-backward-char: Text is read-only Configured using: 'configure --prefix=/home/carlos/local/stow/emacs-26 --libexecdir=/home/carlos/local/stow/emacs-26/lib --with-x-toolkit=gtk3 --with-xft --with-modules' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD LCMS2 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Help Minor modes in effect: semantic-minor-modes-format: ((:eval (if (or semantic-highlight-edits-mode semantic-show-unmatched-syntax-mode) S))) global-magit-file-mode: t magit-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t pdf-occur-global-minor-mode: t diff-auto-refine-mode: t pyvenv-mode: t shell-dirtrack-mode: t ido-everywhere: 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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail pulse cl-print edebug misearch multi-isearch magit-extras magit-bookmark magit-submodule magit-obsolete magit-blame magit-stash magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-collab ghub-graphql treepy graphql ghub url-http tls gnutls url-gw nsm url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func magit-diff smerge-mode magit-core magit-autorevert autorevert filenotify magit-process magit-margin magit-mode git-commit magit-git magit-section magit-utils magit-popup crm log-edit message rmc puny rfc822 mml mml-sec epa derived epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader pcvs-util add-log with-editor async-bytecomp async dash autoload lisp-mnt checkdoc whitespace visual-fill-column face-remap vc-git term/xterm xterm server projectile 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 ox-md ox-html table ox-beamer ox-latex ox-ascii ox-publish ox org-capture 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-python 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 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 easy-mmode doom-themes-org 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 doom-tomorrow-night-theme doom-themes doom-themes-common 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 time-date 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 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 threads 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 1011425 82213) (symbols 48 51276 0) (miscs 40 1854 1775) (strings 32 170805 3260) (string-bytes 1 4865573) (vectors 16 88778) (vector-slots 8 2035058 160578) (floats 8 582 818) (intervals 56 6500 1583) (buffers 992 36))