From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#18090: 24.4.50; `delete-selection-helper' logic changed for non-mouse region? Date: Thu, 20 Sep 2018 23:52:04 +0300 Organization: LINKOV.NET Message-ID: <87pnx8xckg.fsf@mail.linkov.net> References: <95e066b9-792c-4b38-8f4b-fd225578ed45@default> <9859e098-daf7-4b67-a8a6-c53d01a18f93@default> <83fty4elsx.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1537477873 19631 195.159.176.226 (20 Sep 2018 21:11:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 20 Sep 2018 21:11:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 18090@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 20 23:11:09 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1g36E8-0004y6-5x for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Sep 2018 23:11:08 +0200 Original-Received: from localhost ([::1]:52844 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g36GE-0001DJ-ED for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Sep 2018 17:13:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g36Fz-0001Bs-TS for bug-gnu-emacs@gnu.org; Thu, 20 Sep 2018 17:13:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g36Fy-0002MG-8u for bug-gnu-emacs@gnu.org; Thu, 20 Sep 2018 17:13:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43152) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g36Fy-0002M1-4P for bug-gnu-emacs@gnu.org; Thu, 20 Sep 2018 17:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g36Fx-00037Q-RR for bug-gnu-emacs@gnu.org; Thu, 20 Sep 2018 17:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Sep 2018 21:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18090 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18090-submit@debbugs.gnu.org id=B18090.153747796811969 (code B ref 18090); Thu, 20 Sep 2018 21:13:01 +0000 Original-Received: (at 18090) by debbugs.gnu.org; 20 Sep 2018 21:12:48 +0000 Original-Received: from localhost ([127.0.0.1]:47410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g36Fk-00036z-2q for submit@debbugs.gnu.org; Thu, 20 Sep 2018 17:12:48 -0400 Original-Received: from pop.dreamhost.com ([64.90.62.162]:41418 helo=pdx1-sub0-mail-a36.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g36Fh-00036q-P3 for 18090@debbugs.gnu.org; Thu, 20 Sep 2018 17:12:46 -0400 Original-Received: from pdx1-sub0-mail-a36.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a36.g.dreamhost.com (Postfix) with ESMTP id CDD1A7EDA7; Thu, 20 Sep 2018 14:12:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=rkVoDgS6COePrQwNW6KpKoFnxBs=; b= k3l6WIGKDxbZfoPs2y8RiMbBsDkSOpyIYLiLT8iCbQpb+HpCpvOoTlmOyyCpvfEL qX/FQT8zn/EVEDJKVGw+VoY/fgLi0v7c7VW/QIZzBugXU8VXaKinHroJOzVI9ypg N3AMt4lKXj9W53qb5lKocOG5C3SfvBXVyPRCSu5r+JE= Original-Received: from localhost.linkov.net (m91-129-107-237.cust.tele2.ee [91.129.107.237]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a36.g.dreamhost.com (Postfix) with ESMTPSA id 8EAAA7EDB7; Thu, 20 Sep 2018 14:12:43 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a36 X-DH-BACKEND: pdx1-sub0-mail-a36 In-Reply-To: <83fty4elsx.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 20 Sep 2018 09:15:58 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:150497 Archived-At: > That change was made due to problems described in this thread: > > http://lists.gnu.org/archive/html/emacs-devel/2007-06/msg01642.html > > FWIW, I cannot reproduce the original problem reported by Juri in that > thread, in Emacs 22.1, which according to my calculations was released > before the change. So I cannot dig deeper into the issue, but my > first thought was that this code needs to be rethought/augmented due > to changes in Emacs 24 regarding selections, since currently the > default is not to copy to the kill-ring the region selected by > dragging the mouse. I see that mouse operations are not supported by delete-selection-mode anyway - yanking with doesn't replace the selected region, so the whole (when (and (string= (buffer-substring-no-properties (point) (mark)) (car kill-ring)) (fboundp 'mouse-region-match) (mouse-region-match)) (current-kill 1)) could be deleted altogether. Otherwise, if there is a wish to support mouse yanking, a separate enhancement request could be created. > I also don't think I understand your report, Drew. What exactly is > the problem you are complaining about? Surely, the problem is not the > code, but its effect; however, all you say about the effect is that > "yanking point is rotated only when the mouse was used". I don't > understand what "rotating yanking point" means, let alone why it is > problematic. I don't understand this bug report too - in fact, there is no bug, the purpose of the old change was to remove gratuitous optimization that breaks keyboard macros (the result of yanking should not depend on differences between old and new text), and nobody complained during last 10+ years. But if Drew wants such optimization, then a new customizable option could be added.