From: Carlos Pita <carlosjosepita@gmail.com>
To: behrmann@physik.fu-berlin.de, 32344@debbugs.gnu.org, eggert@cs.ucla.edu
Subject: bug#32344: [PATCH] 26.3/27 Option to avoid comint override colorization provided by major modes
Date: Sun, 13 Oct 2019 18:53:36 -0300 [thread overview]
Message-ID: <CAELgYheqh5MV2_fA1mAqTB=iOum6yr0MTxW5j4ujJ9ZKiL1N7w@mail.gmail.com> (raw)
In-Reply-To: <CAELgYhd+R_h5ds6kYMQZ_v1ogGwQg-c+S7mrpFHtdJAoOWJwLQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 168 bytes --]
Here is another simple patch that takes advantage of the change in
comint to actually colorize python output. This should be applied
after the previous one, of course.
[-- Attachment #2: 0001-Keep-python-shell-input-colorization-in-comint.patch --]
[-- Type: text/x-patch, Size: 1021 bytes --]
From 1f20366f37e32e7abfea66e4c8e3e565714701c0 Mon Sep 17 00:00:00 2001
From: memeplex <carlosjosepita@gmail.com>
Date: Sun, 13 Oct 2019 18:42:37 -0300
Subject: [PATCH] Keep python shell input colorization in comint
* progmodes/python.el (inferior-python-mode): use the new comint
`comit-highlight-input' customization option in order to keep
colorization done by python.el.
---
lisp/progmodes/python.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 4e0a73c..0f366c0 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2755,6 +2755,7 @@ inferior-python-mode
python-pdbtrack-comint-output-filter-function
python-comint-postoutput-scroll-to-bottom
comint-watch-for-password-prompt))
+ (set (make-local-variable 'comint-highlight-input) nil)
(set (make-local-variable 'compilation-error-regexp-alist)
python-shell-compilation-regexp-alist)
(add-hook 'completion-at-point-functions
--
2.20.1
next prev parent reply other threads:[~2019-10-13 21:53 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-02 0:14 bug#32344: 26.1; Option to avoid comint highlighting input Carlos Pita
2018-08-02 1:19 ` bug#32344: Carlos Pita
2018-09-12 17:04 ` bug#32344: Carlos Pita
2018-09-17 16:36 ` bug#32344: (no subject) Jörg Behrmann
2019-10-13 17:18 ` bug#32344: Carlos Pita
2019-10-13 18:36 ` bug#32344: Carlos Pita
2019-10-13 19:23 ` bug#32344: Carlos Pita
2019-10-13 19:24 ` bug#32344: Carlos Pita
2019-10-13 21:53 ` Carlos Pita [this message]
2019-10-21 20:39 ` bug#32344: [PATCH] 26.3/27 Option to avoid comint override colorization provided by major modes Carlos Pita
2020-08-10 12:51 ` Lars Ingebrigtsen
2020-08-19 11:11 ` Lars Ingebrigtsen
2019-10-20 15:57 ` bug#32344: Juri Linkov
2019-10-14 17:16 ` bug#32344: [PATCH] 26.3/27 Option to avoid comint override colorization provided by major modes Gaby Launay via Bug reports for GNU Emacs, the Swiss army knife of text editors
2019-10-21 20:53 ` bug#32344: Add option to keep colorization in comint, use it in python.el Carlos Pita
2019-10-22 18:25 ` Carlos Pita
2019-10-22 20:37 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAELgYheqh5MV2_fA1mAqTB=iOum6yr0MTxW5j4ujJ9ZKiL1N7w@mail.gmail.com' \
--to=carlosjosepita@gmail.com \
--cc=32344@debbugs.gnu.org \
--cc=behrmann@physik.fu-berlin.de \
--cc=eggert@cs.ucla.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).