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: Sat, 21 Mar 2015 10:03:53 -0400 Message-ID: References: <5505E34C.4000106@dancol.org> <55080104.9070606@gmx.at> <5508800E.3070600@gmx.at> <55092AE0.1080206@gmx.at> <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> <550D4100.6030500@gmx.at> <83k2yatypj.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1426946673 20249 80.91.229.3 (21 Mar 2015 14:04:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Mar 2015 14:04:33 +0000 (UTC) Cc: martin rudalics , dancol@dancol.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 21 15:04:26 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 1YZK0l-0000aD-Ar for ged-emacs-devel@m.gmane.org; Sat, 21 Mar 2015 15:04:23 +0100 Original-Received: from localhost ([::1]:47890 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZK0f-00089g-MH for ged-emacs-devel@m.gmane.org; Sat, 21 Mar 2015 10:04:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZK0U-0007xn-KX for emacs-devel@gnu.org; Sat, 21 Mar 2015 10:04:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YZK0Q-0004LW-Jt for emacs-devel@gnu.org; Sat, 21 Mar 2015 10:04:06 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:53092) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZK0Q-0004LI-F4; Sat, 21 Mar 2015 10:04:02 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t2LE3rMp021524; Sat, 21 Mar 2015 10:03:53 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 51292127B; Sat, 21 Mar 2015 10:03:53 -0400 (EDT) In-Reply-To: <83k2yatypj.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 21 Mar 2015 12:46:32 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5252=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5252> : inlines <2455> : streams <1409170> : uri <1886387> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:184094 Archived-At: >> > Another, related, requirement is that we never call >> > pre-redisplay-function when point is in a position that is not >> > supposed to be visible by the user. >> Do you mean invisible text here? > No, I mean positions traversed while "this command" is executed. The > position shown to the user is the last one of those, but how do we > ensure that pre-redisplay-function is never run for those? Ah, I see what you mean now: the command ensures this by not causing redisplay during its execution. Since pre-redisplay-function is run only at the beginning of redisplay, it is only run when we're about to make the current state "visible by the user". Stefan