From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#37700: 27.0.50; undo mouse-drag-and-drop-region ineffective Date: Thu, 31 Oct 2019 18:10:12 +0200 Message-ID: <837e4kopzv.fsf@gnu.org> References: <3311689D-B1DF-4BAC-86BA-E3D2C6D2ECF1@acm.org> <94D2DE0C-8BD0-4CCF-B77D-5606A1D227DD@acm.org> <5be797bb-9d6b-cebe-edf4-21b4a5944595@gmx.at> <60b5bfa7-0aaf-40c0-3a1d-d0c0c5c662c6@gmx.at> <354ABF35-C5D0-4045-B9F0-5615A64408E6@acm.org> <83k199nasx.fsf@gnu.org> <83ftjxn94q.fsf@gnu.org> <37DDF48D-FC37-47A8-8CEC-C6EB66AB2BF7@acm.org> <9FE0E2D6-E4EA-4D7C-871C-3483AC53B295@acm.org> <41286005-259E-4B78-A1FF-746E7A753FB4@acm.org> <83d0ednfcb.fsf@gnu.org> <4E95A327-1B10-46FA-B08F-1877417230A8@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="174207"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37700@debbugs.gnu.org, tkk@misasa.okayama-u.ac.jp, homeros.misasa@gmail.com, monnier@iro.umontreal.ca To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 31 17:26:32 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iQDHM-000jDw-2i for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Oct 2019 17:26:32 +0100 Original-Received: from localhost ([::1]:52312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQDHJ-00057T-Ny for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Oct 2019 12:26:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35893) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQD2N-0005Ic-Q3 for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 12:11:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQD2M-0005oo-N7 for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 12:11:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45299) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQD2M-0005oh-Ji for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 12:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iQD2M-0001qc-B8 for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2019 12:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 Oct 2019 16:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37700 X-GNU-PR-Package: emacs Original-Received: via spool by 37700-submit@debbugs.gnu.org id=B37700.15725382237046 (code B ref 37700); Thu, 31 Oct 2019 16:11:02 +0000 Original-Received: (at 37700) by debbugs.gnu.org; 31 Oct 2019 16:10:23 +0000 Original-Received: from localhost ([127.0.0.1]:54120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQD1j-0001pa-Av for submit@debbugs.gnu.org; Thu, 31 Oct 2019 12:10:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQD1h-0001pJ-GF for 37700@debbugs.gnu.org; Thu, 31 Oct 2019 12:10:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iQD1Z-00054W-R5; Thu, 31 Oct 2019 12:10:13 -0400 Original-Received: from [176.228.60.248] (port=4372 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iQD1X-0003GD-LA; Thu, 31 Oct 2019 12:10:13 -0400 In-reply-to: <4E95A327-1B10-46FA-B08F-1877417230A8@acm.org> (message from Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= on Thu, 31 Oct 2019 17:04:41 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170528 Archived-At: > From: Mattias EngdegÄrd > Date: Thu, 31 Oct 2019 17:04:41 +0100 > Cc: monnier@iro.umontreal.ca, 37700@debbugs.gnu.org, > tkk@misasa.okayama-u.ac.jp, homeros.misasa@gmail.com > > > Fine with me (I proposed something like this during the original > > discussion), but please document this property in the ELisp manual. > > Then I apologise for misunderstanding you! No need to apologize; I was just explaining why I like this patch ;-) > Attached patch amended with changes to the manual and NEWS. Thanks. > --- a/doc/lispref/text.texi > +++ b/doc/lispref/text.texi > @@ -1451,6 +1451,12 @@ Undo > This function does not bind @code{undo-in-progress}. > @end defun > > +Some commands leave the region active after execution in such a way that > +it interferes with selective undo of that command. To make @code{undo} > +ignore the active region when invoked immediately after such a command, > +set the property @code{undo-inhibit-region} of the command's function > +symbol to a non-nil value. Please add here a cross-reference to the other place, where this property is described. > +** 'undo' can be made to ignore the active region for a command > +by setting its 'undo-inhibit-region' symbol property to non-nil. Instead of "its" I'd use "that command's", because "its" is a bit ambiguous in this context.