From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Can we make set_point_both less expensive? Date: Sun, 22 Mar 2015 19:41:36 +0200 Message-ID: <83lhiprktr.fsf@gnu.org> References: <5505E34C.4000106@dancol.org> <5509CC67.5010207@gmx.at> <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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1427046138 18522 80.91.229.3 (22 Mar 2015 17:42:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Mar 2015 17:42:18 +0000 (UTC) Cc: rudalics@gmx.at, dancol@dancol.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 22 18:42:13 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 1YZjt5-0007sT-G5 for ged-emacs-devel@m.gmane.org; Sun, 22 Mar 2015 18:42:11 +0100 Original-Received: from localhost ([::1]:51875 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZjt4-0004PX-QJ for ged-emacs-devel@m.gmane.org; Sun, 22 Mar 2015 13:42:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZjsu-0004PP-AV for emacs-devel@gnu.org; Sun, 22 Mar 2015 13:42:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YZjsq-0000x1-7n for emacs-devel@gnu.org; Sun, 22 Mar 2015 13:42:00 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:44874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZjsp-0000wt-WD for emacs-devel@gnu.org; Sun, 22 Mar 2015 13:41:56 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NLM00B00JMMGC00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sun, 22 Mar 2015 19:41:54 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NLM00BGCJTS2WB0@a-mtaout22.012.net.il>; Sun, 22 Mar 2015 19:41:52 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:184120 Archived-At: > From: Stefan Monnier > Cc: rudalics@gmx.at, dancol@dancol.org, emacs-devel@gnu.org > Date: Sun, 22 Mar 2015 09:58:02 -0400 > > >> AFAIK this "elsewhere" is still "before redisplay". > > No, it's "during redisplay". > > 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. > >> >> > or maybe there's a better place? > >> >> Like where? > >> > Where we set the cursor, of course. > >> What if it moves point outside the window? > > It can't. > > That's a misfeature: when using cursor-intangible to force going from > field to field, it may very well be that C-n makes you jump to the next > field which is past window-end (even though C-n itself just jumped to > the next char which is still before window-end), so it should be > possible for the handling of cursor-intangible to move point outside of > the window. Ah, I misunderstood your question. The answer for your question is "abort redisplay cycle after moving point out of intangible".