From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.help Subject: Button widget keymap conflicting with major mode. Date: Sun, 21 Feb 2010 05:07:20 +0100 Message-ID: <87ocjj44g7.fsf@telefonica.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1266814442 1891 80.91.229.12 (22 Feb 2010 04:54:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 22 Feb 2010 04:54:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 21 06:42:56 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nj4BP-00026b-QA for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Feb 2010 06:16:44 +0100 Original-Received: from localhost ([127.0.0.1]:43502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nj4BN-0005Te-HM for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Feb 2010 00:16:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nj4B3-0005T4-AG for help-gnu-emacs@gnu.org; Sun, 21 Feb 2010 00:16:21 -0500 Original-Received: from [140.186.70.92] (port=38769 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nj4B2-0005Sa-Iq for help-gnu-emacs@gnu.org; Sun, 21 Feb 2010 00:16:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nj4B0-0000gW-VU for help-gnu-emacs@gnu.org; Sun, 21 Feb 2010 00:16:19 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:42845) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nj4B0-0000gN-Pl for help-gnu-emacs@gnu.org; Sun, 21 Feb 2010 00:16:18 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Nj3pZ-0001AQ-9d for help-gnu-emacs@gnu.org; Sun, 21 Feb 2010 05:54:09 +0100 Original-Received: from 83.42.13.78 ([83.42.13.78]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Feb 2010 05:54:09 +0100 Original-Received: from ofv by 83.42.13.78 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 21 Feb 2010 05:54:09 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 14 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 83.42.13.78 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) Cancel-Lock: sha1:mWHgbhP66tNGeonT7dfaro4IlM8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71994 Archived-At: 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.