From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Uberti Newsgroups: gmane.emacs.devel Subject: Re: New define-key syntax with custom keymap Date: Tue, 19 Oct 2021 15:59:07 +0200 Message-ID: <67e1333f-a339-2fc1-271b-40a860bf3edd@inventati.org> References: <87k0i9dsup.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36845"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 19 16:09:45 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mcpoH-0009O9-8l for ged-emacs-devel@m.gmane-mx.org; Tue, 19 Oct 2021 16:09:45 +0200 Original-Received: from localhost ([::1]:42340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcpoG-0000sq-4R for ged-emacs-devel@m.gmane-mx.org; Tue, 19 Oct 2021 10:09:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcpe7-0006xC-5S for emacs-devel@gnu.org; Tue, 19 Oct 2021 09:59:18 -0400 Original-Received: from confino.investici.org ([212.103.72.250]:46949) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcpe1-0006uR-Ki for emacs-devel@gnu.org; Tue, 19 Oct 2021 09:59:13 -0400 Original-Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4HYb2M3fNGz112q for ; Tue, 19 Oct 2021 13:59:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1634651947; bh=c0NTNHTe1I/vOLR7vK1ZXwgIiuBfEp/J8xBIQKXQslU=; h=Subject:To:References:From:Date:In-Reply-To:From; b=Ab/9e6BEWOcZJbNFwgo74eFuUgSdFg7oKwNlZ2XrNzf4MTc5jtRPnBths7h5wkVel UObR/tlfwFglefExx3VWmHwW+ZUS6E2pQjDMVb/4urr788OacPOKtNkTbfJFeVDQd9 PWBQGVrx3iLzxgCxoAwfFPt1jDMUGjm+U4Ec6hSg= Original-Received: from [212.103.72.250] (mx1.investici.org [212.103.72.250]) (Authenticated sender: manuel.uberti@inventati.org) by localhost (Postfix) with ESMTPSA id 4HYb2M3B01z111x for ; Tue, 19 Oct 2021 13:59:07 +0000 (UTC) In-Reply-To: <87k0i9dsup.fsf@gnus.org> Content-Language: en-GB Received-SPF: pass client-ip=212.103.72.250; envelope-from=manuel.uberti@inventati.org; helo=confino.investici.org X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-2.074, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:277366 Archived-At: On 19/10/21 15:52, Lars Ingebrigtsen wrote: > So it works for me. Out of curiosity, did you try restarting Emacs with: (define-key gnus-summary-mode-map ["C-c C-n"] #'mu-cleanup-buffer) somewhere in your init file? Because if I evaluate: (define-key mu-keys-mode-map ["C-c C-n"] #'mu-cleanup-buffer) it works for me as well. But upon restart C-c C-n is not bound to anything. -- Manuel Uberti www.manueluberti.eu