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: Tue, 17 Mar 2015 09:08:15 +0200 Message-ID: <83h9tkyucg.fsf@gnu.org> References: <5505E34C.4000106@dancol.org> <838uex1u1m.fsf@gnu.org> <8361a029p2.fsf@gnu.org> <83vbi0zukw.fsf@gnu.org> <55071E92.1050700@dancol.org> <83twxkztkn.fsf@gnu.org> <5507219D.2010504@dancol.org> <83lhiwzq3y.fsf@gnu.org> <5507408D.1040104@dancol.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1426576132 10301 80.91.229.3 (17 Mar 2015 07:08:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Mar 2015 07:08:52 +0000 (UTC) Cc: monnier@IRO.UMontreal.CA, emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 17 08:08:43 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 1YXlcE-00082G-Qv for ged-emacs-devel@m.gmane.org; Tue, 17 Mar 2015 08:08:38 +0100 Original-Received: from localhost ([::1]:53046 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXlcE-0002Iw-4V for ged-emacs-devel@m.gmane.org; Tue, 17 Mar 2015 03:08:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXlcA-0002Ip-Uy for emacs-devel@gnu.org; Tue, 17 Mar 2015 03:08:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXlc6-0000Xn-V2 for emacs-devel@gnu.org; Tue, 17 Mar 2015 03:08:34 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:41828) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXlc6-0000XW-Mr for emacs-devel@gnu.org; Tue, 17 Mar 2015 03:08:30 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NLC00E00H393D00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Tue, 17 Mar 2015 09:08:29 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NLC00E02H623I00@a-mtaout20.012.net.il>; Tue, 17 Mar 2015 09:08:27 +0200 (IST) In-reply-to: <5507408D.1040104@dancol.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 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:183941 Archived-At: > Date: Mon, 16 Mar 2015 13:43:57 -0700 > From: Daniel Colascione > CC: monnier@IRO.UMontreal.CA, emacs-devel@gnu.org > > > My understanding was that Stefan wants these hooks replaced with > > different ones, not throw them away. So I was talking about those > > different hooks. > > I don't see a good use case for either the old or the new hook. Instead > of making point motion updates "edge triggered" (i.e., run a function > when point enters or exits a certain region), modes should be using a > "level triggered" approach, where they inspect the current location of > point and update whatever state they need based on that current location. There are a lot of features in Emacs that might make little sense to me or you or someone else. Removing features just because of that, or because we think they don't have use cases that are valid in our eyes, is not a practice I'd recommend. At least, we never did that in Emacs, AFAIR. Features might be deprecated because they cause real damage to Emacs development, but even then we do that very cautiously and slowly. My $0.02, anyway.