From unknown Sat Aug 16 13:47:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6343: Log-edit font lock changes lead to loop Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: dann@ics.uci.edu, bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Jun 2010 17:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6343 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 6343@debbugs.gnu.org Cc: Dan Nicolaescu X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: Dan Nicolaescu Received: via spool by submit@debbugs.gnu.org id=B.12755854841388 (code B ref -1); Thu, 03 Jun 2010 17:19:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Jun 2010 17:18:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKE3Q-0000ML-01 for submit@debbugs.gnu.org; Thu, 03 Jun 2010 13:18:04 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKE3O-0000Ly-4j for submit@debbugs.gnu.org; Thu, 03 Jun 2010 13:18:02 -0400 Received: from lists.gnu.org ([199.232.76.165]:52624) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OKE3J-00071D-7G for submit@debbugs.gnu.org; Thu, 03 Jun 2010 13:17:57 -0400 Received: from [140.186.70.92] (port=45438 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKE3G-0000Fr-NY for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2010 13:17:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OKE3F-0003ZS-HN for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2010 13:17:54 -0400 Received: from pantheon-po41.its.yale.edu ([130.132.50.98]:49680) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKE3F-0003Z2-FC for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2010 13:17:53 -0400 Received: from furry (dhcp128036014059.central.yale.edu [128.36.14.59]) (authenticated bits=0) by pantheon-po41.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o53HHq4W008515 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 3 Jun 2010 13:17:52 -0400 Received: by furry (Postfix, from userid 1000) id A418D16D427; Thu, 3 Jun 2010 13:17:52 -0400 (EDT) From: Chong Yidong Date: Thu, 03 Jun 2010 13:17:52 -0400 Message-ID: <874ohk5933.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.7 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.7 (----) I had the following text in my kill ring: * cedet/semantic/lex-spp.el (semantic-lex-spp-table-write-slot-value): Instead of erroring on invalid values during save, just save a nil (Bug#6324). >From VC-dir, I marked some files and typed "v" to commit them. In the log edit buffer, I type "C-y" to attempt to yank into the buffer. Emacs became unresponsive to all keyboard input. According to the debugger, Emacs is looping on `jit-lock-fontify-now'. If I revert the following change, the problem goes away. 22010-06-02 Dan Nicolaescu * log-edit.el (log-edit-font-lock-keywords): Make group 4 match lax. This is on an up-to-date trunk build: GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-06-03 on furry From unknown Sat Aug 16 13:47:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6343: Log-edit font lock changes lead to loop Resent-From: Dan Nicolaescu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Jun 2010 17:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6343 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Chong Yidong Cc: 6343@debbugs.gnu.org Received: via spool by 6343-submit@debbugs.gnu.org id=B6343.12755866181935 (code B ref 6343); Thu, 03 Jun 2010 17:37:02 +0000 Received: (at 6343) by debbugs.gnu.org; 3 Jun 2010 17:36:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKELh-0000VA-Q8 for submit@debbugs.gnu.org; Thu, 03 Jun 2010 13:36:57 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKELf-0000V5-V4 for 6343@debbugs.gnu.org; Thu, 03 Jun 2010 13:36:56 -0400 Received: from dann by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OKELa-0001b3-I1; Thu, 03 Jun 2010 13:36:50 -0400 References: <874ohk5933.fsf@stupidchicken.com> From: Dan Nicolaescu Date: Thu, 03 Jun 2010 13:36:50 -0400 In-Reply-To: <874ohk5933.fsf@stupidchicken.com> (Chong Yidong's message of "Thu\, 03 Jun 2010 13\:17\:52 -0400") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.5 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) Chong Yidong writes: > I had the following text in my kill ring: > > * cedet/semantic/lex-spp.el > (semantic-lex-spp-table-write-slot-value): Instead of erroring on > invalid values during save, just save a nil (Bug#6324). > > From VC-dir, I marked some files and typed "v" to commit them. In the > log edit buffer, I type "C-y" to attempt to yank into the buffer. Emacs > became unresponsive to all keyboard input. According to the debugger, > Emacs is looping on `jit-lock-fontify-now'. > > > If I revert the following change, the problem goes away. > > 22010-06-02 Dan Nicolaescu > > * log-edit.el (log-edit-font-lock-keywords): Make group 4 match lax. The motivation for the above change was that the *Messages* would get a lot of errors of the form: (from memory, so the wording is not exactly this) Error in redisplay, could not match (4 font-lock-warning-face) From unknown Sat Aug 16 13:47:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6343: Log-edit font lock changes lead to loop Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Jun 2010 01:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6343 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Chong Yidong Cc: 6343@debbugs.gnu.org, Dan Nicolaescu Received: via spool by 6343-submit@debbugs.gnu.org id=B6343.12756156808351 (code B ref 6343); Fri, 04 Jun 2010 01:42:02 +0000 Received: (at 6343) by debbugs.gnu.org; 4 Jun 2010 01:41:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKLuR-0002Ae-Va for submit@debbugs.gnu.org; Thu, 03 Jun 2010 21:41:20 -0400 Received: from mail-bw0-f44.google.com ([209.85.214.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKLuQ-0002AT-Rq for 6343@debbugs.gnu.org; Thu, 03 Jun 2010 21:41:19 -0400 Received: by bwz6 with SMTP id 6so251393bwz.3 for <6343@debbugs.gnu.org>; Thu, 03 Jun 2010 18:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=d4of80H5t65yzTX/ywBbaldFfnivW7jfKyHmTUZ5vB8=; b=asS5GuOrk/Nr74z6R21guBeRCz2H+er/0D5QJdguD2u1jSyV4Z2bmOGHzD7Tqy4JaB TAJ4oOHTYwMebzj+BmP3j+YChddLRBrvaCQXhNvFX+koqZURGCAD27uwenTw14LdZkAb BttEDbEM4dwHS2nYjCfqzGiEjUndnWpl1uC5M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=q6OXrmWXBJuSPd2GdDTc4mrG/cFL5tO2xkapCzHW1/YlNyYJNBdjg5ldhU1b+0TH5P HLX/2SfUbqt3ZsbOroJtxoK1iNxhyCJUN4RBGGcyGE00DNEApalvuC1Nb/v/poRQCvjZ t1ferR5sbtsrFYOI+zi88fA6fS8JQWFq2PDzg= Received: by 10.204.79.206 with SMTP id q14mr3491404bkk.30.1275615674300; Thu, 03 Jun 2010 18:41:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.32.18 with HTTP; Thu, 3 Jun 2010 18:40:54 -0700 (PDT) In-Reply-To: <874ohk5933.fsf@stupidchicken.com> References: <874ohk5933.fsf@stupidchicken.com> From: Juanma Barranquero Date: Fri, 4 Jun 2010 03:40:54 +0200 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.8 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) On Thu, Jun 3, 2010 at 19:17, Chong Yidong wrote: > In the > log edit buffer, I type "C-y" to attempt to yank into the buffer. =C2=A0E= macs > became unresponsive to all keyboard input. I've seen the same problem just by typing bla bla blah then moving the point to the beginning of line and trying to add "somefile: ", i.e. somefile[ ]blah blah blah [ ] marks the point. Emacs blocks when trying to type `:'. > If I revert the following change, the problem goes away. Same here. Juanma From unknown Sat Aug 16 13:47:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6343: Log-edit font lock changes lead to loop 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: Fri, 04 Jun 2010 02:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6343 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juanma Barranquero Cc: 6343@debbugs.gnu.org, Chong Yidong , Dan Nicolaescu Received: via spool by 6343-submit@debbugs.gnu.org id=B6343.127561759310603 (code B ref 6343); Fri, 04 Jun 2010 02:14:01 +0000 Received: (at 6343) by debbugs.gnu.org; 4 Jun 2010 02:13:13 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKMPJ-0002kx-6k for submit@debbugs.gnu.org; Thu, 03 Jun 2010 22:13:13 -0400 Received: from mail-gy0-f172.google.com ([209.85.160.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKMPH-0002kn-B7 for 6343@debbugs.gnu.org; Thu, 03 Jun 2010 22:13:11 -0400 Received: by gyh4 with SMTP id 4so574136gyh.3 for <6343@debbugs.gnu.org>; Thu, 03 Jun 2010 19:13:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=od0Fnqs+hkIiLpuMnU1nXL2Akq4fBSU0IUyUSS95eZM=; b=eAM+OTe/pYRYOFt07qLii5O6924pvs/kNGd8k2rtra9z5E3iUlm3HfTc7wViHKIDtr FLncyTM4vP4QvJENkhY1oK7USH2FO+9WhhHn5srN5IoBYKMfjdWJn2ruo4VR4LaftuZR MNJz8lexOtqtmjzbxJcu5TX5yhEAo5rCawF8U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=wmsxmMdvW7alARAnCJkaB2stIspOI/wymueRwjNfYz+Xkz7aS6q2oLuQNfRTbHT9OQ ekK6kJm0GmR75f7NpjDO1fP6lhAHiB2iRCSFyBHxzYqYpnrN9UzH/UL69NdQAkeVYjb/ dsFWaDqcu2swAEoyKdu5ReGo5VK6eNROwNqYc= Received: by 10.101.207.12 with SMTP id j12mr11148905anq.250.1275617587304; Thu, 03 Jun 2010 19:13:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.154.15 with HTTP; Thu, 3 Jun 2010 19:12:47 -0700 (PDT) In-Reply-To: References: <874ohk5933.fsf@stupidchicken.com> From: Lennart Borgman Date: Fri, 4 Jun 2010 04:12:47 +0200 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On Fri, Jun 4, 2010 at 3:40 AM, Juanma Barranquero wrote= : > On Thu, Jun 3, 2010 at 19:17, Chong Yidong wrote: > >> In the >> log edit buffer, I type "C-y" to attempt to yank into the buffer. =C2=A0= Emacs >> became unresponsive to all keyboard input. > > I've seen the same problem just by typing A little bit off-topic: you mean you can't even stop with C-g? How do you normally handle that? (I put some limit on all font lock loops in my code ... ;-) ) From unknown Sat Aug 16 13:47:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6343: Log-edit font lock changes lead to loop Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Jun 2010 10:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6343 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lennart Borgman Cc: 6343@debbugs.gnu.org, Chong Yidong , Dan Nicolaescu Received: via spool by 6343-submit@debbugs.gnu.org id=B6343.127564652628797 (code B ref 6343); Fri, 04 Jun 2010 10:16:02 +0000 Received: (at 6343) by debbugs.gnu.org; 4 Jun 2010 10:15:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKTvy-0007UQ-Gq for submit@debbugs.gnu.org; Fri, 04 Jun 2010 06:15:26 -0400 Received: from fg-out-1718.google.com ([72.14.220.153]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKTvw-0007UL-T8 for 6343@debbugs.gnu.org; Fri, 04 Jun 2010 06:15:25 -0400 Received: by fg-out-1718.google.com with SMTP id d23so53857fga.15 for <6343@debbugs.gnu.org>; Fri, 04 Jun 2010 03:15:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=34jtByGKpOCqu4trp38u1yEqQQO9wkTZSHKBCnumEo8=; b=SIBlBErQ9jU3XaOTWLq31Y6bWokai+sjlw5Zf75PLsLbggJYQOo6IPA0kl/eakxtj/ LzgYKExPYuAlmojJN93MOBkM9tQViQ7K8AzGlJIlDLPkC60e8BIqlvX+57uhN3/xOlvW l2O8KgetSrBjCWAkz/t/pj6NztuWwY9HzTk4w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=lsUJJMlFxH1rtn/NeWdPVStxdo3mhr7ME/r9OVocT/vm9AFdqrGO2b4HN3sSFDR6bl BBzDbRcwjTSg/O6UAMViBqyN+7IAKgqxLuPFgiZlICv5JZPos9lnXgU6HpE2VFHhjy3R V9AZvlF+9pv7uPJk3d6Iff3uQQfyOL6Fv30bM= Received: by 10.204.73.202 with SMTP id r10mr3845682bkj.135.1275646521163; Fri, 04 Jun 2010 03:15:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.32.18 with HTTP; Fri, 4 Jun 2010 03:15:01 -0700 (PDT) In-Reply-To: References: <874ohk5933.fsf@stupidchicken.com> From: Juanma Barranquero Date: Fri, 4 Jun 2010 12:15:01 +0200 Message-ID: Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.2 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.2 (--) On Fri, Jun 4, 2010 at 04:12, Lennart Borgman wrote: > A little bit off-topic: you mean you can't even stop with C-g? C-g acts weird. It stops, sort of, but then moving around makes Emacs loop again. > How do you normally handle that? (I put some limit on all font lock > loops in my code ... ;-) ) You'll have to be a bit more specific. Juanma From unknown Sat Aug 16 13:47:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6343: Log-edit font lock changes lead to loop 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: Fri, 04 Jun 2010 10:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6343 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juanma Barranquero Cc: 6343@debbugs.gnu.org, Chong Yidong , Dan Nicolaescu Received: via spool by 6343-submit@debbugs.gnu.org id=B6343.127564768329370 (code B ref 6343); Fri, 04 Jun 2010 10:35:02 +0000 Received: (at 6343) by debbugs.gnu.org; 4 Jun 2010 10:34:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKUEd-0007df-BO for submit@debbugs.gnu.org; Fri, 04 Jun 2010 06:34:43 -0400 Received: from mail-yx0-f172.google.com ([209.85.213.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKUEb-0007da-5c for 6343@debbugs.gnu.org; Fri, 04 Jun 2010 06:34:41 -0400 Received: by yxt33 with SMTP id 33so439590yxt.3 for <6343@debbugs.gnu.org>; Fri, 04 Jun 2010 03:34:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=SusEhK+7DMvuvYioUv/gcjefH7h/+pdNZ7B6RgDQwFY=; b=vvTRNDnQ230AAgb6Uf9g8txOpv6cA0fyja14h3tR7c7pX4AnNfob5LP5i4CbmADJO/ kaVuGt/HXHD+K4gP4og6lq7pZNKEilwlUndIfVKc+8xvBxQv5vsZlxGomue36wM/63Cu 8MT5Ymo7TfIOr5YXLx5Ase3ksYlMKZeIffnhQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=Ju9bIgPxjXG0NxnUn/lz80v/xdI7uzMeZo+gFBiathiPa23PzQ8tu1zvygH2svzo9l 1c0usSXckw3Jdeq/v2cwVMUAQc8xUlie3QdHRwyfWkin9Ri4WrILzeO45RQkdHYUugxI 8RW+OwlVsJp62e+f4LInDCfuXb4blMYER8jgQ= Received: by 10.101.207.12 with SMTP id j12mr11645722anq.250.1275647675204; Fri, 04 Jun 2010 03:34:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.154.15 with HTTP; Fri, 4 Jun 2010 03:34:15 -0700 (PDT) In-Reply-To: References: <874ohk5933.fsf@stupidchicken.com> From: Lennart Borgman Date: Fri, 4 Jun 2010 12:34:15 +0200 Message-ID: Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On Fri, Jun 4, 2010 at 12:15 PM, Juanma Barranquero wrote: > On Fri, Jun 4, 2010 at 04:12, Lennart Borgman wrote: > >> A little bit off-topic: you mean you can't even stop with C-g? > > C-g acts weird. It stops, sort of, but then moving around makes Emacs > loop again. I did not notice that it stops first. Strange. >> How do you normally handle that? (I put some limit on all font lock >> loops in my code ... ;-) ) > > You'll have to be a bit more specific. I just do something like this in case I make a stupid error somewhere: (defsubst visual-indent-while (limit counter where) (let ((count (symbol-value counter))) (if (= count limit) (progn (message "Reached (while limit=%s, where=%s)" limit where) nil) (set counter (1+ count))))) (while (and (visual-indent-while 200 'n-while "visual-indent-jit-lock-fun") (< (point) bound)) ;; Max bound = (point-max) From unknown Sat Aug 16 13:47:24 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Chong Yidong Subject: bug#6343: closed (Re: bug#6343: Log-edit font lock changes lead to loop) Message-ID: References: <874ohk5933.fsf@stupidchicken.com> X-Gnu-PR-Message: they-closed 6343 X-Gnu-PR-Package: emacs Reply-To: 6343@debbugs.gnu.org Date: Tue, 12 Jul 2011 08:11:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1310458262-3269-1" This is a multi-part message in MIME format... ------------=_1310458262-3269-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #6343: Log-edit font lock changes lead to loop which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 6343@debbugs.gnu.org. --=20 6343: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D6343 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1310458262-3269-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 6343-done) by debbugs.gnu.org; 12 Jul 2011 08:10:13 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgY2n-0000pd-0C for submit@debbugs.gnu.org; Tue, 12 Jul 2011 04:10:13 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgY2k-0000pQ-PN for 6343-done@debbugs.gnu.org; Tue, 12 Jul 2011 04:10:11 -0400 Received: from localhost ([127.0.0.1]:34452) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgY2d-0000rZ-Mv; Tue, 12 Jul 2011 04:10:03 -0400 From: Glenn Morris To: 6343-done@debbugs.gnu.org Subject: Re: bug#6343: Log-edit font lock changes lead to loop References: <874ohk5933.fsf@stupidchicken.com> X-Spook: halcon Vickie Weaver Clinton SCUD missile Treasury George X-Ran: 2CZBjaBK=N"o\*|>r4tRZRvC`t$SY:Nf:nPmU*?`=b;"qMra/(kcBLy X-Hue: cyan X-Attribution: GM Date: Tue, 12 Jul 2011 04:10:03 -0400 In-Reply-To: (Juanma Barranquero's message of "Fri, 4 Jun 2010 12:15:01 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 6343-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) Looks like this was fixed by your 2010-06-12 change to log-edit. ------------=_1310458262-3269-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 Jun 2010 17:18:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKE3Q-0000ML-01 for submit@debbugs.gnu.org; Thu, 03 Jun 2010 13:18:04 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKE3O-0000Ly-4j for submit@debbugs.gnu.org; Thu, 03 Jun 2010 13:18:02 -0400 Received: from lists.gnu.org ([199.232.76.165]:52624) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OKE3J-00071D-7G for submit@debbugs.gnu.org; Thu, 03 Jun 2010 13:17:57 -0400 Received: from [140.186.70.92] (port=45438 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKE3G-0000Fr-NY for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2010 13:17:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OKE3F-0003ZS-HN for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2010 13:17:54 -0400 Received: from pantheon-po41.its.yale.edu ([130.132.50.98]:49680) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKE3F-0003Z2-FC for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2010 13:17:53 -0400 Received: from furry (dhcp128036014059.central.yale.edu [128.36.14.59]) (authenticated bits=0) by pantheon-po41.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o53HHq4W008515 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 3 Jun 2010 13:17:52 -0400 Received: by furry (Postfix, from userid 1000) id A418D16D427; Thu, 3 Jun 2010 13:17:52 -0400 (EDT) From: Chong Yidong To: bug-gnu-emacs@gnu.org Subject: Log-edit font lock changes lead to loop X-Debbugs-CC: Dan Nicolaescu Date: Thu, 03 Jun 2010 13:17:52 -0400 Message-ID: <874ohk5933.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.7 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.7 (----) I had the following text in my kill ring: * cedet/semantic/lex-spp.el (semantic-lex-spp-table-write-slot-value): Instead of erroring on invalid values during save, just save a nil (Bug#6324). >From VC-dir, I marked some files and typed "v" to commit them. In the log edit buffer, I type "C-y" to attempt to yank into the buffer. Emacs became unresponsive to all keyboard input. According to the debugger, Emacs is looping on `jit-lock-fontify-now'. If I revert the following change, the problem goes away. 22010-06-02 Dan Nicolaescu * log-edit.el (log-edit-font-lock-keywords): Make group 4 match lax. This is on an up-to-date trunk build: GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-06-03 on furry ------------=_1310458262-3269-1--