From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#56530: 29.0.50; mouse-2 cut selected text when cua-mode is enabled Date: Wed, 13 Jul 2022 15:20:34 +0530 Message-ID: <877d4hmjdh.fsf@gmail.com> References: <3c83c124-95a9-9dc6-a7a6-6e357c7574e4@orange.fr> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7549"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 56530@debbugs.gnu.org To: David Ponce Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 13 11:51:23 2022 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 1oBZ1e-0001qv-OI for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Jul 2022 11:51:22 +0200 Original-Received: from localhost ([::1]:60938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBZ1d-0003FE-Dk for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Jul 2022 05:51:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58300) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBZ1K-0003F1-5H for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 05:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50570) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBZ1J-0005J0-So for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 05:51:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oBZ1J-0000bb-Ii for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 05:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jul 2022 09:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56530 X-GNU-PR-Package: emacs Original-Received: via spool by 56530-submit@debbugs.gnu.org id=B56530.16577058532311 (code B ref 56530); Wed, 13 Jul 2022 09:51:01 +0000 Original-Received: (at 56530) by debbugs.gnu.org; 13 Jul 2022 09:50:53 +0000 Original-Received: from localhost ([127.0.0.1]:44467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBZ1A-0000bC-N7 for submit@debbugs.gnu.org; Wed, 13 Jul 2022 05:50:52 -0400 Original-Received: from mail-pj1-f67.google.com ([209.85.216.67]:46014) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBZ19-0000aw-LP for 56530@debbugs.gnu.org; Wed, 13 Jul 2022 05:50:52 -0400 Original-Received: by mail-pj1-f67.google.com with SMTP id q5-20020a17090a304500b001efcc885cc4so2692663pjl.4 for <56530@debbugs.gnu.org>; Wed, 13 Jul 2022 02:50:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :user-agent:mime-version; bh=/I/qI3OfEpx6tcG1iZvBmsiIvts8vO639FcDo7zuSnQ=; b=BzLg+F9ZtDjWgNnECAKXzgCJPnYIqlzRkmmZ4UYs/Rx4ssJCAyBpiR1gGpmmRrwDid ei+pJcCeVJzqi6bafVn2vrQApadQDi9r++ZNnnWhuu4/PXOkzKjJYIPJk8/RcNz+CcUD fC4UAFeQdFlTMyaXZq1BGWYUVIpPnak66EA4RrbrMy1/U79K7di0zYtWF+exP+upGbIN EUVUiKsAu/c7VuBfV0k5GDfOeColfi+T4LLMRl2klRxncREhyrNnVzgEj83lvlpY2phF DSVhTn7Z3gNUF/H27Lc4rXT16znB2YBnKZMwvW09bF78XSmyENuSqTN8EsQPq6iCiPhY sKGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:user-agent:mime-version; bh=/I/qI3OfEpx6tcG1iZvBmsiIvts8vO639FcDo7zuSnQ=; b=vXQllqzGbg4cUfJwCGO0SiS/PGZ1XAzkI7qZR5q5Gbz6GiKfW6jv4TEHyiVoTRWgOh gZKpiF7snz5F2LKTU7QqEEIashl7QFJHJB1x48/o68HNrnMlw3dLccxJ0RMLC5aYNhiw 1yp4XYwt6jwg6Q2ST01GzC5Hf7VZvB+FhVNr1tMVWgNyL0QOAIdNlWo4bsJQ7TZGCoQt /7ykVMGPdbK0jzARS99F2Kgvb6LT/nb1r394gPzugvTzWBJ04HHx7As7bGX5NeHisg89 0CddIJpUvJ3mlkqyMnpNvWr7uGQ1jBJ9k8fwuPKOMvw1kTCzmCGzrXHRSV+cLebdZKW4 wS4w== X-Gm-Message-State: AJIora9KuJY4a8QTm5LWKHBPD/57JY4wUN1WBy5KLTCCAyCZTUXoIL2o 5ndA2a89j+B1GIpkh+lSsmc= X-Google-Smtp-Source: AGRyM1sAg7jCr6ppvFIchy/cQ4D1snILVMFU79+rLdtL8qjik66tzOVex3xQqIswhqbPAmlQnFGxow== X-Received: by 2002:a17:90b:384b:b0:1f0:6ef2:183f with SMTP id nl11-20020a17090b384b00b001f06ef2183fmr2870336pjb.100.1657705845818; Wed, 13 Jul 2022 02:50:45 -0700 (PDT) Original-Received: from localhost ([49.204.129.90]) by smtp.gmail.com with ESMTPSA id z17-20020aa79591000000b005254e44b748sm8414995pfj.84.2022.07.13.02.50.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jul 2022 02:50:45 -0700 (PDT) In-Reply-To: <3c83c124-95a9-9dc6-a7a6-6e357c7574e4@orange.fr> (David Ponce's message of "Wed, 13 Jul 2022 11:22:17 +0200") 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:236844 Archived-At: [Wednesday July 13, 2022] David Ponce wrote: > Hello, > > I noticed that now, when cua-mode is enabled, when I select a region > (with mouse or keyboard), then use mouse-2 click on another point to > insert the selected text, the active region is cut before to insert text > at the mouse-2 click for the first time. As far as I remember this is a > new behavior, and previously the selected region was not cut, but > copied, like when cua-mode is disabled. > > The woraround is to first deselect the region before to click mouse-2 to > insert the previously selected text. This way the initially selected > text is not cut. > > Not sure this is expected, so this bug report ;-) It is expected. mouse-2 (and other mouse yank commands) were recently changed to respect delete-selection-mode (which is enabled by cua-mode) by yours truly. :-) You can disable the new behaviour by saying, (put 'mouse-yank-primary 'delete-selection nil) (put 'mouse-yank-secondary 'delete-selection nil) (put 'mouse-yank-at-click 'delete-selection nil) But I guess, it sure didn't take long for the complaints to come in...