From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tak Ota Newsgroups: gmane.emacs.devel Subject: Re: table.el 1.6.1 Date: Thu, 21 Mar 2002 01:13:36 -0800 (PST) Organization: Sony Electronics Inc. Sender: emacs-devel-admin@gnu.org Message-ID: <20020321.011336.01366931.Takaaki.Ota@am.sony.com> References: <200203210138.g2L1cum14295@rum.cs.yale.edu> <20020320.213722.110254553.Takaaki.Ota@am.sony.com> <5xr8megvgt.fsf@kfs2.cua.dk> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1016702167 17683 127.0.0.1 (21 Mar 2002 09:16:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 21 Mar 2002 09:16:07 +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 16nyg2-0004b6-00 for ; Thu, 21 Mar 2002 10:16:06 +0100 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16nymB-00067I-00 for ; Thu, 21 Mar 2002 10:22:28 +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 16nyfs-00062C-00; Thu, 21 Mar 2002 04:15:56 -0500 Original-Received: from mail6.fw-bc.sony.com ([160.33.98.73]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16nydi-0005ra-00 for ; Thu, 21 Mar 2002 04:13:42 -0500 Original-Received: from mail2.sjc.in.sel.sony.com (mail2.sjc.in.sel.sony.com [43.134.1.111]) by mail6.fw-bc.sony.com (8.8.8/8.8.8) with ESMTP id JAA13092; Thu, 21 Mar 2002 09:13:41 GMT Original-Received: by mail2.sjc.in.sel.sony.com id JAA28421; Thu, 21 Mar 2002 09:13:38 GMT Original-To: storm@cua.dk In-Reply-To: <5xr8megvgt.fsf@kfs2.cua.dk> X-Telephone: +1-858-942-3239 X-Fax------: +1-858-942-9142 X-SnailMail: 16450 West Bernardo Drive MZ7205, San Diego, CA 92127-1804 X-Mailer: Mew version 3.0.54 on Emacs 21.2.50.1 / Mule 5.0 (SAKAKI) 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:2089 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2089 21 Mar 2002 09:45:38 +0100: storm@cua.dk (Kim F. Storm) wrote: > 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. > > Following up on my previous note: > > It just occurred to me that turning on column-number-mode actually > does force a mode-line (and menu-bar) update after every command, > so maybe the table.el code doesn't do anything special to make > this happen; if you have column-number-mode turn on, it will work. > > Tak, do you have c-n-m turned on? Equivalently yes, I do have (column-number-mode t) in my .emacs file. However, emacs 21.1.90 started with -q --no-site-file still shows the table menu correctly, so it is irrelevant in this case. The mode-line is being updated when the point enter or leave the table cell. That is done by way of 'point-entered and 'point-left text property. These two properties have a symbol to a function that does (set-buffer-modified-p (buffer-modified-p)) to update the mode-line. See the function `table--put-cell-point-entered/left-property', `table--point-entered-cell-function' and `table--point-left-cell-function'. -Tak _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel