From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: Re: Font-lock should ignore missing submatches Date: Mon, 04 Feb 2008 00:12:19 -0500 Message-ID: <87lk61joek.fsf@stupidchicken.com> References: <20080203203056.0DDA72BFE5@sarg.kollektiv-hamburg.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202101984 17719 80.91.229.12 (4 Feb 2008 05:13:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Feb 2008 05:13:04 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 04 06:13:26 2008 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 1JLte0-0006Mp-IB for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Feb 2008 06:13:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLtdY-0002h5-9m for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Feb 2008 00:12:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JLtdT-0002dA-8V for bug-gnu-emacs@gnu.org; Mon, 04 Feb 2008 00:12:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JLtdS-0002ct-IT for bug-gnu-emacs@gnu.org; Mon, 04 Feb 2008 00:12:50 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLtdS-0002cl-Ab for bug-gnu-emacs@gnu.org; Mon, 04 Feb 2008 00:12:50 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JLtdS-0004Pg-Fo for bug-gnu-emacs@gnu.org; Mon, 04 Feb 2008 00:12:50 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JLtdN-000525-O3 for bug-gnu-emacs@gnu.org; Mon, 04 Feb 2008 05:12:45 +0000 Original-Received: from cyd.mit.edu ([18.115.2.24]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Feb 2008 05:12:45 +0000 Original-Received: from cyd by cyd.mit.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Feb 2008 05:12:45 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 14 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cyd.mit.edu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.90 (gnu/linux) Cancel-Lock: sha1:z35utxhWplMMEWG1b/0oYAJliBo= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:17466 Archived-At: Jorgen Schaefer writes: > When using font-lock-mode to highlight complex expressions, the > font locking engine crashes when one of the subexpressions > specified was not matched. The engine doesn't "crash"; it signals an error, and Emacs continues to function. This is the intended behavior. > Is there any chance to make font-lock just ignore unmatched > subexpressions? Yes. See the LAXMATCH option in the node Customizing Keywords in the Emacs Lisp Reference Manual.