From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Replacing huge hidden selection when pasting text Date: Thu, 14 Jan 2016 18:41:04 +0200 Message-ID: <83y4bsgllr.fsf@gnu.org> References: <5da6a556-646f-42ba-9bae-f5bf4387f09e@googlegroups.com> <84da4496-944e-4192-ac09-b5bfc0992f3f@googlegroups.com> <70837df3-23f5-416b-8e0a-b9f105f7a40c@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1452789676 17890 80.91.229.3 (14 Jan 2016 16:41:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Jan 2016 16:41:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 14 17:41:12 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aJkxS-00050D-QX for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jan 2016 17:41:10 +0100 Original-Received: from localhost ([::1]:43674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJkxO-000383-Si for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jan 2016 11:41:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJkxD-00036r-4e for help-gnu-emacs@gnu.org; Thu, 14 Jan 2016 11:40:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJkx8-0008O0-5y for help-gnu-emacs@gnu.org; Thu, 14 Jan 2016 11:40:55 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJkx8-0008Np-2f for help-gnu-emacs@gnu.org; Thu, 14 Jan 2016 11:40:50 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3438 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aJkx7-0003at-C9 for help-gnu-emacs@gnu.org; Thu, 14 Jan 2016 11:40:49 -0500 In-reply-to: (email_via@migo.info) 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-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108735 Archived-At: > Date: Thu, 14 Jan 2016 16:35:40 +0100 > From: "Alexandre Oberlin" > > To get an invisible region while transient-mark-mode is OFF (that is > "(transient-mark-mode -1)" in .emacs): > 1. Open a file > 2. Type CTRL+SPACE ONCE > 3. Move the cursor with an arrow key > 4. Type CTRL+W > The invisible region gets killed, whatever the value of > delete-selection-mode. > > To get an invisible region while transient-mark-mode is ON (that is > "(transient-mark-mode +1)" in .emacs): > 1. Open a file > 2. Type CTRL+SPACE TWICE > 3. Move the cursor with an arrow key > 4. Type CTRL+W > The invisible region gets killed, whatever the value of > delete-selection-mode. The above is the intended behavior, it has nothing to do with delete-selection-mode. > As already repeated, the behavior with pasting is NOT consistent. There > seems to be one state where it overwrites, and another state where it > doesn’t, while in both states transient-mark-mode is OFF and > delete-selection-mode is ON. I am not aware of any way to reliably change > from one state to the other. A recipe, please. If you think it's a bug, of course.