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: Tue, 23 Feb 2010 21:18:16 -0800 Message-ID: <65FB5493D9934E70A5A57B970B29C731@us.oracle.com> References: <87ocjj44g7.fsf@telefonica.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1266988771 19318 80.91.229.12 (24 Feb 2010 05:19:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Feb 2010 05:19:31 +0000 (UTC) To: "'Kevin Rodgers'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 24 06:19:27 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 1Nk9ef-0000Xk-R2 for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Feb 2010 06:19:26 +0100 Original-Received: from localhost ([127.0.0.1]:45449 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nk9ef-0000wT-0E for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Feb 2010 00:19:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nk9eH-0000v6-Qo for help-gnu-emacs@gnu.org; Wed, 24 Feb 2010 00:19:01 -0500 Original-Received: from [140.186.70.92] (port=53756 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nk9eH-0000uh-3b for help-gnu-emacs@gnu.org; Wed, 24 Feb 2010 00:19:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nk9eG-0004Nn-85 for help-gnu-emacs@gnu.org; Wed, 24 Feb 2010 00:19:01 -0500 Original-Received: from acsinet12.oracle.com ([141.146.126.234]:51430) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nk9eG-0004NZ-3R for help-gnu-emacs@gnu.org; Wed, 24 Feb 2010 00:19:00 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by acsinet12.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o1O5Ivtr011457 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 24 Feb 2010 05:18:58 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o1O5Iqqx024225; Wed, 24 Feb 2010 05:18:53 GMT Original-Received: from abhmt014.oracle.com by acsmt354.oracle.com with ESMTP id 46558511266988691; Tue, 23 Feb 2010 21:18:11 -0800 Original-Received: from dradamslap1 (/10.175.211.211) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 23 Feb 2010 21:18:11 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Acq1CfTOJgyhSgkyR62D5JRbCLoM6wABdgXw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.4B84B6C1.0039: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:72088 Archived-At: > WIBNI widget-create took a :keymap keyword so you could specify > widget-keymap as its value? It does, doesn't it? You can pass any keyword args to it. Not sure I understand what you're saying. (widget-create 'push-button :keymap widget-keymap) `C-x C-e' => (push-button :keymap (keymap (13 . widget-button-press) (down-mouse-1 . widget-button-click) (down-mouse-2 . widget-button-click) (backtab . widget-backward) (S-tab . widget-backward) (27 keymap (9 . widget-backward)) (9 . widget-forward)) :button-overlay # :from # :to #) `C-u C-x =' on the button (e.g. position 243) shows: There is an overlay here: From 242 to 244 button push-button (widget)Top evaporate t face widget-button follow-link nil help-echo nil keymap [Show] mouse-face (highlight) pointer hand Clicking [Show] or hitting RET there shows the same keymap as above.