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: Date: Tue, 7 Aug 2018 17:28:01 -0300 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1533673629 11493 195.159.176.226 (7 Aug 2018 20:27:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2018 20:27: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 22:27:04 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 1fn8ZL-0002sN-Lj for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Aug 2018 22:27:03 +0200 Original-Received: from localhost ([::1]:40742 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fn8bS-00050u-EQ for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Aug 2018 16:29:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fn8bL-00050n-AD for bug-gnu-emacs@gnu.org; Tue, 07 Aug 2018 16:29:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fn8bG-0005jt-D6 for bug-gnu-emacs@gnu.org; Tue, 07 Aug 2018 16:29:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38953) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fn8bG-0005jk-8v for bug-gnu-emacs@gnu.org; Tue, 07 Aug 2018 16:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fn8bF-0002h9-TK for bug-gnu-emacs@gnu.org; Tue, 07 Aug 2018 16:29:01 -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 20:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32390 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32390-submit@debbugs.gnu.org id=B32390.153367371210319 (code B ref 32390); Tue, 07 Aug 2018 20:29:01 +0000 Original-Received: (at 32390) by debbugs.gnu.org; 7 Aug 2018 20:28:32 +0000 Original-Received: from localhost ([127.0.0.1]:43970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fn8al-0002gN-UR for submit@debbugs.gnu.org; Tue, 07 Aug 2018 16:28:32 -0400 Original-Received: from mail-yb0-f177.google.com ([209.85.213.177]:37090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fn8ai-0002g7-A9 for 32390@debbugs.gnu.org; Tue, 07 Aug 2018 16:28:28 -0400 Original-Received: by mail-yb0-f177.google.com with SMTP id r3-v6so7120428ybo.4 for <32390@debbugs.gnu.org>; Tue, 07 Aug 2018 13:28:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=1kV4+FaJHpFsNQxGGx7e9GaEQlnCRUB9qIG8wXTiZzU=; b=oYIRudqEN3YDeVYFkZDj5J080JAjoyUSF3Lt3lFfqGQV2giCPiC4sJ6dXmtA8cL586 HMJswx7gFytoCSToFdof4M008cLLbhVdpt1lI5PbngE42N9ZYaDWnMiw1hDkTvCFnaFL tcXKSNQZ52dZPqaFaE+Y3SYe53TpuzcWCertahPAy0w1brZX3ZfA+SYoBM6/PaqFLRvv 67ebWpE5gqWFgJpqEnWnk6XLA7k01SukCHTZVTxj2yn2a5ji0XYGwogIWDdu+zUzwBsb uS0AWat5ESxaPOyCX6mFdN/XOF4DED3f4iV2XUd12Vw8jeTAwo5/4ES9AHpwVwAbUzRm lIAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=1kV4+FaJHpFsNQxGGx7e9GaEQlnCRUB9qIG8wXTiZzU=; b=EAmWgZQ/079mxGEkmkKawBipRUPkhRIPyJvbuwEIqr9Eb6+FEOL7K4i/koREWXFfMD xSVNFcRmodne9DLU7UiO4qrNHa8Q9xm2VW0iYDzjXOCESzu8HZ3pXGPRP4r7WOe6mq3E +oaNilzVRNeoy/3q88TQIZE0DumeT6lCTs+lyJUrnNoU9iKM+5vbs7FsefibAYimAalP zDyefivPy6sp5xI/FTsLEUvAxlo88vZreNK3/DNm3oqcQdUgYd0DCs1xlzNUO3bN09JC JKwHBnI/FOUfrQ69abegQnX83GU1Q7A/lg1gOoTjg1y7HlvES0eWEUugI7wcbx58oveC 8WqA== X-Gm-Message-State: AOUpUlFhC97d++sSuqwyZPF7KkbgXb2HeSgV3ou2JJJld60qVGGgGX6G wImyjdFpSYqF+5NPwmPp5SaU+vignIkrjspHFt5pZA== X-Google-Smtp-Source: AAOMgpdxjAlNg54NY5UU8chb4ZFEQ34K+biv4Vry/QckeIbDbrNP7GDmY68u7xq/bOryRZtVjoY5stUlmfeD3NJFFiM= X-Received: by 2002:a25:5709:: with SMTP id l9-v6mr11116783ybb.226.1533673702398; Tue, 07 Aug 2018 13:28:22 -0700 (PDT) Original-Received: by 2002:a25:c713:0:0:0:0:0 with HTTP; Tue, 7 Aug 2018 13:28:01 -0700 (PDT) In-Reply-To: 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:149340 Archived-At: 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.