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#32344: 26.1; Option to avoid comint highlighting input Date: Wed, 01 Aug 2018 21:14:35 -0300 Message-ID: <87h8kdwro4.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1533168793 1691 195.159.176.226 (2 Aug 2018 00:13:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 2 Aug 2018 00:13:13 +0000 (UTC) To: 32344@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 02 02:13:09 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 1fl1Eq-0000KO-Uy for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Aug 2018 02:13:09 +0200 Original-Received: from localhost ([::1]:43344 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fl1Gx-0005zf-G4 for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Aug 2018 20:15:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fl1Gm-0005zO-3d for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2018 20:15:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fl1Gi-0000x8-Re for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2018 20:15:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33004) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fl1Gi-0000x2-Lc for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2018 20:15:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fl1Gg-0007fl-Jy for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2018 20:15:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carlos Pita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Aug 2018 00:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32344 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.153316889529460 (code B ref -1); Thu, 02 Aug 2018 00:15:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Aug 2018 00:14:55 +0000 Original-Received: from localhost ([127.0.0.1]:38022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fl1GY-0007f5-Fs for submit@debbugs.gnu.org; Wed, 01 Aug 2018 20:14:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48509) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fl1GW-0007ep-B0 for submit@debbugs.gnu.org; Wed, 01 Aug 2018 20:14:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fl1GP-0000nO-HQ for submit@debbugs.gnu.org; Wed, 01 Aug 2018 20:14:47 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36384) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fl1GP-0000nJ-Cp for submit@debbugs.gnu.org; Wed, 01 Aug 2018 20:14:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fl1GN-0005wp-Eh for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2018 20:14:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fl1GK-0000kV-5F for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2018 20:14:43 -0400 Original-Received: from mail-qt0-x234.google.com ([2607:f8b0:400d:c0d::234]:42178) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fl1GJ-0000kP-TS for bug-gnu-emacs@gnu.org; Wed, 01 Aug 2018 20:14:40 -0400 Original-Received: by mail-qt0-x234.google.com with SMTP id z8-v6so441231qto.9 for ; Wed, 01 Aug 2018 17:14:39 -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; bh=Xm3DiblgIVCfXXtnWDZKemwctQzB8Ydkz9DAayZf9+c=; b=n/fKB1VmlJdY8pnSHwnPcc4Zg+rvhmto9e8+dUsHVRlR1AuAngAVCTiPVUvutvtsR0 pmVrqOniEr49Ba7iBAJbYasmQf1qMxKyujEHX9VtSgw/GXcTqtdHWhAwIzLk+NWXoLwn lnYH5kHGi/1wwN0t0GAQG0KmyM9SzbbxZ6o9GuIS6IWSK74Q0jgQPRVsc+iCLILnFQq3 yPi25V6T9X227+gMMYdxZtX1tzuBeOQiDHWdq2Ogbnv3mhLwDRnNjx/0ONWj84copHff wePRP/PAVCzQ0OiTcfSeVqq2vMU0CfH3OntSbeqoayBjmQDNvUwtzS3J6uiyrUfNRGFC LTeA== 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=Xm3DiblgIVCfXXtnWDZKemwctQzB8Ydkz9DAayZf9+c=; b=tDB5nrbemPJLPuLjW81Iel4y0eQW/EZ6k7I+W2xNiCKpc1Lqk4AUGNEI9IoilQdWD+ NFLxkc99i7mSkJd/N+oMyK8DRs1kcKIjpKWBQyB3+U2ToogDIospxdNkk+X4PV/MPz7U ZKQo/tVJcBKZxjd7p4uDi3S/fOiAAHOYkWhZIeupV1ZVpdABlh1kKmfSdBRnhGmOBJCU AlVKHUFN9oxTKup2wiNz288erQMQ414hyltYQxyCiOV454niRmpNvNCv/zNQRL/e9XGc vZzl557vS2Wh2XDHkAjcqfDE7mnHz8pdEdcALLvlPKZ2+YC8FwLiY3tdPUx+9pwyv1Lb HPnQ== X-Gm-Message-State: AOUpUlG3TgB5eS00hAXnBhyPO6m/WmgblzFRdp3rnw13/cxn0THw4M3p 9f8agQ26eQQ02+sFqKm+rUiu9F7i X-Google-Smtp-Source: AAOMgpc+cUdsnQvD/G/43L6p7oja0oZKtPHxrn2DNu9nS7AnM4qHSeNEI595A/mnAY0BXI4UfiGPeg== X-Received: by 2002:ac8:218d:: with SMTP id 13-v6mr545553qty.122.1533168878925; Wed, 01 Aug 2018 17:14:38 -0700 (PDT) Original-Received: from archlinux ([190.2.33.33]) by smtp.gmail.com with ESMTPSA id u25-v6sm157345qkk.7.2018.08.01.17.14.36 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 Aug 2018 17:14:38 -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:149185 Archived-At: Some modes (at least python.el) do their own input coloring according to the major mode font locking rules. It's unfortunate that comint then overwrites this coloring with comint-highlight-input face. Now, avoding this is as simple as removing (add-text-properties beg end '(front-sticky t font-lock-face comint-highlight-input)) from comint-send-input. The problem is that these 3 lines are buried down into a long function and it's not possible to cleanly disable them, except maybe by an around advice that redefines add-text-properties. There is an even more unfortunate consequence of this: for multiline inputs all but the last line will be fontified by comint-highlight-input. I had reported that in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32315 which now I'm going to close since it's obviously a particular manifestation of comint forcing the recoloring of previous inputs. Please add a customization variable to make this behavior optional so that modes that colorize input can keep their colors in previous inputs and in previous lines of the current input. --- 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: Note: file is write protected Mark saved where search started [2 times] Mark set kill-region: Buffer is read-only: # Mark set [2 times] Saved text until "'comint-output-filter-functions ""))))) " Mark set [2 times] comint-send-input Mark activated Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-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: Lisp Interaction Minor modes in effect: display-line-numbers-mode: t pdf-occur-global-minor-mode: t flymake-mode: t diff-auto-refine-mode: t pyvenv-mode: t shell-dirtrack-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 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 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 crm edebug completion semantic/wisent/python semantic/db-mode semantic/decorate/include semantic/db-find semantic/db-ref semantic/db eieio-base semantic/decorate/mode semantic/decorate semantic/format semantic/tag-ls semantic/ctxt semantic/dep semantic/find semantic/wisent/python-wy rx rect eieio-opt speedbar sb-image ezimage dframe autoload lisp-mnt dabbrev misearch multi-isearch cl-print debug tabify pulse vc-git whitespace server 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 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 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 1243861 76924) (symbols 48 47660 1) (miscs 40 15325 1716) (strings 32 140100 3027) (string-bytes 1 4040347) (vectors 16 82572) (vector-slots 8 2118926 159486) (floats 8 586 699) (intervals 56 11147 366) (buffers 992 53))