From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#51320: 26.1; kill-region does not ignore its first two args if region is active Date: Thu, 21 Oct 2021 22:15:27 +0300 Message-ID: <837de68a0g.fsf@gnu.org> References: <87a6j2pnmw.fsf@aquinas.rewrittenlocator.xyz> <83v91q8gfl.fsf@gnu.org> <877de6p5o2.fsf@aquinas.rewrittenlocator.xyz> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7105"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51320@debbugs.gnu.org To: Richard Lawrence Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 21 21:16:27 2021 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 1mddYA-0001dn-Ug for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Oct 2021 21:16:26 +0200 Original-Received: from localhost ([::1]:55920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mddY8-000487-NE for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Oct 2021 15:16:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mddXm-00047w-GX for bug-gnu-emacs@gnu.org; Thu, 21 Oct 2021 15:16:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47029) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mddXm-0003Hi-2R for bug-gnu-emacs@gnu.org; Thu, 21 Oct 2021 15:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mddXl-0004JM-QN for bug-gnu-emacs@gnu.org; Thu, 21 Oct 2021 15:16:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Oct 2021 19:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51320 X-GNU-PR-Package: emacs Original-Received: via spool by 51320-submit@debbugs.gnu.org id=B51320.163484375716563 (code B ref 51320); Thu, 21 Oct 2021 19:16:01 +0000 Original-Received: (at 51320) by debbugs.gnu.org; 21 Oct 2021 19:15:57 +0000 Original-Received: from localhost ([127.0.0.1]:58575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mddXh-0004J4-IV for submit@debbugs.gnu.org; Thu, 21 Oct 2021 15:15:57 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mddXg-0004Ip-2u for 51320@debbugs.gnu.org; Thu, 21 Oct 2021 15:15:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60910) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mddXa-00038r-8M; Thu, 21 Oct 2021 15:15:50 -0400 Original-Received: from [87.69.77.57] (port=1784 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mddXI-0002fH-IR; Thu, 21 Oct 2021 15:15:49 -0400 In-Reply-To: <877de6p5o2.fsf@aquinas.rewrittenlocator.xyz> (message from Richard Lawrence on Thu, 21 Oct 2021 20:57:17 +0200) 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" Xref: news.gmane.io gmane.emacs.bugs:217803 Archived-At: > From: Richard Lawrence > Cc: 51320@debbugs.gnu.org > Date: Thu, 21 Oct 2021 20:57:17 +0200 > > 2) Literally the first and only thing that kill-region does before > throwing the error is check whether BEG and END are non-nil. The error I > see is the one in the unless clause quoted above. Ah, I see. The function tests BEG and END being non-nil, but interactively they never are nil, due to the 'interactive' form. So yes, this is a bug, and I've now fixed it on the emacs-28 branch. Thanks.