From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#26666: 26.0.50; Unused faces drop from hi-lock--unused-faces Date: Thu, 27 Apr 2017 01:07:27 +0300 Organization: LINKOV.NET Message-ID: <871sse2538.fsf@localhost> References: <87inlr5ve6.fsf@calancha-pc> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1493244796 20852 195.159.176.226 (26 Apr 2017 22:13:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 26 Apr 2017 22:13:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (x86_64-pc-linux-gnu) Cc: 26666@debbugs.gnu.org To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 27 00:13:13 2017 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 1d3VBO-0005HE-QM for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Apr 2017 00:13:10 +0200 Original-Received: from localhost ([::1]:57355 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3VBU-0001sC-KD for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Apr 2017 18:13:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3VBL-0001rf-M0 for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 18:13:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3VBG-0005Fz-Vj for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 18:13:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43915) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d3VBG-0005Fj-Sd for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 18:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d3VBG-00007g-ND for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 18:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Apr 2017 22:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26666 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 26666-submit@debbugs.gnu.org id=B26666.1493244776446 (code B ref 26666); Wed, 26 Apr 2017 22:13:02 +0000 Original-Received: (at 26666) by debbugs.gnu.org; 26 Apr 2017 22:12:56 +0000 Original-Received: from localhost ([127.0.0.1]:42113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3VB9-000077-R5 for submit@debbugs.gnu.org; Wed, 26 Apr 2017 18:12:55 -0400 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:42889 helo=homiemail-a11.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3VB7-00006s-1L for 26666@debbugs.gnu.org; Wed, 26 Apr 2017 18:12:53 -0400 Original-Received: from homiemail-a11.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a11.g.dreamhost.com (Postfix) with ESMTP id 334B1314C069; Wed, 26 Apr 2017 15:12:52 -0700 (PDT) Original-Received: from localhost.linkov.net (m83-179-141-227.cust.tele2.ee [83.179.141.227]) (Authenticated sender: jurta@jurta.org) by homiemail-a11.g.dreamhost.com (Postfix) with ESMTPA id 1CC64314C066; Wed, 26 Apr 2017 15:12:50 -0700 (PDT) In-Reply-To: <87inlr5ve6.fsf@calancha-pc> (Tino Calancha's message of "Wed, 26 Apr 2017 19:13:37 +0900") 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:132037 Archived-At: > emacs -Q > M-s hr t RET RET > M-s hr t RET RET ; Already highlighted > M-s hr f RET RET ; Should offer hi-pink face, but it offers hi-green. > > From 287bff616ef715c54628fba5c6db95b878f1519f Mon Sep 17 00:00:00 2001 > From: Tino Calancha > Date: Wed, 26 Apr 2017 19:06:47 +0900 > Subject: [PATCH] Drop face from hi-lock--unused-faces only when used > > * lisp/hi-lock.el (hi-lock-set-pattern): If REGEXP is > already highlighted, then push FACE into hi-lock--unused-faces. > * test/lisp/hi-lock-tests.el (hi-lock-bug26666): Add test. Thanks, this solves a long-standing problem.