From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Thorpe Newsgroups: gmane.emacs.help Subject: Re: Replacing huge hidden selection when pasting text Date: Sun, 27 Dec 2015 22:15:35 +0000 Message-ID: <87wprzv8qg.fsf@robertthorpeconsulting.com> References: <5da6a556-646f-42ba-9bae-f5bf4387f09e@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1451254567 13771 80.91.229.3 (27 Dec 2015 22:16:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Dec 2015 22:16:07 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Alexandre Oberlin Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 27 23:15:56 2015 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 1aDJbY-0001i1-91 for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Dec 2015 23:15:56 +0100 Original-Received: from localhost ([::1]:42920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aDJbX-00059u-7q for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Dec 2015 17:15:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aDJbM-00059g-3C for help-gnu-emacs@gnu.org; Sun, 27 Dec 2015 17:15:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aDJbI-0006ok-U3 for help-gnu-emacs@gnu.org; Sun, 27 Dec 2015 17:15:44 -0500 Original-Received: from outbound-smtp03.blacknight.com ([81.17.249.16]:36010) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aDJbI-0006og-Nk for help-gnu-emacs@gnu.org; Sun, 27 Dec 2015 17:15:40 -0500 Original-Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp03.blacknight.com (Postfix) with ESMTPS id 4A70798AD0 for ; Sun, 27 Dec 2015 22:15:37 +0000 (UTC) Original-Received: (qmail 32521 invoked from network); 27 Dec 2015 22:15:37 -0000 Original-Received: from unknown (HELO RTLaptop) (rt@robertthorpeconsulting.com@[86.145.191.145]) by 81.17.254.9 with ESMTPSA (DHE-RSA-AES128-SHA encrypted, authenticated); 27 Dec 2015 22:15:37 -0000 In-Reply-To: <5da6a556-646f-42ba-9bae-f5bf4387f09e@googlegroups.com> (message from Alexandre Oberlin on Wed, 23 Dec 2015 17:01:40 -0800 (PST)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 81.17.249.16 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:108498 Archived-At: Alexandre Oberlin writes: > I have stopped hoping that the current maintainers of Emacs still have > an ounce of common sense. How on Earth can it be possible (and quite > easy) to allow replacing a huge hidden selection when pasting text > without any warning ? I have lost large amounts of data with this > incredibly stupid behavior. There isn't even a warning when saving a > file which has shrunk a lot, like there once was. How can I DEFINITELY > avoid overwriting an invisible selection in all versions of Emacs? If "delete-selection-mode" is enabled then typed text will replace the selection. It only works with transient mark mode on. That could be the problem, though in that case the selection should be visible. If not, I suggest checking your init file. A piece of code could rely on the specific behaviour of an earlier version of Emacs. Emacs -Q is the test. BR, Robert Thorpe