From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Can we make set_point_both less expensive? Date: Sun, 22 Mar 2015 18:23:24 -0400 Message-ID: References: <5505E34C.4000106@dancol.org> <550A7FFB.7040502@gmx.at> <550BD579.9040804@gmx.at> <550C3335.4070405@gmx.at> <83zj77vh87.fsf@gnu.org> <550C7AD1.4080806@gmx.at> <83egojv02r.fsf@gnu.org> <83a8z6vlyn.fsf@gnu.org> <838ueqtnjb.fsf@gnu.org> <834mpetgri.fsf@gnu.org> <83wq29so1g.fsf@gnu.org> <83lhiprktr.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427063045 15336 80.91.229.3 (22 Mar 2015 22:24:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Mar 2015 22:24:05 +0000 (UTC) Cc: rudalics@gmx.at, dancol@dancol.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 22 23:23:50 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YZoHY-0008R0-Sz for ged-emacs-devel@m.gmane.org; Sun, 22 Mar 2015 23:23:45 +0100 Original-Received: from localhost ([::1]:52788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZoHX-0006Io-U4 for ged-emacs-devel@m.gmane.org; Sun, 22 Mar 2015 18:23:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZoHL-0006Ih-Gr for emacs-devel@gnu.org; Sun, 22 Mar 2015 18:23:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YZoHK-0007sh-Iz for emacs-devel@gnu.org; Sun, 22 Mar 2015 18:23:31 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:15718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZoHF-0007s7-Ri; Sun, 22 Mar 2015 18:23:25 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAGvvdVRFpZgf/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCws0EhQYDSSIE6IRi3snSwMDgz4DA4NtBJ5uhHWEWA X-IPAS-Result: AgUFAGvvdVRFpZgf/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCws0EhQYDSSIE6IRi3snSwMDgz4DA4NtBJ5uhHWEWA X-IronPort-AV: E=Sophos;i="5.01,1,1400040000"; d="scan'208";a="114224274" Original-Received: from 69-165-152-31.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([69.165.152.31]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 22 Mar 2015 18:23:25 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id C9D0EAE11F; Sun, 22 Mar 2015 18:23:24 -0400 (EDT) In-Reply-To: <83lhiprktr.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 22 Mar 2015 19:41:36 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:184129 Archived-At: >> It's right after an incomplete redisplay, and right before the >> next redisplay. I count this as still "before redisplay" since it's >> immediately followed by redisplay. > It is "during redisplay" in the sense that the position of cursor was > not yet finalized, and you already move it, perhaps for no good > reason. I don't deny it can be described differently. I.e. sometimes it happens during redisplay, sometimes it happens in a sit-for, sometimes it happens at the end of a command. But always it happens right before a redisplay. > Ah, I misunderstood your question. The answer for your question is > "abort redisplay cycle after moving point out of intangible". In which case you risk inf-looping (and hence need to detect/prevent it), same as with pre-redisplay-function. Stefan