From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Button widget keymap conflicting with major mode. Date: Fri, 26 Feb 2010 00:41:25 -0700 Message-ID: References: <87ocjj44g7.fsf@telefonica.net> <65FB5493D9934E70A5A57B970B29C731@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1267170135 18130 80.91.229.12 (26 Feb 2010 07:42:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 26 Feb 2010 07:42:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 26 08:42:05 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 1Nkupo-0000d7-Oq for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Feb 2010 08:42:05 +0100 Original-Received: from localhost ([127.0.0.1]:37269 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nkupo-0001XL-7F for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Feb 2010 02:42:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NkupS-0001X5-3Z for help-gnu-emacs@gnu.org; Fri, 26 Feb 2010 02:41:42 -0500 Original-Received: from [140.186.70.92] (port=48447 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkupR-0001Wx-5A for help-gnu-emacs@gnu.org; Fri, 26 Feb 2010 02:41:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NkupQ-0005UC-EV for help-gnu-emacs@gnu.org; Fri, 26 Feb 2010 02:41:41 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:37882) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkupQ-0005Ty-3C for help-gnu-emacs@gnu.org; Fri, 26 Feb 2010 02:41:40 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NkupO-0000VF-S2 for help-gnu-emacs@gnu.org; Fri, 26 Feb 2010 08:41:38 +0100 Original-Received: from c-71-237-24-138.hsd1.co.comcast.net ([71.237.24.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Feb 2010 08:41:38 +0100 Original-Received: from kevin.d.rodgers by c-71-237-24-138.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Feb 2010 08:41:38 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 53 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-71-237-24-138.hsd1.co.comcast.net User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) In-Reply-To: <65FB5493D9934E70A5A57B970B29C731@us.oracle.com> 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:72155 Archived-At: Drew Adams wrote: >> 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. Excellent, I didn't try... > Not sure I understand what you're saying. ... because the Widget info manual doesn't say that the push-button widget is/like an editable-field or text widget, which are the only types that support the :keymap property. > (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 # (moves after insertion) > at 242 in *scratch*> :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. Well, that's the clincher: the keymap was actually installed on the keymap property of the overlay (not just included in the widget's list representation). -- Kevin Rodgers Denver, Colorado, USA