From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Replacing huge hidden selection when pasting text Date: Sat, 2 Jan 2016 15:04:59 -0800 (PST) Message-ID: <824b3305-858c-44aa-a830-1e7d60df11c0@default> References: <5da6a556-646f-42ba-9bae-f5bf4387f09e@googlegroups.com> <84da4496-944e-4192-ac09-b5bfc0992f3f@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1451775941 24289 80.91.229.3 (2 Jan 2016 23:05:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Jan 2016 23:05:41 +0000 (UTC) To: Alexandre Oberlin , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 03 00:05:29 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 1aFVEi-0007s7-DK for geh-help-gnu-emacs@m.gmane.org; Sun, 03 Jan 2016 00:05:24 +0100 Original-Received: from localhost ([::1]:40017 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFVEh-000772-Cu for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Jan 2016 18:05:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFVEX-00076x-9g for help-gnu-emacs@gnu.org; Sat, 02 Jan 2016 18:05:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aFVEU-0006f1-4X for help-gnu-emacs@gnu.org; Sat, 02 Jan 2016 18:05:13 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:33312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFVET-0006dC-TT for help-gnu-emacs@gnu.org; Sat, 02 Jan 2016 18:05:10 -0500 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u02N51XL007514 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 2 Jan 2016 23:05:03 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u02N508l018803 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 2 Jan 2016 23:05:00 GMT Original-Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u02N50nA003647; Sat, 2 Jan 2016 23:05:00 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 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:108581 Archived-At: > I double checked .emacs and site-start.el and the only relevant lines I w= as > able to find appear in my .emacs in that order: > (delete-selection-mode 1) > (transient-mark-mode -1) > (cua-mode -1) Apologies for not following this thread. But offhand I'd say that there's your problem right there: you enable `delete-selection-mode' but you disable `transient-mark-mode'. That should be a no-no. See `C-h f delete-selection-mode': When Delete Selection mode is enabled, Transient Mark mode is also enabled, typed text replaces the selection if the selection is active, and DEL deletes the selection. Otherwise, typed text is just inserted at point, as usual. d-s-mode ENABLES t-m-mode, on purpose.