From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jose A Ortega Ruiz Newsgroups: gmane.emacs.devel Subject: Re: global keybindings re-defined on package upgrade Date: Fri, 16 Sep 2022 00:02:12 +0100 Message-ID: <87fsgsqm17.fsf@mail.jao.io> References: <87o7vg9x33.fsf@mail.jao.io> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8055"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 16 01:03:24 2022 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 1oYxtE-0001xm-6L for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Sep 2022 01:03:24 +0200 Original-Received: from localhost ([::1]:44244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYxtD-00064J-6U for ged-emacs-devel@m.gmane-mx.org; Thu, 15 Sep 2022 19:03:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYxsG-0005Nc-Fh for emacs-devel@gnu.org; Thu, 15 Sep 2022 19:02:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35694) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYxsF-0004FV-Cx for emacs-devel@gnu.org; Thu, 15 Sep 2022 19:02:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=QaMXdfJovoyGPI8uLpCjQ0EXxIHsPaH12IVRI6P+jgU=; b=DwEg64AXr7xYo8kuOqLA lw0LnMZJWAITjDuedZA48bBcvoKbSAIVIqtSaI7VMuvhStmoseay5TQvevlNCvFKA9067EHYUvsX4 YHWEDmJNKvPAG1DinXB1FmZd1BZSdQl3KV7PhTVVPVEvrbk2LfjGjUG8TRxuMyRHV3NTx+NX6y7PK bZC8p3SThq1BTH1753nBaAp0O/+EjEN9v5cHf71OU/molz2sP8rkMt4JWJHjs6uZ+G+ANu08ZDk6W 0vJvqWsoScz4iTX8apawowQs5Y00WfSe4csev/QYy4DNcj4tG+JWljLdjpWuEBzS8gWRQ81oc/K8a k93qm+EAOh3gcQ==; Original-Received: from cpc103048-sgyl39-2-0-cust502.18-2.cable.virginm.net ([92.233.85.247]:38234 helo=rivendell.localdomain) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYxs7-0001Pl-7r for emacs-devel@gnu.org; Thu, 15 Sep 2022 19:02:16 -0400 Original-Received: from localhost (rivendell.localdomain [local]) by rivendell.localdomain (OpenSMTPD) with ESMTPA id 4c6dadba for ; Thu, 15 Sep 2022 23:02:12 +0000 (UTC) In-Reply-To: <87o7vg9x33.fsf@mail.jao.io> X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:295451 Archived-At: On Thu, Sep 15 2022, Jose Antonio Ortega Ruiz wrote: > Hi, > > Since a little while ago, in emacs 29.0.50 (master), it happens often > that when i upgrade installed packages, some global keybindings i've > re-defined in my init (e.g. , C-l, C-x p) get re-assigned to their > original binding; it doesn't happen all the time and i haven't yet been > able to find a pattern. But perhaps this is expected behaviour and i > should restart emacs on upgrade, or maybe move to new-style keymap-* > functions (i'm still using global-set-key and friends). Answering to myself, this is probably related to use-package's :bind forms assigning keybindings to the global map; those seem to be the bindings that are lost on package upgrades. I'll bring the issue to its developer(s) once i manage to reproduce it reliably. Thanks, jao -- Not far from the invention of fire must rank the invention of doubt. -Thomas Henry Huxley, biologist (1825-1895)