From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Pure strings (Re: Compilation to native) Date: Thu, 15 Apr 2004 14:11:16 +0300 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87fzb5h4x7.fsf_-_@mail.jurta.org> References: <87eks0654s.fsf@sno.mundell.ukfsn.org> <87n06bp4ng.fsf@sno.mundell.ukfsn.org> <8765cwkejr.fsf@mail.jurta.org> <200404071157.UAA25094@etlken.m17n.org> <87oepvo4jz.fsf@mail.jurta.org> <200404132340.IAA14502@etlken.m17n.org> <87u0zniciw.fsf@mail.jurta.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1082028402 19428 80.91.224.253 (15 Apr 2004 11:26:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Apr 2004 11:26:42 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Apr 15 13:26:32 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BE50p-00061i-00 for ; Thu, 15 Apr 2004 13:26:31 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BE50p-0002cM-00 for ; Thu, 15 Apr 2004 13:26:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BE4u2-0000fO-Ob for emacs-devel@quimby.gnus.org; Thu, 15 Apr 2004 07:19:30 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BE4se-0008VO-DC for emacs-devel@gnu.org; Thu, 15 Apr 2004 07:18:04 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BE4rB-0007mH-1z for emacs-devel@gnu.org; Thu, 15 Apr 2004 07:17:04 -0400 Original-Received: from [66.33.219.4] (helo=spork.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BE4qC-0007R7-3x; Thu, 15 Apr 2004 07:15:32 -0400 Original-Received: from mail.jurta.org (80-235-38-79-dsl.mus.estpak.ee [80.235.38.79]) by spork.dreamhost.com (Postfix) with ESMTP id 591B411DC0B; Thu, 15 Apr 2004 04:15:29 -0700 (PDT) Original-To: Kenichi Handa In-Reply-To: <87u0zniciw.fsf@mail.jurta.org> (Juri Linkov's message of "Wed, 14 Apr 2004 04:17:11 +0300") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:21679 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21679 Juri Linkov writes: > BTW, I also noticed the *Message* buffer often reports such errors: > > Error during redisplay: (error Attempt to modify read-only object) This error occurs when the function `put-text-property' tries to put text properties on the top menu item "Buffers". But the string "Buffers" is read-only. This is true as for the unicode branch as well as for the trunk. For example, with the HEAD of the trunk, started by `emacs -Q', the following code was evaluated: *** Welcome to IELM *** Type (describe-mode) for help. ELISP> (cadr (nth 3 (global-key-binding [menu-bar]))) "Options" ELISP> (put-text-property 0 1 'auto-composed t (cadr (nth 3 (global-key-binding [menu-bar])))) nil ELISP> (cadr (nth 3 (global-key-binding [menu-bar]))) #("Options" 0 1 (auto-composed t) 1 7 nil) ;; so far so good: `put-text-property' puts the `auto-composed' property ;; on all top menu items except "Buffers": ELISP> (cadr (nth 4 (global-key-binding [menu-bar]))) "Buffers" ELISP> (put-text-property 0 1 'auto-composed t (cadr (nth 4 (global-key-binding [menu-bar])))) *** Eval error *** Attempt to modify read-only object ELISP> (cadr (nth 4 (global-key-binding [menu-bar]))) "Buffers" This error is raised on the string "Buffers" by the macro CHECK_IMPURE. Could someone explain why should this string be "impure"? -- Juri Linkov http://www.jurta.org/emacs/