help-gnu-emacs
[Top][All Lists]
Advanced

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

RE: Button widget keymap conflicting with major mode.


From: Drew Adams
Subject: RE: Button widget keymap conflicting with major mode.
Date: Sun, 21 Feb 2010 11:38:47 -0800

> > > Is there a way for RET invoking the button when the point
> > > is over it and invoke the major mode binding otherwise?
> >
> > `keymap' text property would be one way.
> > See node `Special Properties' of the Elisp manual.
> 
> I thought that the button widget sets those properties when it is
> created. Certainly, the user is not suppossed to throw in a good chunk
> of extra hairy code measuring how much space the button uses, getting
> its position, setting properties, etc when that is what every button
> should do on its own, right?

Dunno. Check the widget source code to see what it does.

You asked if there is a way to get RET in a particular area of a buffer to do
something different from what it does in the buffer's major-mode map. That's
what I answered.





reply via email to

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