all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Button widget keymap conflicting with major mode.
@ 2010-02-21  4:07 Óscar Fuentes
  2010-02-21  5:54 ` Drew Adams
  0 siblings, 1 reply; 5+ messages in thread
From: Óscar Fuentes @ 2010-02-21  4:07 UTC (permalink / raw
  To: help-gnu-emacs

A read-only buffer has a major mode which defines bindings for RET and
other keys which are also used by button widgets created by

(widget-create 'push-button ...

The bindings for the major mode override the button bindings (it is not
possible to user RET when the point is on the button for invoking
it). I can make the button work with (use-local-map widget-keymap), but
then the bindings for the major mode are gone.

Is there a way for RET invoking the button when the point is over it and
invoke the major mode binding otherwise?

Using Emacs 23.1.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-02-26  7:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-21  4:07 Button widget keymap conflicting with major mode Óscar Fuentes
2010-02-21  5:54 ` Drew Adams
2010-02-24  4:29   ` Kevin Rodgers
2010-02-24  5:18     ` Drew Adams
2010-02-26  7:41       ` Kevin Rodgers

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.