all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#25156: 26.0.50; `describe-text-properties' hangs with 100% cpu usage when property is a char-table
@ 2016-12-10 13:59 Peter Wang
  2016-12-10 14:22 ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Wang @ 2016-12-10 13:59 UTC (permalink / raw)
  To: 25156

[-- Attachment #1: Type: text/plain, Size: 1063 bytes --]

I came across the problem when I was using `C-u C-x =' on a SLIME
presentation. After some debugging, I found out the cause of the
problem. Here is it:

In a slime REPL buffer, when the evaluation result is rendered, SLIME
adds text properties using `slime-add-presentation-properties'. One
of the text properties is a syntax-table `slime-presentation-syntax-table'.

`C-u C-x =' calls `(describe-char (point))', which in turn calls
`describe-text-properties', which hangs with 100% cpu usage.

I think a possible fix could be done in `describe-property-list', adding
a case in cond to handle the type of syntax-table, something like:


diff --git a/lisp/descr-text.el b/lisp/descr-text.el
index 6c7983a177..926103f35e 100644
--- a/lisp/descr-text.el
+++ b/lisp/descr-text.el
@@ -90,6 +90,7 @@ describe-property-list
       'type 'help-face 'help-args (list value)))
             ((widgetp value)
      (describe-text-widget value))
+            ((syntax-table-p value) (insert "#<syntax table>"))
     (t
      (describe-text-sexp value))))
     (insert "\n")))

[-- Attachment #2: Type: text/html, Size: 1754 bytes --]

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

end of thread, other threads:[~2016-12-10 16:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-10 13:59 bug#25156: 26.0.50; `describe-text-properties' hangs with 100% cpu usage when property is a char-table Peter Wang
2016-12-10 14:22 ` Eli Zaretskii
2016-12-10 15:03   ` Peter Wang
2016-12-10 15:11     ` Peter Wang
2016-12-10 15:29       ` npostavs
2016-12-10 15:38         ` Peter Wang
2016-12-10 16:04         ` Eli Zaretskii
2016-12-10 16:16           ` Peter Wang
2016-12-10 16:40             ` npostavs

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.