From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2B01A139694 for ; Fri, 7 Apr 2017 17:11:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 22118E082B; Fri, 7 Apr 2017 17:11:07 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 01FE1E082B for ; Fri, 7 Apr 2017 17:11:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9B8D834167A for ; Fri, 7 Apr 2017 17:11:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0B62773FE for ; Fri, 7 Apr 2017 17:11:04 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1491583684.3451d7ab62b52cdf5c6d069c22ceceaf69c5b218.ulm@gentoo> Subject: [gentoo-commits] proj/emacs-tools:ebuild-mode commit in: / X-VCS-Repository: proj/emacs-tools X-VCS-Files: ChangeLog ebuild-mode.el X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 3451d7ab62b52cdf5c6d069c22ceceaf69c5b218 X-VCS-Branch: ebuild-mode Date: Fri, 7 Apr 2017 17:11:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 27574b60-7726-42a0-8c34-eafdf1c05a8f X-Archives-Hash: 8384ab396978fed06230e040ee2c399c commit: 3451d7ab62b52cdf5c6d069c22ceceaf69c5b218 Author: Ulrich Müller gentoo org> AuthorDate: Fri Apr 7 16:48:04 2017 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Fri Apr 7 16:48:04 2017 +0000 URL: https://gitweb.gentoo.org/proj/emacs-tools.git/commit/?id=3451d7ab Call regexp-opt without duplicates in its argument list. * ebuild-mode.el (ebuild-mode-make-keywords-list): Call regexp-opt without duplicates in its argument list. ChangeLog | 5 +++++ ebuild-mode.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5dc7fe2..4cd3357 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-04-07 Ulrich Müller + + * ebuild-mode.el (ebuild-mode-make-keywords-list): Call regexp-opt + without duplicates in its argument list. + 2017-03-31 Ulrich Müller * ebuild-mode.el (ebuild-mode-before-save): diff --git a/ebuild-mode.el b/ebuild-mode.el index d24355b..cdd06ef 100644 --- a/ebuild-mode.el +++ b/ebuild-mode.el @@ -213,7 +213,7 @@ of lines." (error "Keywords argument must be a list of strings")) (cons (concat prefix "\\<" (let ((max-specpdl-size (max max-specpdl-size 2000))) - (regexp-opt keywords-list t)) + (regexp-opt (delete-dups keywords-list) t)) "\\>" suffix) face))