From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Siyuan Chen Newsgroups: gmane.emacs.bugs Subject: bug#71230: [PATCH] Fix C-x C-c do not work in CUA-mode when cua-prefix-override-handler is ni Date: Tue, 28 May 2024 01:00:40 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000aa8e4806197275f6" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3204"; mail-complaints-to="usenet@ciao.gmane.io" To: 71230@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 27 19:30:08 2024 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 1sBeAh-0000bW-5N for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 May 2024 19:30:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sBeAV-0002lb-UY; Mon, 27 May 2024 13:29:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sBeAU-0002l9-HA for bug-gnu-emacs@gnu.org; Mon, 27 May 2024 13:29:54 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sBeAU-0006gF-9A for bug-gnu-emacs@gnu.org; Mon, 27 May 2024 13:29:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sBeAc-0007nE-Uw for bug-gnu-emacs@gnu.org; Mon, 27 May 2024 13:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Siyuan Chen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 May 2024 17:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71230 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.171683097029874 (code B ref -1); Mon, 27 May 2024 17:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 May 2024 17:29:30 +0000 Original-Received: from localhost ([127.0.0.1]:45152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBeA5-0007ll-85 for submit@debbugs.gnu.org; Mon, 27 May 2024 13:29:30 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:41180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBdiZ-00076p-SL for submit@debbugs.gnu.org; Mon, 27 May 2024 13:01:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sBdiQ-0006j1-Ec for bug-gnu-emacs@gnu.org; Mon, 27 May 2024 13:00:54 -0400 Original-Received: from mail-yb1-xb30.google.com ([2607:f8b0:4864:20::b30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sBdiO-0002BA-LF for bug-gnu-emacs@gnu.org; Mon, 27 May 2024 13:00:54 -0400 Original-Received: by mail-yb1-xb30.google.com with SMTP id 3f1490d57ef6-df771983aedso3219899276.1 for ; Mon, 27 May 2024 10:00:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716829251; x=1717434051; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=yogjqTNE/8nDIed6J7pyiSAuFM/rh7ayp8aRarIHk3s=; b=d7kqNNc8eIGvQ5w/j7p0r+tM0XLy/ff5uf+1vTTc8nuzSf7MluyAZ595dAPuuifxTW 4/scpSBxfLWf2vC8r7Mjot8SQXC7a2kJPtKylRk8alN+nB40IbaOXXzLZrIYwXjvQYaL vzmEpt5moG7i0b+2wWx330SY8NvPupzaB5A8HaVlsigtSWu32Er5q+c6EGlmUe8fOYdk RhnKbdtLExUAeF7buov2vpUqViFNKQpd12GNIjvk0lBEHymlg/cj6ivo/GzCyFSNI+LM 78D6JmVgNf+nmw4KeLVqPX6I80o283ht51b0PfKbxgw+lNKS0yNe/HIN2uxgSDjoJcDR c8Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716829251; x=1717434051; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=yogjqTNE/8nDIed6J7pyiSAuFM/rh7ayp8aRarIHk3s=; b=g8UfQ5jexTZwDjMubJT385FtskmbJ3bgYND+zRox/Zcf2+/um0slQVDg3wwNaDjmxs WNytMXBBaAN9kCDZIiyu+h00Avm/ZW5GI78aopXxiaO1drVQCAimZ3QvUJ7lI+V7Coam EHS7C/k//Hl0YkD4KpjD7hWHo1vLVd9FWZ7kNPRIkHZO3hF1RJPni/RqxkJBxOm3XPvA /FGYkVKfnB8+wRZ6DybyvsYPcdiG1lKphVSZrLA2Uyx+oL6z1xQxTnGMlaSvRiCZDEqB l/R+3ba/26u3zK46XVUo2RWF9nR2fucecUQOhhvEoyQv30ZqHWtEbkyJci9W7IhqX8r3 Wx+A== X-Gm-Message-State: AOJu0YwB8WfpBdS2wmAUrop4GUQAfc2O11FHrPnH0cPJmDUfLtEK04ri W2NoW3TPbgf1Cb3GA7jgYbkXJR2gBHJSkU0QiINeO2AsYe++RKy04tpOokxPsWZcqm89TpyvrXP oLKcxbIE1A6b9knfaoOc5gWAgEIUJMU5jVJU= X-Google-Smtp-Source: AGHT+IHpd0/BxSdLwUtdinpOlCdN/9GmEGddkoh3wpH3UTEUx5wDZA8GZSrHuM9zFQ8YnMKvff8nnL+RXHglqm8rs3Y= X-Received: by 2002:a25:ef09:0:b0:df7:c088:2d5f with SMTP id 3f1490d57ef6-df7c0882f4dmr866744276.39.1716829251331; Mon, 27 May 2024 10:00:51 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::b30; envelope-from=chansey97@gmail.com; helo=mail-yb1-xb30.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, GAPPY_SUBJECT=0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 27 May 2024 13:29:28 -0400 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:286057 Archived-At: --000000000000aa8e4806197275f6 Content-Type: multipart/alternative; boundary="000000000000aa8e4706197275f4" --000000000000aa8e4706197275f4 Content-Type: text/plain; charset="UTF-8" Currently, cua-mode has a bug i.e. when `(setq cua-prefix-override-inhibit-delay nil)`, cut and copy do not work. Also we have to`(setq cua-prefix-override-inhibit-delay nil)`, otherwise cua-mode will not be able to support fast copy/cut & paste. More detail information, see emacs-devel https://lists.gnu.org/archive/html/emacs-devel/2024-05/msg01033.html P.s. This patch based on the mirror repo https://github.com/emacs-mirror/emacs and Tested in Emacs 29.3. Best regards, Siyuan Chen --000000000000aa8e4706197275f4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Currently, cua-mode has a bug i.e. when `(setq
cua= -prefix-override-inhibit-delay nil)`, cut and copy do not work.
<= br>
Also we have to`(setq cua-prefix-override-inhibit-delay nil)`= ,
otherwise cua-mode will not be able to support fast copy/cut & p= aste.

More detail information, see emacs-devel
https://list= s.gnu.org/archive/html/emacs-devel/2024-05/msg01033.html

P.s. Th= is patch based on the mirror repo https://github.com/emacs-mirror/emacs
and Tested in Em= acs 29.3.

Best regards,
Siyuan Chen
--000000000000aa8e4706197275f4-- --000000000000aa8e4806197275f6 Content-Type: text/plain; charset="US-ASCII"; name="0001-Fix-the-issue-when-cua-prefix-override-handler-is-ni.patch" Content-Disposition: attachment; filename="0001-Fix-the-issue-when-cua-prefix-override-handler-is-ni.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lwp75kww0 RnJvbSAwMDZkZTZjNTI3YzAyNTY2MTg1Y2E0ZjBlNWY1ZTQxMTc1ODgyZDY4IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTaXl1YW4gQ2hlbiA8Y2hhbnNleTk3QGdtYWlsLmNvbT4KRGF0 ZTogVHVlLCAyOCBNYXkgMjAyNCAwMDoyOTo1MCArMDgwMApTdWJqZWN0OiBbUEFUQ0hdIEZpeCB0 aGUgaXNzdWUgd2hlbiBjdWEtLXByZWZpeC1vdmVycmlkZS1oYW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HQg KGNhbGwtaW50ZXJhY3RpdmVseSAnY29weS1yZWdpb24tYXMta2lsbCkpKQorICAgIChjdWEtLXBy ZWZpeC1vdmVycmlkZS1oYW5kbGVyKSkpCiAKIChkZWZ1biBjdWEtLXByZWZpeC1yZXBlYXQtaGFu ZGxlciAoKQogICAiUmVwZWF0aW5nIHByZWZpeCBrZXkgd2hlbiByZWdpb24gaXMgYWN0aXZlIHdv cmtzIGFzIGEgc2luZ2xlIHByZWZpeCBrZXkuIgotLSAKMi4zMi4wLndpbmRvd3MuMgoK --000000000000aa8e4806197275f6--