all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Carlos Pita <carlosjosepita@gmail.com>
To: 32390@debbugs.gnu.org
Subject: bug#32390:
Date: Tue, 7 Aug 2018 17:28:01 -0300	[thread overview]
Message-ID: <CAELgYhfBEMj3wwOTcS216EQpVbiQzUh2mT1BCK6XtoHYEXCLfw@mail.gmail.com> (raw)
In-Reply-To: <CAELgYhcGn77fFmUDVzbVZn8voxPuHUsUCj-FsQ37yWMo3aV6rw@mail.gmail.com>

The current condition is also failing for multiline input. Consider:


In [154]: def f():
     ...:   'ewewe
     ...:

output is "     ...:" so it's not considered just an input prompt
(because of the preceding whitespace) and so the font lock buffer is
wrongly cleaned up (indeed, this is the only case I'm able to figure
out for which you don't want to cleanup the buffer).

I think the condition should be reformulated to match any expression
that ends with an input prompt excluding a continuation prompt. This
would fix both problems:

1. An expression that is just an input prompt (for example, ansi
filtered errors) will trigger a cleanup.
2. A continuation input prompt will not be considered the start of
a new input.





  reply	other threads:[~2018-08-07 20:28 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-07 18:49 bug#32390: 26.1; python.el: cleanup font lock buffer after input is sent Carlos Pita
2018-08-07 19:10 ` bug#32390: Carlos Pita
2018-08-07 19:34   ` bug#32390: Carlos Pita
2018-08-07 19:52     ` bug#32390: Carlos Pita
2018-08-07 20:28       ` Carlos Pita [this message]
2018-09-06  2:32       ` bug#32390: [ipython 6.x] unmatched quotes break fontification in run-python Noam Postavsky
2018-08-23  3:24 ` bug#32390: 26.1; python.el: cleanup font lock buffer after input is sent Noam Postavsky
2018-08-31 11:56   ` Carlos Pita
2018-09-01  3:01     ` Noam Postavsky
2018-09-05 15:38       ` Carlos Pita
2018-09-06  2:27         ` Noam Postavsky
2018-09-12 16:56           ` Carlos Pita
2018-12-04 22:35             ` Carlos Pita
2018-12-05 16:00               ` Carlos Pita
2019-01-03  5:43                 ` Carlos Pita
2019-10-15  0:21                   ` Noam Postavsky
2019-10-15  0:27                     ` Carlos Pita
2019-10-15  0:30                       ` Carlos Pita
2019-10-15  0:36                         ` Lars Ingebrigtsen
2019-10-15  0:40                         ` Noam Postavsky
2019-02-14 11:50 ` bug#32390: (no subject) Carlos Pita

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAELgYhfBEMj3wwOTcS216EQpVbiQzUh2mT1BCK6XtoHYEXCLfw@mail.gmail.com \
    --to=carlosjosepita@gmail.com \
    --cc=32390@debbugs.gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.