From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kim Storm Newsgroups: gmane.emacs.bugs Subject: bug#8083: cua global mark does much more than it announces Date: Fri, 22 Jan 2021 11:06:08 +0100 Message-ID: <9d363cfd-e58e-c679-af62-6ee0ec13f7dd@cua.dk> References: <87eeifmr3r.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29636"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 Cc: 8083@debbugs.gnu.org To: Lars Ingebrigtsen , Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 22 11:07:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l2tLT-0007d1-6j for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Jan 2021 11:07:11 +0100 Original-Received: from localhost ([::1]:40640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l2tLR-0000FY-Ts for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Jan 2021 05:07:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2tLK-0000FD-R4 for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2021 05:07:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48480) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l2tLK-00064L-Jt for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2021 05:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l2tLK-00045n-Ep for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2021 05:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Kim Storm Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Jan 2021 10:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8083 X-GNU-PR-Package: emacs Original-Received: via spool by 8083-submit@debbugs.gnu.org id=B8083.161130998715688 (code B ref 8083); Fri, 22 Jan 2021 10:07:02 +0000 Original-Received: (at 8083) by debbugs.gnu.org; 22 Jan 2021 10:06:27 +0000 Original-Received: from localhost ([127.0.0.1]:60026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2tKk-00044y-SP for submit@debbugs.gnu.org; Fri, 22 Jan 2021 05:06:27 -0500 Original-Received: from fossa.ash.relay.mailchannels.net ([23.83.222.62]:11823) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2tKh-00044n-J3 for 8083@debbugs.gnu.org; Fri, 22 Jan 2021 05:06:25 -0500 X-Sender-Id: chosting|x-authsender|storm@cua.dk Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id B5FFC921CB6; Fri, 22 Jan 2021 10:06:19 +0000 (UTC) Original-Received: from ispc3.dotserv.com (100-96-18-5.trex.outbound.svc.cluster.local [100.96.18.5]) (Authenticated sender: chosting) by relay.mailchannels.net (Postfix) with ESMTPA id D2637921A72; Fri, 22 Jan 2021 10:06:17 +0000 (UTC) X-Sender-Id: chosting|x-authsender|storm@cua.dk Original-Received: from ispc3.dotserv.com (ssl3.dotserv.com [178.20.217.13]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 0.0.0.0:2500 (trex/6.0.1); Fri, 22 Jan 2021 10:06:19 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: chosting|x-authsender|storm@cua.dk X-MailChannels-Auth-Id: chosting X-Eyes-Rock: 3bb6f79e268a989a_1611309979077_530427954 X-MC-Loop-Signature: 1611309979077:143983157 X-MC-Ingress-Time: 1611309979077 Original-Received: from localhost (localhost [127.0.0.1]) by ispc3.dotserv.com (Postfix) with ESMTP id D5E8B106C070; Fri, 22 Jan 2021 11:06:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cua.dk; h= content-language:content-transfer-encoding:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:subject:subject; s=dotserv; t= 1611309969; x=1613124370; bh=WgE06Y/jEsjlb7qT+W0tp5j5v0ogcOhf/R2 p7jo1HJc=; b=CThsirJe4hccBqSRbx2umrSPOwTwjhEisCuDXpSGsYnvaZK1Usn xiL1TmpnAKW9c873wMmDYcXT+VxdmDWXPb0XC73PgcPDZotTKZA+cqPABReCVsXl uGI5H5NCQihZn+bu9AoGamTuUBge/kXEP7ZaYWFp6UDJkc2Me0vJHnYw= X-Virus-Scanned: Debian amavisd-new at ispc3.dotserv.com Original-Received: from ispc3.dotserv.com ([127.0.0.1]) by localhost (ispc3.dotserv.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id U9xfMPmPvWOT; Fri, 22 Jan 2021 11:06:09 +0100 (CET) Original-Received: from [10.1.82.9] (80-197-127-197-cable.dk.customer.tdc.net [80.197.127.197]) (Authenticated sender: storm@cua.dk) by ispc3.dotserv.com (Postfix) with ESMTPSA id F17021064946; Fri, 22 Jan 2021 11:06:08 +0100 (CET) In-Reply-To: <87eeifmr3r.fsf@gnus.org> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:198365 Archived-At: On 20/01/2021 18.54, Lars Ingebrigtsen wrote: > Lennart Borgman writes: > > However when cua global mark is set quite a few other things also > happens. For example self-insert-command is remapped so that the > character you type is inserted at cua global mark. Yes, that is by design. The main purpose of the global mark is that you can use it to easily reorganizing code. First you set the global mark to the place where you want to move some code. Then you successively "mark and move" various pieces of code to the global mark (and advance the mark). Typically, while doing this, you would want to add some "separation text" between the pieces of moved code, like whitespace, commas, or newlines, and that is why "self-insert" is remapped to insert at the global mark. Quirky but useful :-) > (I'm going through old bug reports that unfortunately got no response at > the time.) > > I've now adjusted the doc string to also mention inserted text in Emacs > 28. Thank you! >> I think also that this desing is not good . It is surprising to an >> uninformed user and it interferes very badly with viper for example >> >> Kim, could we please remove this? Or do you have another suggestion? I guess we could make an option to disable that specific feature of the global mark. Kim