From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#57148: bug#57147: bug#57148: 27.2; Problem with kill-new Date: Sat, 13 Aug 2022 19:54:25 +0800 Message-ID: <8735e0uzny.fsf@yahoo.com> References: <25333.38874.190001.846318@gargle.gargle.HOWL> <87tu6i8fkv.fsf@localhost> <87lertmp9m.fsf_-_@gnus.org> <87lersvr7q.fsf@yahoo.com> <25335.4037.212955.551896@gargle.gargle.HOWL> <83lersmzyn.fsf@gnu.org> <87zgg85wj2.fsf@localhost> <877d3cv5ud.fsf@yahoo.com> <87wnbc5uwr.fsf@localhost> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26807"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Eli Zaretskii , 57148@debbugs.gnu.org, 57147@debbugs.gnu.org, larsi@gnus.org, alain.cochard@unistra.fr To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 13 13:55:22 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 1oMpjd-0006lv-Pv for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Aug 2022 13:55:21 +0200 Original-Received: from localhost ([::1]:50568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMpjc-0008QG-Fs for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Aug 2022 07:55:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMpjL-0008OT-1J for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 07:55:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41881) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMpjK-00064Q-Np for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 07:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oMpjK-0001z7-Kl for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 07:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Aug 2022 11:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57148 X-GNU-PR-Package: emacs Original-Received: via spool by 57148-submit@debbugs.gnu.org id=B57148.16603916837585 (code B ref 57148); Sat, 13 Aug 2022 11:55:02 +0000 Original-Received: (at 57148) by debbugs.gnu.org; 13 Aug 2022 11:54:43 +0000 Original-Received: from localhost ([127.0.0.1]:59860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMpj1-0001yG-2A for submit@debbugs.gnu.org; Sat, 13 Aug 2022 07:54:43 -0400 Original-Received: from sonic311-23.consmr.mail.ne1.yahoo.com ([66.163.188.204]:43679) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMpj0-0001xz-1H for 57148@debbugs.gnu.org; Sat, 13 Aug 2022 07:54:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1660391675; bh=+ux0HyqF/xgdUIsI18tE2tQqp/sFJXogmSgHrMOD4GU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=V4LQ3dkkG6WXNAOZHEA78H6MPA2Qq/QkwZT2ON3HH2sH7kA/N5Comkt0cyVJqUfgaU9/kGbxmxdWL7up1cZur+DWrtNF6h3u56p1jiklzcOPr30EjXdp9A9TouKGS0pYX4n5V4hMy0Qu7jx6asrjNV6egyNxvsjH5fhB9vEvS1GVM3m6esk9knOQSJe5Su67ILieLZ/XoTEK6uxQhIGdBJQRP4LmI1XOvUXMioDZGdVc0bxuJHo9JaWNvosuOLvBYRq9hLq4Ci55/P2zt5gfRWpuvH9E0Nep/G5OWEJGtZ7pht1p2OI60dGjFUxlmeJpA82f79L6J/p29ZoXHtjFJA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1660391675; bh=QxqxlLZie9fWIQO14eTJ1nQ1SuuNwSnophCCagbjLcr=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=pN+O4iuXse31A/ZV9eBUY/o/RgmpJzZUa9C+WGECxgh4HBS0lS0osBE+vNHFlQYF4juOjLhuZJ65sJwOdt10BQJMGN9CAMNLwmNb4pVqByDo8kW87glfPEyEAHouVsc7CpbLF9DQpJ8VTltnJif5gdifdoPTa5I8l73SJKt/yRKHld3T/G48ALoMdGm4PF01XlloQIZ5ELJyCbrJQG/oVXsiBjZyA4530Bg3lYgqw+Rin9Xx9O5DlBfcUr9Jq2C1k1fQGa04rMVBmeOfWGruEfQSitebzUUwYATqxYwWlvNiNkL18Pq0K0SecyKAdaJDZqhO2f2YhRL6Pok3ny96vA== X-YMail-OSG: KSlF5CYVM1k_SBxsObUpaSKUV5B.2VHZ2ZmAXA9UDLew4bZ1OvtxFXn32siiLKv bEmo7IAjEtyp7LpOWcSNe403vtHTj.HkRYWqPwX45B0DE5XQizSqRlkMHeR7wz6Tq9eK6TntvEIg 3uEJBLau56ibflFMLf3SIOtehQm2j_lIqOgwalDqT0r3RZ2ntryMKd1H2dOR2XttnGf77IE29be1 m4rLfHHLkM_POkeGFp_JTuMbKeHRs2_p1igFeqtwR9VY6q_RP7hI1rLmRm9chdnnnCBY1LWqiney Vl04.KxTwt1rWRQCVB.r3.ON17IMR65F9JfkCOqy127uA7B7GhcMi0cP7pCc2gZX3.X2YWVszFgH CLmtb_0QYAShhAuAqtzg_vOzHUD18VvFWUW393JAoMFS0CK.NkZKCdl9F0nEXD8.fKflStJ0C5aE EoHXcXuDCXZmkKeNrdFY46GB4iQllQNqm.mjbiqUERYfOJS1x7MfEAK8DMlFhuC0tFAmcMWokoG0 GHmB80NluPrRsLwHHWh0L9Bbh2ZgD4JARV_JNE3Kuo0GxpG.Id5y4XbPct7SRFH_3xMmgLUzHlhY ZWoX_soDgPcH3mMiu0.hREet1FKbZ43rsQE2uD44mgYQmj3HbfppcVv5BIBJ9Pi7LRQbwAfqpyjr NVEQlea0HB_p.3sJ4OPgTC26_kSP_04nph9QJS4Zz.pAlu7xm6ZSAXGS_uq4IQGHGPBGlUx3QTSw BipFEd1F5dZjuiMqVzoJXzRm19caQfhrKNWm6Rzfs7UQnT5OuiyQUl8dmRhLRZZIgqNPRR5BmONO _78XZ.WinF625UYYkugTb2HfbY8ow7zFCaXpwrLjQk X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Sat, 13 Aug 2022 11:54:35 +0000 Original-Received: by hermes--canary-production-sg3-6f58cd9b5-slt79 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID e423dff211bff421bdd9db9d4f0b2726; Sat, 13 Aug 2022 11:54:30 +0000 (UTC) In-Reply-To: <87wnbc5uwr.fsf@localhost> (Ihor Radchenko's message of "Sat, 13 Aug 2022 17:56:20 +0800") X-Mailer: WebService/1.1.20531 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:239512 Archived-At: Ihor Radchenko writes: > I think that's because I accidentally replied to the report before it > got registered by debbugs. > > Anyway, here is the recipe: > > 1. Create bug.el with the following contents: > ---- > (custom-set-variables > '(select-enable-clipboard nil) > '(select-enable-primary t)) > (defun my/copy-const (beg end) > (interactive "r") > (setq deactivate-mark t) > (kill-new "Constant string")) > ---- > 2. Create bug.org with the following contents: > ---- > * headline > Hidden text inside > * another headline > ---- > 3. emacs -Q -l /path/to/bug.el /path/to/bug.org > 4. S- > 5. Move point to bob, activate mark, and select down to the eob > 6. M-x my/copy-const > 7. C-y > > Expected: "Constant string" is inserted > Observed: Selected region is inserted. This is intended behavior. Deactivating the mark will always assert ownership over the primary selection with the contents of the region. See the doc string of `deactivate-mark' for more details.