From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79529 Path: news.gmane.org!not-for-mail From: Antoine Levitt Newsgroups: gmane.emacs.gnus.general Subject: Define-keys overriden Date: Thu, 21 Jul 2011 02:20:38 +0200 Message-ID: <87hb6gbi21.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1311207730 29975 80.91.229.12 (21 Jul 2011 00:22:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Jul 2011 00:22:10 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27825@lists.math.uh.edu Thu Jul 21 02:22:03 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qjh1b-0001rm-BR for ding-account@gmane.org; Thu, 21 Jul 2011 02:21:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Qjh0p-0008Sd-Eb; Wed, 20 Jul 2011 19:21:11 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Qjh0m-0008SF-B7 for ding@lists.math.uh.edu; Wed, 20 Jul 2011 19:21:08 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1Qjh0k-0004fR-RX for ding@lists.math.uh.edu; Wed, 20 Jul 2011 19:21:07 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Qjh0i-0002MI-1T for ding@gnus.org; Thu, 21 Jul 2011 02:21:04 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qjh0h-0001d3-UI for ding@gnus.org; Thu, 21 Jul 2011 02:21:03 +0200 Original-Received: from uni14-1-82-233-220-106.fbx.proxad.net ([82.233.220.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Jul 2011 02:21:03 +0200 Original-Received: from antoine.levitt by uni14-1-82-233-220-106.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Jul 2011 02:21:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 31 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: uni14-1-82-233-220-106.fbx.proxad.net Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -5.2 (-----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79529 Archived-At: First, I apologize in advance for the poor quality of this report, I can't seem to reproduce this bug reliably. Sometimes (sorry I can't be more precise, I can't find a pattern), when I M-x gnus again (ie there was a previous instance that was killed off), the define-keys I have in my .gnus are ignored. I'm talking about stuff like (define-key gnus-group-mode-map (kbd "j") 'gnus-group-toggle-unsubscribed) (where gnus-group-toggle-unsubscribed is some function of mine). In this example, "j" gets bound to the default binding for "j" (jump to group) instead of gnus-group-toggle-unsubscribed. It just happened to me, so I tried bisecting my .gnus, ie killing gnus, moving the (define-key) around in the config file, and M-x gnus again. I traced the bug back to an advice I have to prevent gnus from inflooping (defadvice gnus-group-get-new-news (around gnus-demon-timeout activate) "Timeout for Gnus." (with-timeout (5 (message "Gnus timed out.")) ad-do-it)) which I got off somewhere in emacswiki, I believe. Placing the define-key after the defadvice resulted in "j" being defined as gnus-group-toggle-unsubscribed, placing it before resulted in the default value (jump to group) being assigned. Then, as fun bugs often do, it disappeared, preventing me from debugging further. Any pointers as to why this can happen, or suggestions of things to look for next time it happens?