From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Some developement questions Date: Fri, 7 Sep 2018 15:52:42 -0700 (PDT) Message-ID: <83b5f20d-79ed-4770-97b1-f4f8d6db0aaa@default> References: <8336v6cvem.fsf@gnu.org> <8736v6icgt.fsf@himinbjorg.adminart.net> <83tvnmb958.fsf@gnu.org> <877ekigiiw.fsf@himinbjorg.adminart.net> <837ekhb2me.fsf@gnu.org> <87zhxcbmtr.fsf@himinbjorg.adminart.net> <83in409lub.fsf@gnu.org> <871sanb71j.fsf@himinbjorg.adminart.net> <83y3cu7t9j.fsf@gnu.org> <87lg8t2ki9.fsf@himinbjorg.adminart.net> <20180827015422.lcq44zvsjffeau4j@Ergus> <83a7p76f5e.fsf@gnu.org> <87lg8p9o6y.fsf@russet.org.uk> <83pnxx1foj.fsf@gnu.org> <87k1o1a06q.fsf@russet.org.uk> <877ek1ql6u.fsf@toy.adminart.net> <87tvn2g665.fsf@russet.org.uk> <83r2i6wv4v.fsf@gnu.org> <87ftylu327.fsf@toy.adminart.net> <9c4f7b69-e4e2-4a14-88bf-afc9d0005cb4@default> <87o9d9m10i.fsf@toy.adminart.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1536360659 10283 195.159.176.226 (7 Sep 2018 22:50:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2018 22:50:59 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org, spacibba@aol.com, phillip.lord@russet.org.uk To: hw Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 08 00:50:54 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fyPaY-0002a5-9i for ged-emacs-devel@m.gmane.org; Sat, 08 Sep 2018 00:50:54 +0200 Original-Received: from localhost ([::1]:40583 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyPce-0004YF-M4 for ged-emacs-devel@m.gmane.org; Fri, 07 Sep 2018 18:53:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyPcY-0004Y9-GF for emacs-devel@gnu.org; Fri, 07 Sep 2018 18:52:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fyPcX-0007Tq-FJ for emacs-devel@gnu.org; Fri, 07 Sep 2018 18:52:58 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:55450) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fyPcR-0007JI-Sd; Fri, 07 Sep 2018 18:52:52 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w87MnlJF121616; Fri, 7 Sep 2018 22:52:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=b3m/2LyNmQ600/eWpIkgBaAzvDQYEd2fTp+jgc0MM2c=; b=UK7UWKcgigohEbNi1w5g44PtwZoWk10NTak6nOl6lB5Pj3tinXJ6CYnjolUrEMgiEfKI J6Yi4CqeLIEdlzgL7Q/Wt/Rj4sbAZoUxrDCtHc/xBRsFtcuvzBWAzVJ5WW6occcyz5fu JB4ZuLbaWpUOAqTrdO9KLenhj4f/bEniooNAO2y6Gw27+xPdGzYmANS8NygGo/6kflCX ibslJcYS5NQi6CjwuWyLhpgU9qIvIiP6a5aTFBB6t1GV1+4aIP0yc1i8O+D66snFg/wG /HMFeyQHbSSUCTYRU1qHSjzxA1uE3hm+tXeT4cXgVufH8i63T0MCy60h7Yo1g/oCr33g XA== Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2m7j6u52pr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 07 Sep 2018 22:52:45 +0000 Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w87Mqiej012503 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 7 Sep 2018 22:52:44 GMT Original-Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w87MqhDc029297; Fri, 7 Sep 2018 22:52:44 GMT In-Reply-To: <87o9d9m10i.fsf@toy.adminart.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4735.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9009 signatures=668708 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=490 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809070225 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 156.151.31.86 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:229461 Archived-At: >>>> accident would be the only case in which the selection would be replac= ed. >> > >> > C-y to yank a replacement, possibly followed by M-y to get different > > replacements. >=20 > That doesn't replace the selection but disables it and yanks --- and it > would only happen by accident because I don't do such weird things. > You're probably using a different setting. Works for me, including from `emacs -Q'. Perhaps you are using a different = setting. 1. emacs -Q 2. M-x delete-selection-mode ; Turn it on 3. Select a word in the first line of buffer *scratch*, say `The', and then= `M-w' to copy it to the kill-ring. Do that a few times, with different wor= ds, say `buffer', `is', and `for'. So the kill-ring is populated with a few= kills. 4. Select some text in the second line. 5. `C-y' replaces that selected text with `for'. `M-y' replaces `for' with = `is'. `M-y' replaces `is' with `buffer'. > > And if, like me, you have a key that yanks the secondary selection, > > yank it to replace the region. FWIW, that's is a frequent use case for me. Select some text, then `C-M-y' = to replace it with the secondary selection. Do that wherever, whenever. Rep= lace anything with the same bit of text. (Or you can do the same kind of th= ing using a register instead of the secondary selection.) > > It's no different from what you do now, except that you precede > > such operations by explicit C-w to first delete the region. >=20 > It is different because the way you do something makes a difference. The result is the same; that was the point: With `delete-selection-mode' yo= u can easily replace selected text with other text. The way you do that wit= hout `d-s-mode' is the same, except you explicitly use `C-w' to kill the te= xt before yanking. That's the only difference, except that `d-s-mode' doesn't always kill (`C-= w'). What it does depends on the command used when the region is active, an= d that behavior is configurable. > The result may be identical until you hit the wrong key and something > gets replaced or de-selected by mistake. It's ok if you want that; I'd > rather have strict-mode. >=20 > I don't want anything to happen to a selection just because I pressed > the wrong key.=20 Nor do I. Who does? Have you never hit `C-w' by mistake, i.e., as "the wrong key"? Did you get = excited about that, or did you just undo the mistake? > Having selections randomly replaced or disabled ... makes things difficul= t, confusing and errorenous. Hyperbole. `delete-selection-mode' does not randomly replace or disable sel= ections. You're not used to it perhaps. And you don't like it. Leave it at that. Peo= ple are different. It's no harder for you to turn `d-s-mode' off in your in= it file than it is for me to turn it on. This discussion is about what the = default behavior should be.