From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#5373: Example in font-lock-add-keywords should use shy subgroup Date: Wed, 13 Jan 2010 10:18:08 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1263395975 10797 80.91.229.12 (13 Jan 2010 15:19:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Jan 2010 15:19:35 +0000 (UTC) Cc: 5373@debbugs.gnu.org To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 13 16:19:28 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NV50J-0002LK-Kl for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jan 2010 16:19:28 +0100 Original-Received: from localhost ([127.0.0.1]:45843 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NV50K-0007w0-5J for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jan 2010 10:19:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NV50D-0007uS-0Y for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2010 10:19:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NV508-0007qQ-0e for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2010 10:19:20 -0500 Original-Received: from [199.232.76.173] (port=35864 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NV507-0007q6-OO for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2010 10:19:15 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38356) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NV505-0004ty-Gw for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2010 10:19:13 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NV4zu-0002ZQ-Ua; Wed, 13 Jan 2010 10:19:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jan 2010 15:19:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5373 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5373-submit@debbugs.gnu.org id=B5373.12633958969847 (code B ref 5373); Wed, 13 Jan 2010 15:19:02 +0000 Original-Received: (at 5373) by debbugs.gnu.org; 13 Jan 2010 15:18:16 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NV4z9-0002Ym-7a for submit@debbugs.gnu.org; Wed, 13 Jan 2010 10:18:15 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NV4z7-0002Ye-J6 for 5373@debbugs.gnu.org; Wed, 13 Jan 2010 10:18:13 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhoFAPZyTUvO+KPG/2dsb2JhbACBRNVohDAEijI X-IronPort-AV: E=Sophos;i="4.49,268,1262581200"; d="scan'208";a="53669887" Original-Received: from 206-248-163-198.dsl.teksavvy.com (HELO pastel.home) ([206.248.163.198]) by ironport2-out.pppoe.ca with ESMTP; 13 Jan 2010 10:18:08 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 6BBFD806E; Wed, 13 Jan 2010 10:18:08 -0500 (EST) In-Reply-To: (Lennart Borgman's message of "Wed, 13 Jan 2010 11:26:03 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -2.1 (--) Resent-Date: Wed, 13 Jan 2010 10:19:02 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:34272 Archived-At: > Should not the second regexp in > (font-lock-add-keywords 'c-mode > '(("\\<\\(FIXME\\):" 1 font-lock-warning-face prepend) > ("\\<\\(and\\|or\\|not\\)\\>" . font-lock-keyword-face))) > use a shy subgroup like in > (font-lock-add-keywords 'c-mode > '(("\\<\\(FIXME\\):" 1 font-lock-warning-face prepend) > ("\\<\\(?:and\\|or\\|not\\)\\>" . font-lock-keyword-face))) It could. But the use of a normal group is harmless. Stefan