all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#6343: Log-edit font lock changes lead to loop
@ 2010-06-03 17:17 Chong Yidong
  2010-06-03 17:36 ` Dan Nicolaescu
  2010-06-04  1:40 ` Juanma Barranquero
  0 siblings, 2 replies; 7+ messages in thread
From: Chong Yidong @ 2010-06-03 17:17 UTC (permalink / raw
  To: 6343; +Cc: Dan Nicolaescu

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  <dann@ics.uci.edu>

  * 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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#6343: Log-edit font lock changes lead to loop
  2010-06-03 17:17 bug#6343: Log-edit font lock changes lead to loop Chong Yidong
@ 2010-06-03 17:36 ` Dan Nicolaescu
  2010-06-04  1:40 ` Juanma Barranquero
  1 sibling, 0 replies; 7+ messages in thread
From: Dan Nicolaescu @ 2010-06-03 17:36 UTC (permalink / raw
  To: Chong Yidong; +Cc: 6343

Chong Yidong <cyd@stupidchicken.com> 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  <dann@ics.uci.edu>
>
>   * 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)






^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#6343: Log-edit font lock changes lead to loop
  2010-06-03 17:17 bug#6343: Log-edit font lock changes lead to loop Chong Yidong
  2010-06-03 17:36 ` Dan Nicolaescu
@ 2010-06-04  1:40 ` Juanma Barranquero
  2010-06-04  2:12   ` Lennart Borgman
  1 sibling, 1 reply; 7+ messages in thread
From: Juanma Barranquero @ 2010-06-04  1:40 UTC (permalink / raw
  To: Chong Yidong; +Cc: 6343, Dan Nicolaescu

On Thu, Jun 3, 2010 at 19:17, Chong Yidong <cyd@stupidchicken.com> wrote:

> In the
> log edit buffer, I type "C-y" to attempt to yank into the buffer.  Emacs
> 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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#6343: Log-edit font lock changes lead to loop
  2010-06-04  1:40 ` Juanma Barranquero
@ 2010-06-04  2:12   ` Lennart Borgman
  2010-06-04 10:15     ` Juanma Barranquero
  0 siblings, 1 reply; 7+ messages in thread
From: Lennart Borgman @ 2010-06-04  2:12 UTC (permalink / raw
  To: Juanma Barranquero; +Cc: 6343, Chong Yidong, Dan Nicolaescu

On Fri, Jun 4, 2010 at 3:40 AM, Juanma Barranquero <lekktu@gmail.com> wrote:
> On Thu, Jun 3, 2010 at 19:17, Chong Yidong <cyd@stupidchicken.com> wrote:
>
>> In the
>> log edit buffer, I type "C-y" to attempt to yank into the buffer.  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 ... ;-) )





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#6343: Log-edit font lock changes lead to loop
  2010-06-04  2:12   ` Lennart Borgman
@ 2010-06-04 10:15     ` Juanma Barranquero
  2010-06-04 10:34       ` Lennart Borgman
  2011-07-12  8:10       ` Glenn Morris
  0 siblings, 2 replies; 7+ messages in thread
From: Juanma Barranquero @ 2010-06-04 10:15 UTC (permalink / raw
  To: Lennart Borgman; +Cc: 6343, Chong Yidong, Dan Nicolaescu

On Fri, Jun 4, 2010 at 04:12, Lennart Borgman <lennart.borgman@gmail.com> 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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#6343: Log-edit font lock changes lead to loop
  2010-06-04 10:15     ` Juanma Barranquero
@ 2010-06-04 10:34       ` Lennart Borgman
  2011-07-12  8:10       ` Glenn Morris
  1 sibling, 0 replies; 7+ messages in thread
From: Lennart Borgman @ 2010-06-04 10:34 UTC (permalink / raw
  To: Juanma Barranquero; +Cc: 6343, Chong Yidong, Dan Nicolaescu

On Fri, Jun 4, 2010 at 12:15 PM, Juanma Barranquero <lekktu@gmail.com> wrote:
> On Fri, Jun 4, 2010 at 04:12, Lennart Borgman <lennart.borgman@gmail.com> 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)





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#6343: Log-edit font lock changes lead to loop
  2010-06-04 10:15     ` Juanma Barranquero
  2010-06-04 10:34       ` Lennart Borgman
@ 2011-07-12  8:10       ` Glenn Morris
  1 sibling, 0 replies; 7+ messages in thread
From: Glenn Morris @ 2011-07-12  8:10 UTC (permalink / raw
  To: 6343-done


Looks like this was fixed by your 2010-06-12 change to log-edit.





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-07-12  8:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-03 17:17 bug#6343: Log-edit font lock changes lead to loop Chong Yidong
2010-06-03 17:36 ` Dan Nicolaescu
2010-06-04  1:40 ` Juanma Barranquero
2010-06-04  2:12   ` Lennart Borgman
2010-06-04 10:15     ` Juanma Barranquero
2010-06-04 10:34       ` Lennart Borgman
2011-07-12  8:10       ` Glenn Morris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.