From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: mouse-drag-and-drop-region Date: Fri, 24 Nov 2017 15:45:21 +0200 Message-ID: <83d147aiz2.fsf@gnu.org> References: <5A0ABD41.5040402@gmx.at> <20171116.092825.1408561780440493246.tak.kunihiro@gmail.com> <5A0D562D.1010803@gmx.at> <20171120.222937.949251858246319152.tak.kunihiro@gmail.com> <5A13F0CA.2030605@gmx.at> <5A1432B0.8080700@gmx.at> <5A1534B4.6030203@gmx.at> <5A167CEC.5070400@gmx.at> <838texaser.fsf@gnu.org> <5A17E010.4090309@gmx.at> <83k1yg9gpz.fsf@gnu.org> <5A17E938.2020308@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1511531198 25501 195.159.176.226 (24 Nov 2017 13:46:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 24 Nov 2017 13:46:38 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 24 14:46:28 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIEJI-00063P-Bx for ged-emacs-devel@m.gmane.org; Fri, 24 Nov 2017 14:46:28 +0100 Original-Received: from localhost ([::1]:49365 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIEJP-0002xB-LM for ged-emacs-devel@m.gmane.org; Fri, 24 Nov 2017 08:46:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIEIp-0002v0-Gd for emacs-devel@gnu.org; Fri, 24 Nov 2017 08:46:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIEIl-0004IY-LC for emacs-devel@gnu.org; Fri, 24 Nov 2017 08:45:59 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIEIl-0004IP-HL; Fri, 24 Nov 2017 08:45:55 -0500 Original-Received: from [176.228.60.248] (port=2888 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eIEIg-00064x-9l; Fri, 24 Nov 2017 08:45:55 -0500 In-reply-to: <5A17E938.2020308@gmx.at> (message from martin rudalics on Fri, 24 Nov 2017 10:41:12 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:220430 Archived-At: > Date: Fri, 24 Nov 2017 10:41:12 +0100 > From: martin rudalics > CC: monnier@iro.umontreal.ca, emacs-devel@gnu.org > > > Why would it be unsafe wrt redisplay? > > Because of that part of tracking_off: > > /* Redisplay may have been preempted because there was input > available, and it assumes it will be called again after the > input has been processed. If the only input available was > the sort that we have just disabled, then we need to call > redisplay. */ > if (!readable_events (READABLE_EVENTS_DO_TIMERS_NOW)) > { > redisplay_preserve_echo_area (6); > get_input_pending (READABLE_EVENTS_DO_TIMERS_NOW); > } With redisplay-dont-pause being t by default, this shouldn't happen unless someone customizes that option. > IIUC we don't do that in `mouse-drag-track'. Why should we? mouse-drag-track works via the normal command loop machinery.