From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Bob Floyd" Newsgroups: gmane.emacs.bugs Subject: bug#45617: loses the edit region. Works in 23.3, broke in 26.3 Date: Wed, 6 Jan 2021 14:10:48 -0800 Message-ID: <002d01d6e478$ca50cdf0$5ef269d0$@net> References: <000001d6e16c$984bcb70$c8e36250$@net> <83turycc18.fsf@gnu.org> <87ble4ob6v.fsf@mail.linkov.net> <000601d6e2ea$8f6601e0$ae3205a0$@net> <877dorkznt.fsf@mail.linkov.net> <002701d6e39b$4ac35680$e04a0380$@net> <8735ze9e09.fsf@mail.linkov.net> <83mtxm0vzd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5449"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45617@debbugs.gnu.org To: "'Eli Zaretskii'" , "'Juri Linkov'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 06 23:11:14 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 1kxH1N-0001I3-07 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Jan 2021 23:11:13 +0100 Original-Received: from localhost ([::1]:49268 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxH1M-0005EF-2e for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Jan 2021 17:11:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxH1D-0005E4-0u for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2021 17:11:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34247) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kxH1C-00084A-Pe for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2021 17:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kxH1C-00056g-L2 for bug-gnu-emacs@gnu.org; Wed, 06 Jan 2021 17:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Bob Floyd" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Jan 2021 22:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45617 X-GNU-PR-Package: emacs Original-Received: via spool by 45617-submit@debbugs.gnu.org id=B45617.160997105719618 (code B ref 45617); Wed, 06 Jan 2021 22:11:02 +0000 Original-Received: (at 45617) by debbugs.gnu.org; 6 Jan 2021 22:10:57 +0000 Original-Received: from localhost ([127.0.0.1]:45793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxH16-00056M-Vg for submit@debbugs.gnu.org; Wed, 06 Jan 2021 17:10:57 -0500 Original-Received: from resqmta-po-10v.sys.comcast.net ([96.114.154.169]:48196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxH16-00056A-37 for 45617@debbugs.gnu.org; Wed, 06 Jan 2021 17:10:56 -0500 Original-Received: from resomta-po-15v.sys.comcast.net ([96.114.154.239]) by resqmta-po-10v.sys.comcast.net with ESMTP id xGmkkoiyo2XuvxH0zkcIYc; Wed, 06 Jan 2021 22:10:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1609971049; bh=ZK0yWWSSlrwKjj/h6Ntz6yHq3ITaTNkuSrfuKiPuceE=; h=Received:Received:From:To:Subject:Date:Message-ID:MIME-Version: Content-Type; b=uGmZ7RvJkKRvbUY3fZFBBUPijru8yhmB36G8P2Tu4YWGjjTFbGZ5Vc61q7cv62ZyF OcDto5qBuAqohEFtJnEGzrjZmyxqGwgkf7iqV5ogQWBR13f1kRAS8KVKniqFrjA2Nq k1xnAv5KZ67mE0msnCms9B2G5HhU37KbR3Mx4a2wfViYjBGCwlCux9qgaQJRtjmW9b rHAV85hT7fVFvm7L+r2i3sxIO96aW6wEnX5AVLuduN/pD9i61HKvd88j5c6my0zgkD +d52D9/gdfM5lo0ok/0uA3uHB/cZawQBXYhKYXBTff3WXrd7GjeqleT6GNpRZ1omZO /V1CHGJWdcI4A== Original-Received: from Cache ([IPv6:2601:647:6100:1480::48be]) by resomta-po-15v.sys.comcast.net with ESMTPA id xH0yk0ARjBKOqxH0zkwkOc; Wed, 06 Jan 2021 22:10:49 +0000 X-Xfinity-VMeta: sc=-100.00;st=legit In-Reply-To: <83mtxm0vzd.fsf@gnu.org> X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdbkWGsn0kCAZr7SRgODhM+jtfOGhQAHx2YQ Content-Language: en-us 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:197460 Archived-At: Perhaps another way to think about this is that emacs is "mode-less". I can begin a command, recurse into another, pop out and resume the first command. Without the patch, or minibuffer fix, breaks that design. If the minibffer fix better supports mode-less operation in general it would be better than the patch. -----Original Message----- From: Eli Zaretskii [mailto:eliz@gnu.org] Sent: Wednesday, January 6, 2021 10:19 AM To: Juri Linkov Cc: bobfloyd@comcast.net; 45617@debbugs.gnu.org Subject: Re: bug#45617: loses the edit region. Works in 23.3, broke in 26.3 > From: Juri Linkov > Cc: "'Eli Zaretskii'" , <45617@debbugs.gnu.org> > Date: Wed, 06 Jan 2021 19:44:30 +0200 > > > For my two cents, what you write sounds like the real problem is the > > minibuffer failing to restore on exit. A fix to that would be preferable to > > the patch. After all, who knows what else may affected by the minibuffer! > > I'd be happy to test this alternative. > > The question we need to answer: should this fix affect all other uses > of the minibuffer? So for any command that operates on the active region > and asks its arguments from the minibuffer, when you copy the text > from the original buffer to the minibuffer and thus change its region, > should quitting the minibuffer restore the original region for > all such commands? This means restoring the original mark and point. I think the answer is YES, especially if we did behave like that in the distant past.