From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#45617: loses the edit region. Works in 23.3, broke in 26.3 Date: Tue, 19 Jan 2021 20:39:35 +0200 Message-ID: <83v9bs7ouw.fsf@gnu.org> 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> <002d01d6e478$ca50cdf0$5ef269d0$@net> <87k0sgirr0.fsf@mail.linkov.net> <002101d6eadc$e816a070$b843e150$@net> <87k0sezj07.fsf@mail.linkov.net> <8335z2bg0h.fsf@gnu.org> <87turcdfyq.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19058"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bobfloyd@comcast.net, 45617@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 19 20:46:00 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 1l1wwx-0004p7-Bz for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Jan 2021 20:45:59 +0100 Original-Received: from localhost ([::1]:34930 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1www-00043E-AQ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Jan 2021 14:45:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1vw6-00066b-HW for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 13:41:14 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40178) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l1vw5-00023R-SL for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 13:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l1vw5-0007zQ-QV for bug-gnu-emacs@gnu.org; Tue, 19 Jan 2021 13:41:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Jan 2021 18:41:01 +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.161108165930695 (code B ref 45617); Tue, 19 Jan 2021 18:41:01 +0000 Original-Received: (at 45617) by debbugs.gnu.org; 19 Jan 2021 18:40:59 +0000 Original-Received: from localhost ([127.0.0.1]:51724 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1vw3-0007z1-D7 for submit@debbugs.gnu.org; Tue, 19 Jan 2021 13:40:59 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1vw1-0007yj-4A for 45617@debbugs.gnu.org; Tue, 19 Jan 2021 13:40:57 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58287) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1vvp-00020H-1U; Tue, 19 Jan 2021 13:40:51 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4073 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l1vvC-00076Z-4Y; Tue, 19 Jan 2021 13:40:44 -0500 In-Reply-To: <87turcdfyq.fsf@mail.linkov.net> (message from Juri Linkov on Tue, 19 Jan 2021 19:45:09 +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:198201 Archived-At: > From: Juri Linkov > Cc: bobfloyd@comcast.net, 45617@debbugs.gnu.org > Date: Tue, 19 Jan 2021 19:45:09 +0200 > > >> The problem is that 'read-from-minibuffer' is implemented in C. > >> If it was implemented in Lisp, it would be easy to add just > >> 'save-mark-and-excursion', but in C this is impossible. > > > > You can do the equivalent of that in C, can't you? > > Sorry, I can't. Because 'save-mark-and-excursion' is a Lisp macro, > but C doesn't have Lisp macros. I didn't mean to suggest that you call a Lisp macro. My suggestion was to perform all the steps 'save-mark-and-excursion' does in C, inline. I don't see why would that be hard, let alone impossible.