emacs-devel
[Top][All Lists]
Advanced

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

Re: table.el 1.6.1


From: Tak Ota
Subject: Re: table.el 1.6.1
Date: Thu, 21 Mar 2002 01:13:36 -0800 (PST)

21 Mar 2002 09:45:38 +0100: address@hidden (Kim F. Storm) wrote:

> Tak Ota <address@hidden> writes:
> 
> > Wed, 20 Mar 2002 20:38:56 -0500: "Stefan Monnier" 
> > <monnier+gnu/address@hidden> 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



reply via email to

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