From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#26666: 26.0.50; Unused faces drop from hi-lock--unused-faces Date: Thu, 27 Apr 2017 12:04:36 +0900 Message-ID: <87fugur1ob.fsf@calancha-pc> References: <87inlr5ve6.fsf@calancha-pc> <871sse2538.fsf@localhost> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1493289816 27446 195.159.176.226 (27 Apr 2017 10:43:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Apr 2017 10:43:36 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: 26666-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 27 12:43:30 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 1d3gtI-000599-7G for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Apr 2017 12:43:16 +0200 Original-Received: from localhost ([::1]:58430 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3Zk1-0000pE-95 for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Apr 2017 23:05:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3Zjv-0000ms-4K for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 23:05:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3Zjr-00038O-A1 for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 23:05:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44001) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d3Zjr-00038H-6g for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 23:05:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d3Zjq-000756-O6 for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 23:05:02 -0400 Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Apr 2017 03:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 26666 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Mail-Followup-To: 26666@debbugs.gnu.org, tino.calancha@gmail.com, tino.calancha@gmail.com Original-Received: via spool by 26666-done@debbugs.gnu.org id=D26666.149326229127197 (code D ref 26666); Thu, 27 Apr 2017 03:05:02 +0000 Original-Received: (at 26666-done) by debbugs.gnu.org; 27 Apr 2017 03:04:51 +0000 Original-Received: from localhost ([127.0.0.1]:42200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3Zje-00074a-RI for submit@debbugs.gnu.org; Wed, 26 Apr 2017 23:04:50 -0400 Original-Received: from mail-pf0-f175.google.com ([209.85.192.175]:35038) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3Zjc-00074M-8G for 26666-done@debbugs.gnu.org; Wed, 26 Apr 2017 23:04:48 -0400 Original-Received: by mail-pf0-f175.google.com with SMTP id v14so12398845pfd.2 for <26666-done@debbugs.gnu.org>; Wed, 26 Apr 2017 20:04:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=/HAVvblfG6N203B6FXD9ff5rA5Kq8kX7kEhTtBOvMNM=; b=uw6S8+OpqSHSbJwbtvWAcfgb/H2LXg1V6dhradK305UZXhhxOQUmBvZyCW4EXFU2Mk Ete0pLYiNiIkLV+d2E9ZIdsgu3yl1iGichtb7FPQSOBw+cNDKGpTpOczHCthiHxusUQz 6lnCB4fEDSNQyRVmzq2BCwk91k5l02In7R2Cd+KNVWjvgXX3b6jFmSPWVbITUs7FYJ0s H/eBeeTx3Dcc6C4I2kh58UUard2mOcGf23ZYGT3S15Crm6VCguUTPjB0jR5bbcOAOXZ3 994ao2CMX5dS42E8HiKBBKiOCQiP+paFedMdUxizq8aGHk2PLNGxTnuBRRIzNzh2ow6J mcqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=/HAVvblfG6N203B6FXD9ff5rA5Kq8kX7kEhTtBOvMNM=; b=bmFPGHWrnVZ79gi+ZLgmaCgJEcsXC2gGftopadnQZQ5+ZoVZlB6Xr3kFxz4hTH03Sw KmSze9B6Fc0j3ZJYYSQ3qWRckscvV0AMAyhkFi6v+OTOVl9mYijRdtSviIUziB/Qrgq9 2/PoQI9O0tjawOCjVTjSK8oNlbaQC/87mth1ECRp9Y+PiQH1Mk+taIsxaYSA3Dq+xCT8 1dHhWYj62kt3yeWVNCbjj4zC3ntF5ZIvs3YaQwZ//y2fouovZoim98t/haohdZjkynd4 2HKlLjPLJIRYjrkmU1idHn2+0yx2IinQUZPD4rDRO9YHSVWrRhmbCq8ycAiLH1o7/JEc cUmQ== X-Gm-Message-State: AN3rC/5KmJwUQ0VP9L+Phh4vXynm44QfLuk9BGynovrGAG1lOiUdmTeT HOTG608iGzkglZ6r X-Received: by 10.98.92.2 with SMTP id q2mr3369705pfb.244.1493262281793; Wed, 26 Apr 2017 20:04:41 -0700 (PDT) Original-Received: from calancha-pc (222.139.137.133.dy.bbexcite.jp. [133.137.139.222]) by smtp.gmail.com with ESMTPSA id a77sm1093416pfe.33.2017.04.26.20.04.39 for <26666-done@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 Apr 2017 20:04:40 -0700 (PDT) In-Reply-To: <871sse2538.fsf@localhost> (Juri Linkov's message of "Thu, 27 Apr 2017 01:07:27 +0300") 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:132048 Archived-At: Juri Linkov writes: >> 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. Pushed fix into master branch as commit 9af2ecc36d1d15bb63fb6b28a9b5baa6990f79b8