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: Mon, 16 Mar 2015 14:57:30 -0400 Message-ID: References: <5505E34C.4000106@dancol.org> <838uex1u1m.fsf@gnu.org> <8361a029p2.fsf@gnu.org> <83vbi0zukw.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1426532270 3044 80.91.229.3 (16 Mar 2015 18:57:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Mar 2015 18:57:50 +0000 (UTC) Cc: dancol@dancol.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 16 19:57:42 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 1YXaCq-0007VR-LJ for ged-emacs-devel@m.gmane.org; Mon, 16 Mar 2015 19:57:40 +0100 Original-Received: from localhost ([::1]:51188 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXaCq-00016U-46 for ged-emacs-devel@m.gmane.org; Mon, 16 Mar 2015 14:57:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXaCm-00016N-G5 for emacs-devel@gnu.org; Mon, 16 Mar 2015 14:57:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXaCj-0000CS-95 for emacs-devel@gnu.org; Mon, 16 Mar 2015 14:57:36 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:44507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXaCj-0000BU-4u; Mon, 16 Mar 2015 14:57:33 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t2GIvUE7017945; Mon, 16 Mar 2015 14:57:31 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id E432D6615C; Mon, 16 Mar 2015 14:57:30 -0400 (EDT) In-Reply-To: <83vbi0zukw.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 16 Mar 2015 20:05:35 +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 RV5247=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5247> : inlines <2424> : streams <1406529> : uri <1882039> 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:183921 Archived-At: >> >> what users of those features normally want is to catch movement of >> >> the cursor >> > You mean, we should do this in redisplay? >> Probably in pre-redisplay-hook or in pre/post-command-hook, yes. > That contradicts the "catch movement of cursor" idea: redisplay could > well move point from where it is found before redisplay, as you know. Indeed, that's a bug that we need to fix: after moving point, redisplay should re-run pre-redisplay-hook; same thing after scrolling. Stefan