From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Button widget keymap conflicting with major mode. Date: Sat, 20 Feb 2010 21:54:04 -0800 Message-ID: References: <87ocjj44g7.fsf@telefonica.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1266814652 2868 80.91.229.12 (22 Feb 2010 04:57:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 22 Feb 2010 04:57:32 +0000 (UTC) To: "=?iso-8859-1?Q?'=D3scar_Fuentes'?=" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 21 07:20:01 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 1Nj4nU-0003mc-0A for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Feb 2010 06:56:04 +0100 Original-Received: from localhost ([127.0.0.1]:58940 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nj4nT-0007EU-Jd for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Feb 2010 00:56:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nj4n5-0007EP-B4 for help-gnu-emacs@gnu.org; Sun, 21 Feb 2010 00:55:39 -0500 Original-Received: from [140.186.70.92] (port=36882 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nj4n1-0007EH-AB for help-gnu-emacs@gnu.org; Sun, 21 Feb 2010 00:55:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nj4n0-0003ag-JS for help-gnu-emacs@gnu.org; Sun, 21 Feb 2010 00:55:35 -0500 Original-Received: from acsinet12.oracle.com ([141.146.126.234]:50409) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nj4n0-0003aU-As for help-gnu-emacs@gnu.org; Sun, 21 Feb 2010 00:55:34 -0500 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by acsinet12.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o1L5tVxY019771 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 21 Feb 2010 05:55:33 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o1L5tUHT025821; Sun, 21 Feb 2010 05:55:30 GMT Original-Received: from abhmt020.oracle.com by acsmt353.oracle.com with ESMTP id 40848561266731641; Sat, 20 Feb 2010 21:54:01 -0800 Original-Received: from dradamslap1 (/24.5.179.75) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 20 Feb 2010 21:54:00 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87ocjj44g7.fsf@telefonica.net> Thread-Index: AcqytQ7DGOT80RAiTQKIv/qw8VcTjAABOfpA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt353.oracle.com [141.146.40.153] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.4B80CAD3.006E:SCFMA4539814,ss=1,fgs=0 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:71998 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. `keymap' text property would be one way. See node `Special Properties' of the Elisp manual.