From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Alexandre Oberlin" Newsgroups: gmane.emacs.help Subject: Re: Replacing huge hidden selection when pasting text Date: Thu, 14 Jan 2016 16:35:40 +0100 Organization: http://migo.info Message-ID: 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; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Trace: ger.gmane.org 1452786022 16101 80.91.229.3 (14 Jan 2016 15:40:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Jan 2016 15:40:22 +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 16:40:22 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 1aJk0b-0000AT-EQ for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jan 2016 16:40:21 +0100 Original-Received: from localhost ([::1]:43435 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJk0a-0007l7-QP for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jan 2016 10:40:20 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!feeder1-2.proxad.net!cleanfeed3-a.proxad.net!nnrp6-1.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Opera Mail/1.0 (Win32) Original-Lines: 61 Original-NNTP-Posting-Date: 14 Jan 2016 16:35:40 CET Original-NNTP-Posting-Host: 151.34.197.80 Original-X-Trace: 1452785740 news-2.free.fr 3362 151.34.197.80:53991 Original-X-Complaints-To: abuse@proxad.net Original-Xref: usenet.stanford.edu gnu.emacs.help:216442 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:108732 Archived-At: On Thu, 14 Jan 2016 15:07:03 +0100, Stefan Monnier wrote: > So please provide a detailed recipe to reproduce the problem (and send= > it to M-x report-emacs-bug). It might not conform to the "philosophy" behind transient-mark-mode, but= = in GNU Emacs 24.5.1 kill-region DOES CONSISTENTLY kill an invisible = (unactivated) region, also when transient-mark-mode is enabled, and eve= n = if delete-selection-mode is off. However, I personally have usually no = problem with that, since it is stable and the intent is killing text = anyway: you just can type C-x C-x to be sure. On the other hand, I DID = (several years ago already) and STILL DO have problems with the similar = = pasting issue, which is NOT stable. 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. 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=E2=80=99t, while in both states transient-mark-mode is OFF and = delete-selection-mode is ON. I am not aware of any way to reliably chang= e = from one state to the other. Cheers, Alexandre