emacs-devel
[Top][All Lists]
Advanced

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

Re: Obsolete variable in cc-defs.el


From: Alan Mackenzie
Subject: Re: Obsolete variable in cc-defs.el
Date: Mon, 17 Oct 2022 16:53:42 +0000

Hello, Lars.

On Mon, Oct 17, 2022 at 10:59:00 +0200, Lars Ingebrigtsen wrote:
> We have one build warning in Emacs currently:

> In toplevel form:
> progmodes/cc-defs.el:63:21: Warning: ‘inhibit-point-motion-hooks’ is an 
> obsolete variable (as of 25.1); use ‘cursor-intangible-mode’ or 
> ‘cursor-sensor-mode’ instead

> Alan, could you take a look at that?

That is a mistake in declaring inhibit-point-motion-hooks obsolete.  As
long as the properties point_entered and point_left exist and work
(regardless of whether they are declared obsolete),
inhibit-point-motion-hooks is required.  It's use shouldn't (yet)
generate any warnings.

It's obsolesence message is also suboptimal.  cursor-intangible-mode and
friend cannot take i-p-m-h's place.  That role will be fulfilled by the
variable cursor-sensor-inhibit, which really ought to be in
c-save-buffer-state (in cc-defs.el) alongside i-p-m-h.

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

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