From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Attempt to modify read-only value Date: Tue, 23 Apr 2002 20:20:09 +0900 (JST) Sender: emacs-devel-admin@gnu.org Message-ID: <200204231120.UAA16478@etlken.m17n.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1019560907 22567 127.0.0.1 (23 Apr 2002 11:21:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 23 Apr 2002 11:21:47 +0000 (UTC) Cc: lektu@terra.es, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16zyMl-0005rs-00 for ; Tue, 23 Apr 2002 13:21:47 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16zyNv-0001Jc-00 for ; Tue, 23 Apr 2002 13:22:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16zyMd-0006OK-00; Tue, 23 Apr 2002 07:21:39 -0400 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16zyLE-0006LQ-00; Tue, 23 Apr 2002 07:20:12 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2]) by tsukuba.m17n.org (8.11.6/3.7W-20010518204228) with ESMTP id g3NBKAw01875; Tue, 23 Apr 2002 20:20:10 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by fs.m17n.org (8.11.3/3.7W-20010823150639) with ESMTP id g3NBKAM23048; Tue, 23 Apr 2002 20:20:10 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id UAA16478; Tue, 23 Apr 2002 20:20:09 +0900 (JST) Original-To: miles@gnu.org In-Reply-To: message from Miles Bader on 23 Apr 2002 17:48:04 +0900 User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.1.30 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:3096 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3096 Miles Bader writes: > Kenichi Handa writes: >> fixes this problem. But, this workaround is very weird. >> There should be a better solution. > I suspect the prettiest thing would be to not construct raw menu > entries, but rather use official functions like `define-key' to make > them. > However, this throws away the cached key lookups that the low-level menu > code adds (this is why it's modifying the menu entry), which might be > bad because the Buffers menu can get rebuilt pretty often. Thank you for the explanation. I understand. --- Ken'ichi HANDA handa@etl.go.jp