From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Replacing huge hidden selection when pasting text Date: Sun, 03 Jan 2016 03:25:04 +0100 Message-ID: <871t9zwgan.fsf@web.de> 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 X-Trace: ger.gmane.org 1451787945 24237 80.91.229.3 (3 Jan 2016 02:25:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Jan 2016 02:25:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 03 03:25:38 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 1aFYMS-0005gg-P4 for geh-help-gnu-emacs@m.gmane.org; Sun, 03 Jan 2016 03:25:37 +0100 Original-Received: from localhost ([::1]:40303 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFYMR-00055G-SG for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Jan 2016 21:25:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFYMH-00054u-3e for help-gnu-emacs@gnu.org; Sat, 02 Jan 2016 21:25:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aFYMD-0001tz-RS for help-gnu-emacs@gnu.org; Sat, 02 Jan 2016 21:25:25 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:59470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFYMD-0001tg-K8 for help-gnu-emacs@gnu.org; Sat, 02 Jan 2016 21:25:21 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aFYM8-0005NJ-6M for help-gnu-emacs@gnu.org; Sun, 03 Jan 2016 03:25:16 +0100 Original-Received: from ip-90-186-1-98.web.vodafone.de ([90.186.1.98]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 03 Jan 2016 03:25:16 +0100 Original-Received: from michael_heerdegen by ip-90-186-1-98.web.vodafone.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 03 Jan 2016 03:25:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 47 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ip-90-186-1-98.web.vodafone.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:8/9YOf5GCytHGwf76WohmoBCJqg= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:108590 Archived-At: Alexandre Oberlin writes: > On Sunday, January 3, 2016 at 12:05:17 AM UTC+1, Drew Adams wrote: > > > 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. > Oh my dear, I managed to hit a no-no! But if it's a no-no why is it > possible in the first place? Why ain't there a single warning? Where > are emacs's no-nos listed? Where is the checkbox and message saying "I > agree not to do any emacs no-no, even if I don't know what they are"? > Are you serious? I think there was much confusion in the thread, no doubt did the nihilistic tone of Alexandre inhibit a fruitful discussion. Drew only wanted to help. But I think he was wrong with what he said. I think it's ok to use the two modes at the same time. In the sentence Drew cited: 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. I think there is an "and" missing, and the sentence means something different from what we thought. The current docstring (in my Emacs 25) says: When Delete Selection mode is enabled, typed text replaces the selection if the selection is active. Otherwise, typed text is just inserted at point regardless of any selection. With `transient-mark-mode' off, you can mark a region (i.e., turn on transient mark mode temporarily) by hitting C-SPC twice. Only then does delete-selection-mode replace the region. In any other case (when the region is not visible, i.e. not active) transient-mark-mode is just off, and delete-selection-mode should not delete the region, never. So I think the behavior he sometimes gets could indeed be a bug. Would be good to have a bug report, and it would be good if Alexandre would try to find a recipe so that we can find out what's going on (this could also be caused by some add on package) and fix the issue when necessary. Michael.