GNU bug report logs - #31915
26.0.50; highlight-regexp does not highlight regexp

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Markus Triska <triska@HIDDEN>; dated Wed, 20 Jun 2018 16:27:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 31915 <at> debbugs.gnu.org:


Received: (at 31915) by debbugs.gnu.org; 20 Jun 2018 21:26:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 20 17:26:41 2018
Received: from localhost ([127.0.0.1]:58015 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fVkcj-0004TT-CT
	for submit <at> debbugs.gnu.org; Wed, 20 Jun 2018 17:26:41 -0400
Received: from metalevel.at ([78.46.218.83]:37998)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <triska@HIDDEN>) id 1fVkch-0004TL-FZ
 for 31915 <at> debbugs.gnu.org; Wed, 20 Jun 2018 17:26:40 -0400
Received: by metalevel.at (Postfix, from userid 1000)
 id 91A4FA0F59; Wed, 20 Jun 2018 23:26:38 +0200 (CEST)
From: Markus Triska <triska@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: Re: bug#31915: 26.0.50; highlight-regexp does not highlight regexp
References: <87a7rp5sre.fsf@HIDDEN> <87po0lfjob.fsf@HIDDEN>
Date: Wed, 20 Jun 2018 23:26:38 +0200
In-Reply-To: <87po0lfjob.fsf@HIDDEN> (Michael Heerdegen's message of "Wed, 20
 Jun 2018 19:32:20 +0200")
Message-ID: <87o9g59mk1.fsf@HIDDEN>
User-Agent: Emacs/24.5
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 31915
Cc: 31915 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Michael Heerdegen <michael_heerdegen@HIDDEN> writes:

> "If overlays are used, the highlighting will not update as you type."
> Do you want to clarify that this also applies to text that is inserted
> without typing it?

This would be a welcome clarification, since it seems to be the case!

All the best,
Markus




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#31915; Package emacs. Full text available.

Message received at 31915 <at> debbugs.gnu.org:


Received: (at 31915) by debbugs.gnu.org; 20 Jun 2018 21:22:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 20 17:22:58 2018
Received: from localhost ([127.0.0.1]:58011 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fVkZ7-0004O6-RJ
	for submit <at> debbugs.gnu.org; Wed, 20 Jun 2018 17:22:57 -0400
Received: from metalevel.at ([78.46.218.83]:37988)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <triska@HIDDEN>) id 1fVkZ4-0004Nu-Nv
 for 31915 <at> debbugs.gnu.org; Wed, 20 Jun 2018 17:22:57 -0400
Received: by metalevel.at (Postfix, from userid 1000)
 id 5081DA126B; Wed, 20 Jun 2018 23:22:53 +0200 (CEST)
From: Markus Triska <triska@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#31915: 26.0.50; highlight-regexp does not highlight regexp
References: <87a7rp5sre.fsf@HIDDEN> <83a7rps7x4.fsf@HIDDEN>
Date: Wed, 20 Jun 2018 23:22:53 +0200
In-Reply-To: <83a7rps7x4.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 20 Jun
 2018 20:07:51 +0300")
Message-ID: <87sh5h9mqa.fsf@HIDDEN>
User-Agent: Emacs/24.5
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 31915
Cc: 31915 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

> Actually, that buffer is in Fundamental mode, where there's no
> font-lock.  Somehow, I suspect you already know that.

In the snippet I posted, I used the variable font-lock-mode to test
whether font-lock is enabled. Its documentation states:

    Non-nil if Font-Lock mode is enabled.

Is this documentation valid? If not, could you please adapt it, or -
alternatively - make the implementation match the description?

> Would it suffice to say "Note that in Fundamental mode, there's no
> font lock, so overlays are always used"?  Or did you mean something
> else?

Personally, I suspect that adding this would not cover all cases. I get
this impression from looking at hi-lock-set-pattern:

      (if (and font-lock-mode (font-lock-specified-p major-mode))

This condition seems to be different from what is documented.

Thank you and all the best,
Markus




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#31915; Package emacs. Full text available.

Message received at 31915 <at> debbugs.gnu.org:


Received: (at 31915) by debbugs.gnu.org; 20 Jun 2018 17:32:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 20 13:32:30 2018
Received: from localhost ([127.0.0.1]:57925 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fVgy6-0005Px-J7
	for submit <at> debbugs.gnu.org; Wed, 20 Jun 2018 13:32:30 -0400
Received: from mout.web.de ([212.227.15.3]:41293)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1fVgy5-0005Pf-41
 for 31915 <at> debbugs.gnu.org; Wed, 20 Jun 2018 13:32:29 -0400
Received: from drachen.dragon ([188.110.196.170]) by smtp.web.de (mrweb004
 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LvOd9-1gDNO10at1-010fw5; Wed, 20
 Jun 2018 19:32:22 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Markus Triska <triska@HIDDEN>
Subject: Re: bug#31915: 26.0.50; highlight-regexp does not highlight regexp
References: <87a7rp5sre.fsf@HIDDEN>
Date: Wed, 20 Jun 2018 19:32:20 +0200
In-Reply-To: <87a7rp5sre.fsf@HIDDEN> (Markus Triska's message of "Wed,
 20 Jun 2018 18:26:13 +0200")
Message-ID: <87po0lfjob.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:CmFm0I/aA9nBZA5OqhlaRsBIzQyqw/w25fiDa0KvNIDczUVI1Vg
 N5J6gBlFCTACqmB3mxhQFNJbR60aACy0r6yrpOOgZfW3mhrDvCwnJm6e51XegoZBxt722Bx
 QKBaC7Lt+RoN5nWalQ1EA9OsPIY3L1AkGsYGPsjSip6gUTyTLR3uiZCBtrcgTaEC7wPaZ+1
 kPhcGxmBhu6sOSigvqcOA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:xXLLtUnup8k=:U9znHVHtDW5V8/YftLJVRO
 jROyzn7B5iN7dmwqrVGEmvFMnQBi3nJAEPQsBt5doOOiYTYB3OVBTOIy46JcM2T4nh0BI40Ys
 O8y6kPOLvB5nsgVp6I0OWsoua4fpa8K0QpD6nolggiG/7U8xbeRjKuZGJJEC8eb77Ww+fco4m
 0I7imizz6jyZFKluUFT6DYFUi8Wss0Py87gIUt6Kh/VYoXDtL3dpyWBMm1zszjY9OCo6LVtRQ
 WsVHsHVV/LdcjtvM6T408k4mUGHC+GIXm55BIX28pG3sz3O71Eia4kLfZ1KbdIE37Pu73IKeO
 d5DwaKRikcNVdUr1OZrYqa9k5SYL8R5zx0ieSC+sFQ0D7Yx7MsINimJpv+whYiRAj2hApqlS1
 pazac+LqMPAo1hNh3ep1bOG1eRbi7IurnxRCvERSF2zX2O6i22Xb6p8gfODypMR3+hyTGP+PC
 3gJVwoYykNeFjCDSRa6UXGNW5IwzmCmzzWq3Msak6gWVPdQZjhxTX8CnpR+2y5ZtKmO22gYkZ
 Pq40sOimLm9czzIRF5eEEgzRsEJSCo9vtj4JX9tlr2xQG2B5+eMl1BGA35DUH0pbEMkMMXdOS
 Sp1H5yeJJGziy1iS3bT2GQXt9fipO8LQYwydZOf10M5SfDCdo18/YNA8uwpOjRx7NviK70W3A
 NN0177MaosURkt4A7daG4Jo/DLLHKHBt5WdBJu2I1Zdekfg0WGHG49xKTPU6bDzgV0GxFQDZ/
 jBcUjSe0LdHUCUXh3sySBd1kluZ8br/8YPxLqDM5+hgUF8K3kgNMYuM8zECWmMRwIpqUhHS/J
 iCSBgW3
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 31915
Cc: 31915 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Markus Triska <triska@HIDDEN> writes:

> Since font-lock-mode is clearly enabled when the second "x" is inserted,
> I expect it to be highlighted. However, only the first "x" is highlighted.

"If overlays are used, the highlighting will not update as you type."
Do you want to clarify that this also applies to text that is inserted
without typing it?


Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#31915; Package emacs. Full text available.

Message received at 31915 <at> debbugs.gnu.org:


Received: (at 31915) by debbugs.gnu.org; 20 Jun 2018 17:07:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 20 13:07:59 2018
Received: from localhost ([127.0.0.1]:57915 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fVgaN-0004kP-8t
	for submit <at> debbugs.gnu.org; Wed, 20 Jun 2018 13:07:59 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46724)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1fVgaL-0004k8-D0
 for 31915 <at> debbugs.gnu.org; Wed, 20 Jun 2018 13:07:57 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1fVgaC-0000nz-9i
 for 31915 <at> debbugs.gnu.org; Wed, 20 Jun 2018 13:07:52 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58347)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1fVgaC-0000ns-6F; Wed, 20 Jun 2018 13:07:48 -0400
Received: from [176.228.60.248] (port=4295 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1fVgaB-0007Vb-N2; Wed, 20 Jun 2018 13:07:48 -0400
Date: Wed, 20 Jun 2018 20:07:51 +0300
Message-Id: <83a7rps7x4.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Markus Triska <triska@HIDDEN>
In-reply-to: <87a7rp5sre.fsf@HIDDEN> (message from Markus Triska on Wed, 
 20 Jun 2018 18:26:13 +0200)
Subject: Re: bug#31915: 26.0.50; highlight-regexp does not highlight regexp
References: <87a7rp5sre.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 31915
Cc: 31915 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

> From: Markus Triska <triska@HIDDEN>
> Date: Wed, 20 Jun 2018 18:26:13 +0200
> 
> Please invoke Emacs via:
> 
>     $ emacs -Q --eval "(let ((x \"x\"))                 \
>                          (find-file x)                  \
>                          (insert x)                     \
>                          (highlight-regexp x 'hi-green) \
>                          (when font-lock-mode (insert x)))"
> 
> The docstring of highlight-regexp states:
> 
>     Use Font lock mode, if enabled, to highlight REGEXP.  Otherwise,
>     use overlays for highlighting.  If overlays are used, the
>     highlighting will not update as you type.
> 
> Since font-lock-mode is clearly enabled when the second "x" is inserted,
> I expect it to be highlighted.

Actually, that buffer is in Fundamental mode, where there's no
font-lock.  Somehow, I suspect you already know that.

> Could you please adapt the docstring or, alternatively, highlight-regexp
> to match what is documented with what is observed?

Would it suffice to say "Note that in Fundamental mode, there's no
font lock, so overlays are always used"?  Or did you mean something
else?

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#31915; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Jun 2018 16:26:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 20 12:26:28 2018
Received: from localhost ([127.0.0.1]:57856 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fVfwC-0003jh-7z
	for submit <at> debbugs.gnu.org; Wed, 20 Jun 2018 12:26:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:35990)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <triska@HIDDEN>) id 1fVfwA-0003jU-LO
 for submit <at> debbugs.gnu.org; Wed, 20 Jun 2018 12:26:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <triska@HIDDEN>) id 1fVfw4-0002wl-Lo
 for submit <at> debbugs.gnu.org; Wed, 20 Jun 2018 12:26:21 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:52269)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <triska@HIDDEN>) id 1fVfw4-0002we-Hx
 for submit <at> debbugs.gnu.org; Wed, 20 Jun 2018 12:26:20 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:55187)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <triska@HIDDEN>) id 1fVfw3-0004k0-H4
 for bug-gnu-emacs@HIDDEN; Wed, 20 Jun 2018 12:26:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <triska@HIDDEN>) id 1fVfvz-0002tm-I6
 for bug-gnu-emacs@HIDDEN; Wed, 20 Jun 2018 12:26:19 -0400
Received: from hyperplane.at ([88.198.137.131]:32900)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <triska@HIDDEN>) id 1fVfvz-0002sq-Ac
 for bug-gnu-emacs@HIDDEN; Wed, 20 Jun 2018 12:26:15 -0400
Received: by hyperplane.at (Postfix, from userid 1000)
 id 0D04A10101C; Wed, 20 Jun 2018 18:26:13 +0200 (CEST)
From: Markus Triska <triska@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 26.0.50; highlight-regexp does not highlight regexp
Date: Wed, 20 Jun 2018 18:26:13 +0200
Message-ID: <87a7rp5sre.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)


Please invoke Emacs via:

    $ emacs -Q --eval "(let ((x \"x\"))                 \
                         (find-file x)                  \
                         (insert x)                     \
                         (highlight-regexp x 'hi-green) \
                         (when font-lock-mode (insert x)))"

The docstring of highlight-regexp states:

    Use Font lock mode, if enabled, to highlight REGEXP.  Otherwise,
    use overlays for highlighting.  If overlays are used, the
    highlighting will not update as you type.

Since font-lock-mode is clearly enabled when the second "x" is inserted,
I expect it to be highlighted. However, only the first "x" is highlighted.

Could you please adapt the docstring or, alternatively, highlight-regexp
to match what is documented with what is observed? Personally, I would
prefer that also the second "x" be highlighted in this case. Thank you!


In GNU Emacs 26.0.50.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw scroll bars)
 of 2016-10-21 built on my computer
Repository revision: 0929e061fb544c0f4c10ff0412a41cf7e8148270
System Description:	Debian GNU/Linux 9.3 (stretch)


Configured using:
 'configure --with-gif=no --with-tiff=no --with-gnutls=no'

Configured features:
XPM JPEG PNG SOUND NOTIFY FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID
X11





Acknowledgement sent to Markus Triska <triska@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#31915; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.