From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: Can we make set_point_both less expensive? Date: Mon, 16 Mar 2015 15:03:11 -0300 Message-ID: References: <5505E34C.4000106@dancol.org> <55064EC8.9010505@dancol.org> <834mpk29mq.fsf@gnu.org> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1134daf6c933a505116ba978 X-Trace: ger.gmane.org 1426529061 13215 80.91.229.3 (16 Mar 2015 18:04:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Mar 2015 18:04:21 +0000 (UTC) Cc: dancol@dancol.org, Stefan Monnier , emacs-devel To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 16 19:04:20 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 1YXZMP-0002Rv-0q for ged-emacs-devel@m.gmane.org; Mon, 16 Mar 2015 19:03:29 +0100 Original-Received: from localhost ([::1]:50970 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXZMO-0000iC-C2 for ged-emacs-devel@m.gmane.org; Mon, 16 Mar 2015 14:03:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXZME-0000hx-BV for emacs-devel@gnu.org; Mon, 16 Mar 2015 14:03:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXZMA-0007eL-Cj for emacs-devel@gnu.org; Mon, 16 Mar 2015 14:03:18 -0400 Original-Received: from mail-la0-x233.google.com ([2a00:1450:4010:c03::233]:35578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXZM8-0007dT-Vn; Mon, 16 Mar 2015 14:03:13 -0400 Original-Received: by labjg1 with SMTP id jg1so46943489lab.2; Mon, 16 Mar 2015 11:03:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=UJM9Pw07adV/PchA4wKSnTepCCosaJezVxKqNlnhJYw=; b=uyRgsDTjhbYmyen8Jga+CH5kIS26CG/H4xEU6FTVBIr0bDlO5RGxMwNZhYvwHlIuSO NUk0sZWi9prOSK/ecTBGmZJ7d4VPlc/Yd6f4r47HFTVHOogYSLyyj5vWHV5/BALtN07O u1hb1CSK1R7m+N1CcqoeGXjUxOcYoyrPVERnJSg0fPagC9H4wy+8hvrNQkn5nFN/RuNp oMNiKSZlfC9CtTFdHEDOPlgj1SI5gP2eI5nzSH/egdGxpNsADobd7nlO67MCnHJyR3xa +Xg2E/9lZn05dODB7mvBr9htHvx0iOImM8NUJqCiXXC7Kpvr+mB3nUt9MUBeDncNvwgu ablw== X-Received: by 10.112.110.231 with SMTP id id7mr56556330lbb.28.1426528991259; Mon, 16 Mar 2015 11:03:11 -0700 (PDT) Original-Received: by 10.112.207.225 with HTTP; Mon, 16 Mar 2015 11:03:11 -0700 (PDT) Original-Received: by 10.112.207.225 with HTTP; Mon, 16 Mar 2015 11:03:11 -0700 (PDT) In-Reply-To: <834mpk29mq.fsf@gnu.org> X-Google-Sender-Auth: DOLb-FOEmuZXjxkkpCJiIkZLHAE X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::233 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:183916 Archived-At: --001a1134daf6c933a505116ba978 Content-Type: text/plain; charset=UTF-8 On Mar 16, 2015 4:24 PM, "Eli Zaretskii" wrote: > > > From: Stefan Monnier > > Date: Mon, 16 Mar 2015 08:49:02 -0400 > > Cc: Emacs developers > > > > > So you propose effectively making inhibit-point-motion-hooks default to > > > t? Why not just do precisely that? > > > > Because IIRC inhibit-point-motion-hooks also inhibits cursor-motion > > hooks > > Now I'm confused: there's no cursor-motion in Emacs, only > point-motion. But you already know that, so I don't understand what > are you alluding to here. IIUC, the argument is that these hooks should happen between commands, not in the middle of elisp code at every goto-char. --001a1134daf6c933a505116ba978 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Mar 16, 2015 4:24 PM, "Eli Zaretskii" <eliz@gnu.org> wrote:
>
> > From: Stefan Monnier <monnier@iro.umontreal.ca>
> > Date: Mon, 16 Mar 2015 08:49:02 -0400
> > Cc: Emacs developers <e= macs-devel@gnu.org>
> >
> > > So you propose effectively making inhibit-point-motion-hooks= default to
> > > t? Why not just do precisely that?
> >
> > Because IIRC inhibit-point-motion-hooks also inhibits cursor-moti= on
> > hooks
>
> Now I'm confused: there's no cursor-motion in Emacs, only
> point-motion.=C2=A0 But you already know that, so I don't understa= nd what
> are you alluding to here.

IIUC, the argument is that these hooks should happen between= commands, not in the middle of elisp code at every goto-char.

--001a1134daf6c933a505116ba978--