From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86383 Path: news.gmane.org!not-for-mail From: Dave Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus & (windmove-default-keybindings) Date: Thu, 10 Dec 2015 00:40:14 -0800 Message-ID: <56693A6E.3080708@niwas.net> References: <5662A0DE.3030909@niwas.net> <5662A3E4.3010606@niwas.net> <87vb8d3tid.fsf@ucl.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1449736935 25965 80.91.229.3 (10 Dec 2015 08:42:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Dec 2015 08:42:15 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M34615@lists.math.uh.edu Thu Dec 10 09:42:03 2015 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a6wnZ-0007xF-Lr for ding-account@gmane.org; Thu, 10 Dec 2015 09:42:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.85) (envelope-from ) id 1a6wmW-0007yS-5A; Thu, 10 Dec 2015 02:40:56 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1a6wmS-0007xf-1m for ding@lists.math.uh.edu; Thu, 10 Dec 2015 02:40:52 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1a6wmQ-00056W-JK for ding@lists.math.uh.edu; Thu, 10 Dec 2015 02:40:51 -0600 Original-Received: from sender153-mail.zoho.com ([74.201.84.153]) by quimby.gnus.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1a6wmO-0007cL-OL for ding@gnus.org; Thu, 10 Dec 2015 09:40:49 +0100 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=subject:to:references:from:message-id:date:user-agent:mime-version:in-reply-to:content-type:sender; b=fjUYO7f/ae72/PlZWudYhnl212BNskVtcAQT/CMAPkb6euQyuhQPDEf0SbQWcXtkolb1PLqbzNBh +Ci2pkF2t53QdQvEEP8QXzzHYGMKof8jUNM+mf3ZjDL91ykW9TcV Original-Received: from [192.168.10.212] (web325.webfaction.com [95.211.73.1]) by mx.zohomail.com with SMTPS id 1449736839868198.2886369829033; Thu, 10 Dec 2015 00:40:39 -0800 (PST) X-Enigmail-Draft-Status: N1110 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 In-Reply-To: <87vb8d3tid.fsf@ucl.ac.uk> X-Spam-Score: -0.0 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86383 Archived-At: On 12/05/2015 05:38 AM, Eric S Fraga wrote: > On Saturday, 5 Dec 2015 at 00:44, Dave wrote: >>> I've turned on: >>> (windmove-default-keybindings 'meta) >>> >>> which allows sane keys for moving between windows (M-, M-, >>> M-, M-). All works well, except for the article summary buffer >>> in Gnus, which treats M- and M- as and . (Though >>> M- and M- behave properly.) >> >> I should add that the command (windmove-down) works fine. It's just the >> bound key that fails. Additionally, using global-set-key to >> specifically set the binding also fails. >> >>> Can anyone give me some pointers of how to proceed? > > You could set up a hook for the individual gnus views (group, summary) > to bind M- and M- to the corresponding windmove commands, > along the lines of > > #+begin_src emacs-lisp > ;; From: pmlists@free.fr (Peter Münster) > ;; Newsgroups: gnu.emacs.gnus > ;; Message-ID: <87lj1wkv2q.fsf@micropit.couberia.bzh> > (defun esf/alter-summary-map () > (local-set-key ":" 'bbdb-mua-display-records) > (local-set-key "d" 'gnus-summary-delete-article) > (local-set-key "e" 'gnus-summary-mark-as-expirable) > (local-set-key "u" 'gnus-summary-put-mark-as-unread) ;-next-unread > (local-set-key "w" 'gnus-article-fill-long-lines) > ) > (add-hook 'gnus-summary-mode-hook 'esf/alter-summary-map) > #+end_src > > HTH, > eric Much appreciated, Eric. This works: (defun windmove-summary-map () (local-set-key [(meta up)] 'windmove-up) (local-set-key [(meta down)] 'windmove-down) ) (add-hook 'gnus-summary-mode-hook 'windmove-summary-map) I guess there must be something in the local key map that was overriding the global-set-key Dave.