From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#62207: 29.0.60; Trying to remove non-existent key binding instead adds a binding Date: Fri, 17 Mar 2023 10:55:23 +0100 Message-ID: <87edpnu2gk.fsf@gmail.com> References: <875yb2gfqp.fsf@bernoul.li> <83pm9aq6of.fsf@gnu.org> <83ttyjeqgm.fsf@gnu.org> <87ilezu5aq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7118"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62207@debbugs.gnu.org, jonas@bernoul.li, larsi@gnus.org, Stefan Monnier To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 17 10:56:20 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pd6ou-0001h1-5i for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Mar 2023 10:56:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pd6oe-0004no-Cm; Fri, 17 Mar 2023 05:56:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pd6oc-0004nd-Iy for bug-gnu-emacs@gnu.org; Fri, 17 Mar 2023 05:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pd6oc-0004Lh-AW for bug-gnu-emacs@gnu.org; Fri, 17 Mar 2023 05:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pd6oc-0001gK-6u for bug-gnu-emacs@gnu.org; Fri, 17 Mar 2023 05:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Mar 2023 09:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62207 X-GNU-PR-Package: emacs Original-Received: via spool by 62207-submit@debbugs.gnu.org id=B62207.16790469326414 (code B ref 62207); Fri, 17 Mar 2023 09:56:02 +0000 Original-Received: (at 62207) by debbugs.gnu.org; 17 Mar 2023 09:55:32 +0000 Original-Received: from localhost ([127.0.0.1]:43713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pd6o8-0001fO-GO for submit@debbugs.gnu.org; Fri, 17 Mar 2023 05:55:32 -0400 Original-Received: from mail-wr1-f50.google.com ([209.85.221.50]:38519) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pd6o6-0001fA-Qz for 62207@debbugs.gnu.org; Fri, 17 Mar 2023 05:55:31 -0400 Original-Received: by mail-wr1-f50.google.com with SMTP id o7so3877886wrg.5 for <62207@debbugs.gnu.org>; Fri, 17 Mar 2023 02:55:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679046924; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=wRLsQhXwdq7b8kWEd7azbKZ+QPSyCkxYDwxQbYodBAY=; b=Asn7eavT4q+cwrZH+VjmUXoDM+SxjAdiiIiq4pkHY7EIoCFFv29sxWpDVRKIs43gPx rq31eZ3tFVM9WXrzWF2sDcydOaPgNrfsB7TVB7qxduGp/HJpmIResnlVymt5VWrAD+gW vOKkjfJlPxyOG5moQ6iLCPLQ+e/L/WAyYB3/mXc99rPL4kg0MNQYee39RoJI/eU2gjeW UfokgEtvi0wVWt/Oh5p82ERUVe8OPh32dr2xXfVTwqnc/bLuGXMRN3e4t6E6osfCF9Ke skB5zXoRIcqGaaEHVOJ9q1YtMvpaR89TdQQqLQ/F8ug/MmIG9PCvcYR168I2xhZXyFkh oN4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679046924; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wRLsQhXwdq7b8kWEd7azbKZ+QPSyCkxYDwxQbYodBAY=; b=17LOmxiUERsQKzYtrWJLjGNs1k4oerW2c4ryMnrZvl2YWLVzxnIoigqmejmrXsSKDO fu8dBimqoyzGYHk1DZ2LEEOBIjZAm1PrxblAoWTEpZMzLXdw8VX88VO9xRGB6diZIdrx eHHJuw9J8yroDntSSCL5kEWHRUa0SB3X2RBhMfTS3eDYMPk3XRnFFgc/WPPWrBahJfbi OV/ihlf1xMtSNtmFqrK+r7k0EmfXKvXouyikGCQREHWaOSMtgtU0ecWFsrVgrRbFksXh hWISoENk2gP3JRTCb61ei5mb+Q+LoIj/itK7474p/N5A5HPCsYC9NnZ4Bt8HLuwIb0ph zDwA== X-Gm-Message-State: AO0yUKUZvo/BjRPmdEarnwrqtaWNz+u6BNS+Mo2ZlDu1/nTFnXcFSFOO pKlogMCCu+M0kqFFZrl4b/M= X-Google-Smtp-Source: AK7set8kNZeZcb/4PYebI4CsHuCi+RyaUcovZH6gogdA3SiAvYZayvPqHb8CTZwVnStlJp6uZC74dg== X-Received: by 2002:a05:6000:110a:b0:2ce:a93d:41a7 with SMTP id z10-20020a056000110a00b002cea93d41a7mr6530165wrw.40.1679046924459; Fri, 17 Mar 2023 02:55:24 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id n17-20020a5d4c51000000b002c54c9bd71fsm1525543wrt.93.2023.03.17.02.55.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Mar 2023 02:55:23 -0700 (PDT) In-Reply-To: <87ilezu5aq.fsf@gmail.com> (Robert Pluim's message of "Fri, 17 Mar 2023 09:54:05 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:258065 Archived-At: >>>>> On Fri, 17 Mar 2023 09:54:05 +0100, Robert Pluim s= aid: Robert> Sorry to be difficult, but why? I think the semantics are clear, Robert> although I=CA=BCd prefer it if the first line of the docstring = for Robert> `keymap-unset' said Robert> Unset key sequence KEY in KEYMAP. Robert> to reduce confusion with the REMOVE argument. `keymap-unset' is also not documented in the lisp reference manual. How about this? @findex keymap-unset @defun keymap-unset keymap key &optional remove This function is the inverse of @code{keymap-set}, it unsets the binding for @var{key} in @var{keymap}, which is the same as setting the binding to @code{nil}. In order to instead remove the binding completely, specify @var{remove} as non-nil. This only makes a difference if @var{keymap} has a parent keymap. When unsetting a key in a child map, it will still shadow the same key in the parent keymap. Removing the binding will allow the key in the parent keymap to be used. Robert --=20