From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#5373: Example in font-lock-add-keywords should use shy subgroup Date: Wed, 13 Jan 2010 11:26:03 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1263379863 18641 80.91.229.12 (13 Jan 2010 10:51:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Jan 2010 10:51:03 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 13 11:50:55 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 1NV0oM-0004nU-Ut for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jan 2010 11:50:54 +0100 Original-Received: from localhost ([127.0.0.1]:59185 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NV0oI-0007zu-Ta for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jan 2010 05:50:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NV0n2-0007gj-CC for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2010 05:49:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NV0mx-0007ex-Dv for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2010 05:49:27 -0500 Original-Received: from [199.232.76.173] (port=52857 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NV0mx-0007et-1P for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2010 05:49:23 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41095) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NV0mw-0002fC-Nf for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2010 05:49:22 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NV0RJ-0006S2-O8; Wed, 13 Jan 2010 05:27:01 -0500 X-Loop: bug-gnu-emacs@gnu.org Mail-Followup-To: Lennart Borgman , 5373@debbugs.gnu.org Resent-From: Lennart Borgman 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 10:27:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5373 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.126337839224776 (code B ref -1); Wed, 13 Jan 2010 10:27:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Jan 2010 10:26:32 +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 1NV0Qp-0006RX-B5 for submit@debbugs.gnu.org; Wed, 13 Jan 2010 05:26:31 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NV0Qo-0006RN-CS for submit@debbugs.gnu.org; Wed, 13 Jan 2010 05:26:30 -0500 Original-Received: from mail.gnu.org ([199.232.76.166]:36203 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NV0Ql-0002nH-63 for emacs-pretest-bug@gnu.org; Wed, 13 Jan 2010 05:26:27 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NV0Qj-0005Tn-QA for emacs-pretest-bug@gnu.org; Wed, 13 Jan 2010 05:26:26 -0500 Original-Received: from fg-out-1718.google.com ([72.14.220.153]:19488) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NV0Qi-0005Sx-8n for emacs-pretest-bug@gnu.org; Wed, 13 Jan 2010 05:26:24 -0500 Original-Received: by fg-out-1718.google.com with SMTP id l26so50380fgb.12 for ; Wed, 13 Jan 2010 02:26:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=aSPr1sfSC2NN+C6UfraoHlRbPGeBEUF3f78oNbtQLQA=; b=MDNogatVxGXBrQW90yNuo3mUZOuqjXn0OhlHj7AcmaKx/U6ERWSBRd1oUHJKRjrTOX 4vqH+gFkgghazBeEEtu2apUTCf61IjHfDk0OeN5Rzo7dLqiJix83uFiREfI5Q/w8z/Aa We87xVNXwNj1V+P0kzojxXQRI6SEXCSvKJDRo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=rWJ3zW2+0lGZgKux628Z2cCnnU37qfVV2wVHMOIIKZ3tEC/yXiaAP8lW2hgtiyCyHI C07IPcPDA3HJJf/K2zhzMpJD7pY3Et697YRkryios2m4QU25E5gFs8jL8TIIvtHfonGb byBTTXWow6aGygTP2qA2KwSlZsHRZU95S2YNU= Original-Received: by 10.239.187.208 with SMTP id m16mr1185325hbh.152.1263378383121; Wed, 13 Jan 2010 02:26:23 -0800 (PST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -4.3 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -4.4 (----) Resent-Date: Wed, 13 Jan 2010 05:27:01 -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:34265 gmane.emacs.pretest.bugs:25384 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))) Same problem with the second example.