From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.bugs Subject: bug#52435: 29.0.50; C-y seems to contain an old contents Date: Sun, 12 Dec 2021 12:18:37 +0100 Message-ID: <8A9C7C2F-642A-454D-A99B-0945A1E2D5F7@Web.DE> References: <46037FBE-8DAB-4913-850C-96F4F78622E2@Web.DE> <877dcafk78.fsf@gnus.org> Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.20.0.1.32\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1938"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 52435@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 12 12:19:12 2021 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 1mwMsp-0000Of-MV for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Dec 2021 12:19:11 +0100 Original-Received: from localhost ([::1]:49204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mwMso-00010x-0T for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Dec 2021 06:19:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwMsg-0000yA-JT for bug-gnu-emacs@gnu.org; Sun, 12 Dec 2021 06:19:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39240) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mwMsg-0003NC-8P for bug-gnu-emacs@gnu.org; Sun, 12 Dec 2021 06:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mwMsg-0004u5-35 for bug-gnu-emacs@gnu.org; Sun, 12 Dec 2021 06:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Peter Dyballa Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Dec 2021 11:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52435 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 52435-submit@debbugs.gnu.org id=B52435.163930792618826 (code B ref 52435); Sun, 12 Dec 2021 11:19:02 +0000 Original-Received: (at 52435) by debbugs.gnu.org; 12 Dec 2021 11:18:46 +0000 Original-Received: from localhost ([127.0.0.1]:50786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwMsQ-0004ta-HH for submit@debbugs.gnu.org; Sun, 12 Dec 2021 06:18:46 -0500 Original-Received: from mout.web.de ([212.227.15.3]:47109) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwMsO-0004tN-Jt for 52435@debbugs.gnu.org; Sun, 12 Dec 2021 06:18:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1639307918; bh=1nqPVRCJXmnid1zgfvhIYPxS0uOQzmsNWtF7/FWeguo=; h=X-UI-Sender-Class:Subject:From:In-Reply-To:Date:Cc:References:To; b=CnF8G/+ihmH7P9VDJ6KgXggbWIOj5VsxzRjr/NNJQzjR8eFXRbCJacKS/sSaC9UO0 s/x/ipNaTsc6M6kDDJ0XeUuXS9xiBQ/NQF5ZLx62AWuB4v5/bHP5fIMTlwVxXfjWrT a0QY2u0F4GM0gVYOg2VwwOlmmG/K5Z1w3yd8S5U4= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from smtpclient.apple ([176.199.137.124]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MxHYK-1mcKxC1Qxk-00xgE6; Sun, 12 Dec 2021 12:18:38 +0100 In-Reply-To: <877dcafk78.fsf@gnus.org> X-Mailer: Apple Mail (2.3693.20.0.1.32) X-Provags-ID: V03:K1:yQQggWzRCaXes6FaENdA0DVvjFvte/lTFKHL0eg9yL3ps93dt/U ql5FrHDZCsHXFrNa9LNzRFHfN7+FYWyGSKqYWRQd3+XADckOVhFqMVaTLmO3YlvmTHqgdMQ 8eQDwjxKBt4VrSRQOZYg4CdYobsoW9X/zSYSeiioDfMKEuyYLysjd3SefSqXO0YaH7OZ2cI B/BW5+rDE40nq5wzNeK7g== X-UI-Out-Filterresults: notjunk:1;V03:K0:EZqj4jVsQlQ=:yvBS9Clx6g3mXl3gQG4S52 QLqYWcc6dVJPQf/NsIhlITAfKdVFVWsM2FWD8+bSqdZIcN/zlfLsNjj984cCOOCfCoPrlmhMx xJXJ8jmQ0EQyihzElgNpXImUOjiBrfbzaRLe2EP2eu57S93FoFQMRnNqJR2DIrztZrCIYaYkS kHc/o2Hxj1jUKAYcOR9QTfVp+a0bIw59Dac2vdAF/8wneUKC0NGV2C3MB46hL5nGj1/46z45l bxwGnXIuPO8Y6zGSBiOeV/IJ+IHx69W4SFgRnmh4vw395v3wAgRjuzxz1+3/4C+yP+BAsW1cB neoNJHkM6EzqjLpYmdCEGpOJY8Fgq7xFmrihjsZF4vYyygAc5AMlXCFWh9SL7B+lIsQrr+NJn /mvKGH1UJ7ibS5I+O+7VxsldKydMznI8Ljip46hscSKRJ0oMsqlkY+Xd8PhvDrSQCIHDy64h6 V87paRpo7nrYJDk0FiqhRh2VeTSorjp34whqJPAtOpYc9mJhm4RLv+gfC/mJa6mWgHh3Wbo7g hRy66BzNG1grjqcJT3ZaDxzTqo01Cby9qlGwW8F07pW7SRYwjP+UEqPx4Myvg+zx14IMi/7kA 4dylWhA5kzORjMUPjuOku1RzsTcBV0eJkt+/LMbG4M+LOS1fFOu/JS95Cw0ioVxK3485IT4VC EYyAtRdzWyzDDPxWMLELi/l/HoeWRttPFCogtzh0yU7X8i6WIvxOQCRURlFtDj0qnOitTnubL Xx+yk85zP8Wj1ntbAUI5U94WAgzAgBIOuqQJE1OC8Mu8hhWCSqivHWDOTarXwLOfyLLgva8z 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:222212 Archived-At: Yes, I can reproduce it with -Q. Launch: /opt/local/bin/emacs-29.0.50 -Q. Or equivalent. Inside GNU Emacs 29.0.50: M-x shell RET. In *shell* buffer just invoke ls -l RET for some contents. Or cat = something with a few lines contents. Move the mouse cursor and point = somewhere into this output, press C-SPACE to start marking a region. = Move the mouse cursor some lines away (above or below the start of = region). M-| or M-x shell-command-on-region RET. I chose to use "awk = '{print $NF}'". Now change to buffer *Shell Command Output* with C-x o. I think this is = decisive. Just clicking into *Shell Command Output* buffer seems to do = the right things. You are at the beginning of buffer and can immediately = replace-string ^J against SPACE CHARACTER, go to beginning of line (C-a) = and kill it with C-k. Now return to *shell* buffer with C-x o again. The = region is still marked, gets high-lighted again. With Esc-> go to the = command line prompt and C-y to insert the line you killed in *Shell = Command Output* buffer =E2=80=93 but something else (not from The Move) = is inserted. But: This is also the behaviour in GNU Emacsen 26.1, 27.1, 28.0.50 =E2=80=93= I just used C-x o for the first time in this everyday procedure? = transient-mark-mode is t, assuming it would clear the marked region when = leaving it or the buffer. The documentation in GNU Emacs 29.0.50 has become vague (on function = transient-mark-mode): The mark is "deactivated" after certain non-motion commands, including those that change the text in the buffer, = and during shift or mouse selection by any unshifted cursor motion command (see Info node =E2=80=98Shift Selection=E2=80=99 for = more details). The documentation in GNU Emacs 26.1 seems to be clearer: The mark is "deactivated" by changing the buffer, and after certain other operations that set the mark but whose main purpose is something else--for example, incremental search, M-<, and M->. And it states that the region is cleared when changing to another = buffer. But OK, maybe I have to learn this different behaviour=E2=80=A6 (After marking and applying shell-command-on-region I go to = *compilation* buffer and then exchange it with *Shell Command Output* so = that I am immediately at compilation again. Then I kill the now useless = *Shell Command Output* buffer. During this period with new GNU Emacs = 29.0.50 I exchanged *shell* with *Shell Command Output* and fell back = into it afterwards, and the mark was still active and became = high-lighted again =E2=80=93 which puzzled me. When I then invoked = compile again, the yank contents was a different one than killed. The = first time this happened I quit Emacs, assuming it or I would have a = problem with the new macOS version Monterey. The next time in new = instance I just started my procedure again, and now for the third = occurrence I tested Esc-y and more.) -- Greetings Pete With Capitalism man exploits man. With communism it's the exact = opposite.