emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can we make set_point_both less expensive?


From: Daniel Colascione
Subject: Re: Can we make set_point_both less expensive?
Date: Sun, 15 Mar 2015 20:32:24 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

On 03/15/2015 08:02 PM, Stefan Monnier wrote:
>> overlays. Setting inhibit-point-motion-hooks helped, but it occurs to me
>> that the operation shouldn't have been expensive in the first place.
> 
> goto-char should never trigger any hook.  Properties such as
> `intangible' are misfeatures, IMO.
> 
>> In addition to allowing callers to bind inhibit-point-motion-hooks, what
>> about tracking whether any property or overlay ever inserted into a
>> buffer uses one of these uncommon facilities? This way, the common case
>> is fast even without inhibit-point-motion-hooks.
> 
> I think we should make those goto-char hooks conditional on a variable,
> and make this variable default to nil.  That's an incompatible change,
> of course, but it would solve this issue.  And the var's name should
> make it clear it's only present to support some legacy feature that's
> being phased out.

So you propose effectively making inhibit-point-motion-hooks default to
t? Why not just do precisely that?

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]