From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/17610 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.gnus.user Subject: Re: overwriting c catchup shortcut in Group buffer Date: Mon, 11 May 2015 02:00:49 +0200 Organization: Aioe.org NNTP Server Message-ID: <873834htji.fsf@debian.uxu> References: <87k2wgusq3.fsf@jupiter.lan> <87mw1cozif.fsf@debian.uxu> <87a8xchwcq.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1431302413 25439 80.91.229.3 (11 May 2015 00:00:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 May 2015 00:00:13 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Mon May 11 02:00:08 2015 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yrb8h-000806-Oz for gegu-info-gnus-english@m.gmane.org; Mon, 11 May 2015 02:00:07 +0200 Original-Received: from localhost ([::1]:34982 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yrb8g-0005iW-LU for gegu-info-gnus-english@m.gmane.org; Sun, 10 May 2015 20:00:06 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 48 Original-NNTP-Posting-Host: feB02bRejf23rfBm51Mt7Q.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:3h71rGMjVH7GDqd9gQ6+aZ2Q14Y= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.gnus:88738 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:17610 Archived-At: Stefan Huchler writes: > fly-keys is a modal mode you have a key to activate > it and one to deactivate it, in other modes you can > type the letter c as example, and in command mode > you use it for previous-line. > > So I think there is your frequent change? I mean if you were to frequently edit the code and thus there would be a need to (re)evaluate it, you would save some keystrokes by putting the hook updater (add-hook) and the defun (i.e. the to-be definition of the hook) in the same construct (the progn) so it would only take one evaluation to do both. But it is unrelated to this issue, it doesn't matter if there is a progn there or not as for the behavior of the software in execution... >> It works for me, so perhaps your mode, whatever it >> is, resets the keymap after that? > > ok then I add that to the bugtracker to the author > or fly-keys, just wondered why it did work for > Summary mode so I thought I just picked the wrong > hook map. I don't see why you should need hooks to set keys for stuff that you use everyday and this `require' at initialization and do not have loaded on-the-fly at invocation time of some related command. I do this for Gnus group, summary, and article modes. `require' and then set the keymap. If it is done in hooks, that means the same thing would be evaluated many, many times an Emacs session. Much better to load it, then set it, and then keep the settings happily ever after. Does it work without that mode? I don't see why it shouldn't. You can also examine all the hooks of the mode. Is there something *else* there that overrides the desired settings? -- underground experts united http://user.it.uu.se/~embe8573