emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Text is read-only" infinite loop (Carbon)


From: Magnus Henoch
Subject: Re: "Text is read-only" infinite loop (Carbon)
Date: Mon, 22 Nov 2004 21:20:34 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (darwin)

I can reproduce this easier than it seemed - by trying to delete
read-only text with M-DEL.  I start Emacs with -Q, load this function:

(defun trigger-bug ()
  "Trying to delete this text with M-DEL triggers a bug in the Carbon port.
Among others, trying to open a menu or hitting C-x C-f fails with
\"Text is read-only\"."
  (interactive)
  (with-current-buffer "*scratch*"
    (goto-char (point-max))
    (insert (propertize "Delete this string" 'read-only t))))

I switch to *scratch*, and type M-x trigger-bug.  If I hit DEL, I get
an error as expected, but things continue to work.  If I hit M-DEL
instead, the menubar, C-x C-f, and other things stop working.

I tried this on OpenBSD, both console and X, but didn't get this
problem.

Backtraces from breakpoint in text_read_only:
After hitting DEL:

Attachment: txtGZI4OHpedw.txt
Description: After hitting DEL

After hitting M-DEL:

Attachment: txtAIpdDxz1qR.txt
Description: After hitting M-DEL

Trying to open a menu:

Attachment: txtDFKJgZtGn1.txt
Description: Trying to open a menu

Hitting C-x C-f:

Attachment: txtECP3WOHfZi.txt
Description: Hitting C-x C-f

Is there more information I can provide?

Magnus

reply via email to

[Prev in Thread] Current Thread [Next in Thread]