From unknown Thu Aug 14 21:22:09 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#27614 <27614@debbugs.gnu.org> To: bug#27614 <27614@debbugs.gnu.org> Subject: Status: 26.0.50; kill-region deletes the rest of the document when there is no region selected Reply-To: bug#27614 <27614@debbugs.gnu.org> Date: Fri, 15 Aug 2025 04:22:09 +0000 retitle 27614 26.0.50; kill-region deletes the rest of the document when th= ere is no region selected reassign 27614 emacs submitter 27614 Jeffrey Brown severity 27614 minor tag 27614 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 08 02:56:26 2017 Received: (at submit) by debbugs.gnu.org; 8 Jul 2017 06:56:26 +0000 Received: from localhost ([127.0.0.1]:57249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dTjfG-0002eu-8V for submit@debbugs.gnu.org; Sat, 08 Jul 2017 02:56:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46755) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dTjfE-0002eg-OF for submit@debbugs.gnu.org; Sat, 08 Jul 2017 02:56:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dTjf8-00025h-In for submit@debbugs.gnu.org; Sat, 08 Jul 2017 02:56:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_20,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34884) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dTjf8-00025b-G1 for submit@debbugs.gnu.org; Sat, 08 Jul 2017 02:56:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dTjf5-0003oD-LA for bug-gnu-emacs@gnu.org; Sat, 08 Jul 2017 02:56:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dTjez-00023K-Kj for bug-gnu-emacs@gnu.org; Sat, 08 Jul 2017 02:56:15 -0400 Received: from mail-io0-f177.google.com ([209.85.223.177]:33398) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dTjez-00022o-DI for bug-gnu-emacs@gnu.org; Sat, 08 Jul 2017 02:56:09 -0400 Received: by mail-io0-f177.google.com with SMTP id h64so5703234iod.0 for ; Fri, 07 Jul 2017 23:56:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=8uP3BBNsLJLWwSb3zDR9dwaHchlrYDidFYOthsCe7gI=; b=fEO3/btJ3BU9at9kqp89roNnIxS+X9R6letWKtfYmBQsJMLIX6Unr6YDf7f2j9yC+v jt4GOYB0aPhEbhIsEF6sYo/iWrpuux2jBWW+2rb4e0F6DnU1tkqB+tKBWT7IkE+t+FdW Yzg5BPYw6yrcZbFRlCXaYZulEg1TMjnZHigZP/UhypdltMyt4yHsudXmRFBOGF+FyY95 xy78IU6hPtlHd5Wkca5dSveUuxhCSGk27zRpMSCYtLSYvVwzb92Zot4/Jfr2emUdbHI1 43MyothRjXC8vPNOf/Y0YkU8cW8rqr1KZbD6Am2N/VYj0zpan9WSHlvhngHzS2udSsEP DKPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=8uP3BBNsLJLWwSb3zDR9dwaHchlrYDidFYOthsCe7gI=; b=ovWMmzEOJzxVoKyjqdFb0XcXylBxCDg2PIlxW69mjtnTfhzSY4//d0Bqg60ImSjTH4 tY4tfyYPgiiGdHQOnhiSpjSpWru7yUuW670rLyEHHl9afYyipUdyyLkzFcy8en8hS56E moVeuhVTzVYCl5V5bPqesC97pCDJJnaV+sTNbfks2ade8m4S6p7Apyn5WsV2+GwIUam4 kY6txR+CDeTYT+5AnWU8SSReBfxiwD15D8BdX/Ja+GjEdG1m3Mvxbai9GRVjtayWEuA/ D2KS84dy7nxP9IVlB//R77ZkbouDumtFjfzBWsgk93OCeQpRT0i5r9yIuxGh3ZkLCRUQ a7xg== X-Gm-Message-State: AKS2vOzUCfqSOU572Dg0a1doZ2HmH3uOL17ZIOPjTWdbSa77uLT8znNR PX0+Iv4qsZpHDZwaAf1I43GQp7m8CThs X-Received: by 10.107.19.148 with SMTP id 20mr55852600iot.0.1499496906084; Fri, 07 Jul 2017 23:55:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.135.169 with HTTP; Fri, 7 Jul 2017 23:54:45 -0700 (PDT) From: Jeffrey Brown Date: Fri, 7 Jul 2017 23:54:45 -0700 Message-ID: Subject: 26.0.50; kill-region deletes the rest of the document when there is no region selected To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="001a113f8dc06de1770553c8d4b0" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.5 (---) --001a113f8dc06de1770553c8d4b0 Content-Type: text/plain; charset="UTF-8" If I highlight something and then run kill-region (C-w), it gets killed. That's good. But if I highlight nothing, and accidentally run kill-region, the rest of the document starting at the cursor gets killed. I know it sounds stupid, but more than once I have killed a lot of text like that and not realized it until much later, thanks to Git. Emacs is wonderful, thank you so much. --001a113f8dc06de1770553c8d4b0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

If I highlight something and then run kill-region (= C-w), it

gets killed. That's good.


But if I highlight nothin= g, and accidentally run kill-region, the

rest of= the document starting at the cursor gets killed.


I know it sounds stupid, but more than on= ce I have killed a lot of text

like that and not= realized it until much later, thanks to Git.

Emacs is wonderful, thank you so much.

--001a113f8dc06de1770553c8d4b0-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 08 03:11:37 2017 Received: (at 27614) by debbugs.gnu.org; 8 Jul 2017 07:11:37 +0000 Received: from localhost ([127.0.0.1]:57258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dTjtw-00030X-Rh for submit@debbugs.gnu.org; Sat, 08 Jul 2017 03:11:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49303) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dTjtu-00030K-Ts for 27614@debbugs.gnu.org; Sat, 08 Jul 2017 03:11:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dTjtm-0006ki-H2 for 27614@debbugs.gnu.org; Sat, 08 Jul 2017 03:11:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dTjtm-0006ke-Da; Sat, 08 Jul 2017 03:11:26 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1229 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dTjtl-0002Ta-NU; Sat, 08 Jul 2017 03:11:26 -0400 Date: Sat, 08 Jul 2017 10:11:16 +0300 Message-Id: <83mv8fl7xn.fsf@gnu.org> From: Eli Zaretskii To: Jeffrey Brown In-reply-to: (message from Jeffrey Brown on Fri, 7 Jul 2017 23:54:45 -0700) Subject: Re: bug#27614: 26.0.50; kill-region deletes the rest of the document when there is no region selected References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27614 Cc: 27614@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Jeffrey Brown > Date: Fri, 7 Jul 2017 23:54:45 -0700 > > If I highlight something and then run kill-region (C-w), it > gets killed. That's good. > But if I highlight nothing, and accidentally run kill-region, the > rest of the document starting at the cursor gets killed. When I try this without having any region, Emacs says The mark is not set now, so there is no region and doesn't kill anything. So I'm guessing that you do have a region in those cases, just not a highlighted one. You can make it highlighted by "C-x C-x" (twice, if you want to return to the original location). I suggest to grow a habit of doing that before each C-w, because, really, Emacs does here what you told it to do. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 08 03:18:53 2017 Received: (at 27614) by debbugs.gnu.org; 8 Jul 2017 07:18:53 +0000 Received: from localhost ([127.0.0.1]:57268 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dTk0y-0003B4-T2 for submit@debbugs.gnu.org; Sat, 08 Jul 2017 03:18:53 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:36679) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dTk0x-0003Av-Uk for 27614@debbugs.gnu.org; Sat, 08 Jul 2017 03:18:52 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3x4NBL6Kxsz1qrdp; Sat, 8 Jul 2017 09:18:50 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 3x4NBL5Vfxz3jgYD; Sat, 8 Jul 2017 09:18:50 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id c6bPNVGrdqcx; Sat, 8 Jul 2017 09:18:50 +0200 (CEST) X-Auth-Info: whFiz+vWzN3dXqmTBfP0NheIhbWBhClogTYVm0pwRFxyMxziGq4CfPqntgtW+/xs Received: from igel.home (ppp-88-217-9-219.dynamic.mnet-online.de [88.217.9.219]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sat, 8 Jul 2017 09:18:49 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 446062C3974; Sat, 8 Jul 2017 09:18:49 +0200 (CEST) From: Andreas Schwab To: Jeffrey Brown Subject: Re: bug#27614: 26.0.50; kill-region deletes the rest of the document when there is no region selected References: X-Yow: Oh, I get it!! ``The BEACH goes on,'' huh, SONNY?? Date: Sat, 08 Jul 2017 09:18:49 +0200 In-Reply-To: (Jeffrey Brown's message of "Fri, 7 Jul 2017 23:54:45 -0700") Message-ID: <87y3rzgzvq.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27614 Cc: 27614@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Jul 07 2017, Jeffrey Brown wrote: > But if I highlight nothing, and accidentally run kill-region, the > > rest of the document starting at the cursor gets killed. That means there is a mark at the end of the buffer. Set mark-even-if-inactive to nil, and kill-region will complain instead. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 04 21:27:59 2017 Received: (at control) by debbugs.gnu.org; 5 Aug 2017 01:27:59 +0000 Received: from localhost ([127.0.0.1]:42198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ddnsl-0005ha-GD for submit@debbugs.gnu.org; Fri, 04 Aug 2017 21:27:59 -0400 Received: from mail-io0-f176.google.com ([209.85.223.176]:36945) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ddnsj-0005hN-5y for control@debbugs.gnu.org; Fri, 04 Aug 2017 21:27:57 -0400 Received: by mail-io0-f176.google.com with SMTP id c74so11318243iod.4 for ; Fri, 04 Aug 2017 18:27:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=R5mnGiM05/a4V7C1IsEAdbqPaPA3celNVRCWjDd9NHw=; b=MC5LsxTkzqqRBFxIYHGLLlkgmdeuvx4OjLmUQArrLpi42yg9kX7lH0lXkcP8251QrA HCE24U9LRlh40I087v2kGwb1XZ34Lj3vSgvANgfK9O8QJ0tlngwt/UY+alUtPs1cj8sP LIT4Nc2h8qnm/ljEgRQQeKucS3mLe/fSGzUKiFlB6Baw7qd1OQIE7xecY0ub+6sNtVhJ 1CKnTHIbaKDxMj5skt5kdOe4bKuIm+8GIWnPzVel1s+rVt+jhZAoLbkGGbbBgzttYptL RTDe7gF5HlQipFWY+uQ/mbX9T8p3zCTT5vagJJSKG7A0ZuBSUtynNBeup1a3D/5NvqXr SwKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=R5mnGiM05/a4V7C1IsEAdbqPaPA3celNVRCWjDd9NHw=; b=qBNnoHpdvviQO47bOq1gbv6xAu1iBM5FmpKtjWwLdxe98XmouZ0w/t/oPcgUz8p6Vc /E5/rLQU1zQs2MtRR+DVuL/bz7g9L7c2tRxKux37qtXS2l0i+A1HMDAi/O1K+QoGctlR qGXwPBK1tBlD/BHxqwBDlzc61XuWHOG8BfQ/hImzSfcJEUi8GPEWuuMTX8Exhj6l3KIS 76shhT0yG25B49ZtGg3/d1jNJs6DKbwaJOS5FvFS+mX16kC40PmPAwnMj/ZLtr4JmCqf Vxmiuh+BgF+LzgrM9/Wppl8HDfl0W9vqPcdjisIs4cWvciqTlHWvBlsZQkRFajiFAcjC Uzlw== X-Gm-Message-State: AHYfb5gObDeZmYtTxD3FIfcarLgejooDV/VuOptF9QyqI7ctseZHERDO Rslow9U+5iFaoFu+ X-Received: by 10.107.181.210 with SMTP id e201mr4316345iof.61.1501896471476; Fri, 04 Aug 2017 18:27:51 -0700 (PDT) Received: from zony ([45.2.119.48]) by smtp.googlemail.com with ESMTPSA id d96sm1326425ioj.75.2017.08.04.18.27.50 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 04 Aug 2017 18:27:50 -0700 (PDT) From: npostavs@users.sourceforge.net To: control@debbugs.gnu.org Subject: control message for bug #27614 Date: Fri, 04 Aug 2017 21:29:32 -0400 Message-ID: <877eyi7qf7.fsf@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) # (setq mark-even-if-inactive nil) already gives wanted behaviour close 27614 quit From unknown Thu Aug 14 21:22:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 02 Sep 2017 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator