From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#73782: [PATCH] Add `delete-selection-local-mode'. Date: Thu, 17 Oct 2024 13:07:27 -0400 Message-ID: References: Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5286"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 73782@debbugs.gnu.org To: Okamsn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 17 19:07:53 2024 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 1t1Tya-00017x-MQ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Oct 2024 19:07:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t1TyQ-0001VE-V2; Thu, 17 Oct 2024 13:07:42 -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 1t1TyP-0001Uk-Hh for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2024 13:07:41 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t1TyP-00062B-98 for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2024 13:07:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=qTLEjynZcJxzdJsVW+ts90+yX8dCeXCDPbNej0yhlvo=; b=ZS4LhiSezE+FORcJbiFBNXhGp2bQrNWSZsyZOLLl9Naqgownv3r5+5cYki/TLDs+vLE32+FZVYH13Q3dGPM0iuHpiUaEyfyyKNMZLThrlxpok2/sLMeCMrw6WgLM/PhvzC4RYnUqK8Os9SD14YGT1TYc0XMgh42Qyn8xMMwTRXnW/TlfL9H5UWf0JYhi8pPy5bT7o8/pMi62gDROEAgzyGRCRjVd9ajHuQaTdCpo/EzIaV27OG3wd3rHwbGEMQKgo7mUoYoLWZq9Uh4jQ1SXB9Bk2Q4NIhrSuvxTS7VnGc8LoNIg7FAjuwNtTNKu5hCjU5gUo0SO1BmrzSrERzCzog==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t1Tyk-0001jN-BW for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2024 13:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Oct 2024 17:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73782 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 73782-submit@debbugs.gnu.org id=B73782.17291848776642 (code B ref 73782); Thu, 17 Oct 2024 17:08:02 +0000 Original-Received: (at 73782) by debbugs.gnu.org; 17 Oct 2024 17:07:57 +0000 Original-Received: from localhost ([127.0.0.1]:35462 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t1Tye-0001j4-Vo for submit@debbugs.gnu.org; Thu, 17 Oct 2024 13:07:57 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:56091) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t1Tyd-0001ip-Ue for 73782@debbugs.gnu.org; Thu, 17 Oct 2024 13:07:56 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 60A76100055; Thu, 17 Oct 2024 13:07:29 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1729184848; bh=D3nFr1kKwNYX8BmEpOJb8PQW2kPP9x8wHoO4g7iITcE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=LCzsTMI/UVMx0FPV+h3aQHmKLlVCLaAEYP6du2pyNwnNtlEzyU5bNq3IYZRu3ce6O AxzZHqIR6/0saHwLdsCQsST8/eltTMnmYmKHqOnj0lLyEzXSjaaX9K0FNvxxzsmtXe JdGzjy6z+i1QVsmE47CYFLy42IJZlWzDmjghTu6Fbj+8XKeq9jSV1LVoIJUWuMpOlh JSxXng1AfILG/nrlZy4ZKhPn5yvv9nQqM5UdnM3HEVNAIUxeMM2o+movrT+/FX2V8l DHchgq4rUsyJjYZSZ5PtR4rgh4mt56f9/TipmltZcAP+fRQ4P7GFaokljqMbxMdn3m DLB8guw44g6yQ== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id C24CD100042; Thu, 17 Oct 2024 13:07:28 -0400 (EDT) Original-Received: from alfajor (unknown [23.233.149.155]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id A9E131203FF; Thu, 17 Oct 2024 13:07:28 -0400 (EDT) In-Reply-To: (okamsn@protonmail.com's message of "Sun, 13 Oct 2024 01:25:28 +0000") 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:293737 Archived-At: > +(define-minor-mode delete-selection-local-mode > + "Toggle Delete Selection mode in the current buffer. > + > +See the command `delete-selection-mode'. > + > +For compatibility with features and packages that are aware of > +`delete-selection-mode', this mode also sets the > +variable `delete-selection-mode' in the current buffer." > + :global nil :group 'editing-basics Have you tried to use the `:variable (buffer-local-value 'delete-selection-mode)` instead of introducing a parallel `delete-selection-local-mode` variable? Stefan