From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: [daniel@brockman.se: Emacs hangs when "foo\\|\\|bar" is in `font-lock-keywords'] Date: Tue, 28 Jun 2005 00:17:38 -0400 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1119933363 21075 80.91.229.2 (28 Jun 2005 04:36:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Jun 2005 04:36:03 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 28 06:35:52 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dn7oZ-0007pW-UX for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2005 06:35:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dn7wL-00055p-TG for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2005 00:43:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dn7pJ-0001U0-Rz for emacs-devel@gnu.org; Tue, 28 Jun 2005 00:36:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dn7p9-0001OG-AO for emacs-devel@gnu.org; Tue, 28 Jun 2005 00:35:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dn7p7-0001DS-8W for emacs-devel@gnu.org; Tue, 28 Jun 2005 00:35:49 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dn7dJ-0004YC-6K for emacs-devel@gnu.org; Tue, 28 Jun 2005 00:23:37 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Dn7XW-0000lP-3Q; Tue, 28 Jun 2005 00:17:38 -0400 Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:39734 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39734 You could describe this as user-error, but I think it might be easy to make Font Lock bulletproof against null-matches in the regexps, at least enough to avoid infinite loops. Could someone please look at this and ack to me? ------- Start of forwarded message ------- To: emacs-pretest-bug@gnu.org From: Daniel Brockman Date: Sun, 26 Jun 2005 22:54:51 +0200 Subject: Emacs hangs when "foo\\|\\|bar" is in `font-lock-keywords' Sender: emacs-pretest-bug-bounces+rms=gnu.org@gnu.org X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on monty-python X-Spam-Level: X-Spam-Status: No, hits=0.1 required=5.0 tests=RCVD_IN_SORBS autolearn=no version=2.63 Steps to reproduce: C-u 1 M-x font-lock-mode RET M-: (add-to-list 'font-lock-keywords "foo\\|\\|bar") RET M-x font-lock-fontify-buffer RET This causes Emacs to hang in a busy loop. In GNU Emacs 22.0.50.1 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2005-05-21 on wigwam, modified by Debian Distributor `The XFree86 Project, Inc', version 11.0.40300001 configured using `configure '--build' 'i386-linux' '--host' 'i386-linux' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--with-gif' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/22.0.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.0.50/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.0.50/leim' '--with-x=yes' '--with-x-toolkit=athena' '--with-toolkit-scroll-bars' 'CFLAGS=-DDEBIAN -g -O2' 'build_alias=i386-linux' 'host_alias=i386-linux'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Summary Minor modes in effect: display-time-mode: t erc-track-mode: t erc-truncate-mode: t erc-services-mode: t erc-ring-mode: t erc-pcomplete-mode: t erc-notify-mode: t erc-netsplit-mode: t erc-log-mode: t erc-fill-mode: t erc-stamp-mode: t erc-button-mode: t erc-autojoin-mode: t erc-smiley-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-readonly-mode: t minibuffer-electric-default-mode: t server-mode: t show-paren-mode: t mouse-wheel-mode: t tooltip-mode: t auto-compression-mode: t global-font-lock-mode: t font-lock-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t temp-buffer-resize-mode: t column-number-mode: t line-number-mode: t next-error-follow-minor-mode: Fol Recent input: t o SPC C-h C-h C-h C-h C-h C-h C-h C-h C-h C-h C-h C-h w h e r e t o SPC d r o p SPC r a n d o m SPC e l i s C-h C-h C-h C-h f i l e s SPC i n t C-h C-c g v C-x 1 M-x r e p o r RET Recent messages: Checking new news...done Type C-x 1 to remove help window. C-M-v to scroll the help. Retrieving newsgroup: gmane.emacs.devel... Loading gnus-ml...done Opening nntp server on news.gmane.org...done Fetching headers for gmane.emacs.devel...done Scoring...done Scoring...done Generating summary...done Loading emacsbug...done - -- Daniel Brockman So really, we all have to ask ourselves: Am I waiting for RMS to do this? --TTN. _______________________________________________ Emacs-pretest-bug mailing list Emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug ------- End of forwarded message -------