From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#31915: 26.0.50; highlight-regexp does not highlight regexp Date: Wed, 20 Jun 2018 20:07:51 +0300 Message-ID: <83a7rps7x4.fsf@gnu.org> References: <87a7rp5sre.fsf@metalevel.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1529514369 20491 195.159.176.226 (20 Jun 2018 17:06:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 20 Jun 2018 17:06:09 +0000 (UTC) Cc: 31915@debbugs.gnu.org To: Markus Triska Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 20 19:06:05 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 1fVgYT-00059s-Ec for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Jun 2018 19:06:01 +0200 Original-Received: from localhost ([::1]:50939 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVgaa-0003zn-OD for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Jun 2018 13:08:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVgaU-0003zi-DV for bug-gnu-emacs@gnu.org; Wed, 20 Jun 2018 13:08:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVgaQ-0000su-AP for bug-gnu-emacs@gnu.org; Wed, 20 Jun 2018 13:08:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50018) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fVgaQ-0000so-6L for bug-gnu-emacs@gnu.org; Wed, 20 Jun 2018 13:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fVgaP-0004kf-VL for bug-gnu-emacs@gnu.org; Wed, 20 Jun 2018 13:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Jun 2018 17:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31915-submit@debbugs.gnu.org id=B31915.152951447918257 (code B ref 31915); Wed, 20 Jun 2018 17:08:01 +0000 Original-Received: (at 31915) by debbugs.gnu.org; 20 Jun 2018 17:07:59 +0000 Original-Received: from localhost ([127.0.0.1]:57915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVgaN-0004kP-8t for submit@debbugs.gnu.org; Wed, 20 Jun 2018 13:07:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46724) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVgaL-0004k8-D0 for 31915@debbugs.gnu.org; Wed, 20 Jun 2018 13:07:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVgaC-0000nz-9i for 31915@debbugs.gnu.org; Wed, 20 Jun 2018 13:07:52 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVgaC-0000ns-6F; Wed, 20 Jun 2018 13:07:48 -0400 Original-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 ) id 1fVgaB-0007Vb-N2; Wed, 20 Jun 2018 13:07:48 -0400 In-reply-to: <87a7rp5sre.fsf@metalevel.at> (message from Markus Triska on Wed, 20 Jun 2018 18:26:13 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:147665 Archived-At: > From: Markus Triska > 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.