From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: table.el 1.6.1 Date: 21 Mar 2002 09:41:22 +0100 Sender: emacs-devel-admin@gnu.org Message-ID: <5xvgbqgvnx.fsf@kfs2.cua.dk> References: <20020319.212249.60850794.Takaaki.Ota@am.sony.com> <200203210138.g2L1cum14295@rum.cs.yale.edu> <20020320.213722.110254553.Takaaki.Ota@am.sony.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1016700160 16131 127.0.0.1 (21 Mar 2002 08:42:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 21 Mar 2002 08:42:40 +0000 (UTC) Cc: monnier+gnu/emacs@RUM.cs.yale.edu, emacs-devel@gnu.org Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16ny9g-0004C4-00 for ; Thu, 21 Mar 2002 09:42:40 +0100 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16nyFo-0005r4-00 for ; Thu, 21 Mar 2002 09:49:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16ny9H-0004cc-00; Thu, 21 Mar 2002 03:42:15 -0500 Original-Received: from mail.filanet.dk ([195.215.206.179]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16ny7d-0004W7-00 for ; Thu, 21 Mar 2002 03:40:33 -0500 Original-Received: from kfs2.cua.dk.cua.dk (kfs2.local.filanet.dk [192.168.1.182]) by mail.filanet.dk (Postfix) with SMTP id E46057C035; Thu, 21 Mar 2002 08:40:25 +0000 (GMT) Original-To: Tak Ota In-Reply-To: <20020320.213722.110254553.Takaaki.Ota@am.sony.com> Original-Lines: 41 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2083 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2083 Tak Ota writes: > Wed, 20 Mar 2002 20:38:56 -0500: "Stefan Monnier" wrote: > > > > So far I find one problem. Somehow when point goes inside a table > > > cell the table menu does not appear in the menu bar. For this part > > > the same code works fine under emacs-21.1.90 although command remap is > > > missing. Has the menu mechanism in keymap changed under 21.3? > > > > I seem to remember that something was changed in that area as part > > of the command remap thingy. It was claimed at the time that > > position-dependent menubar entries (i.e. menu-bar bindings in > > `keymap' and `local-map' text properties) did not work and > > should be taken out. > > Try run the table.el under 21.1.90. When the point enters a cell the > table menu does appear, and disappears when point goes out. > > > Are you saying that they did work ? > > Yes, the position-dependent menubar entry does work under 21.1.90, > however does not work under 21.2.50 and 20.7. I made some tests showing that it really didn't work just to put menu bar entries in a keymap or local-map property, unless the menu-bar was refreshed after every command, and we didn't want to do that. Also, there was no indications of code actually using this feature, so it was decided to take it out to prevent *new* code from using it. I can now see that if you can ensure that the menu bar (or just the mode line) is refreshed when point enters a text area which has a keymap property, then it will work. So I suppose your code does something which triggers a mode line update. How do you do that (I think this is important advice for using this feature)? In any case, I'll restore the support for menu entries in text property keymaps ASAP! -- Kim F. Storm http://www.cua.dk _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel