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: Tue, 18 Oct 2022 09:30:47 +0000

Hello, Stefan.

On Mon, Oct 17, 2022 at 17:59:13 -0400, Stefan Monnier wrote:
> > 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.

> BTW, your code only uses `inhibit-point-motion-hooks` explicitly in
> Emacs<23.2.  After that it relies on
> `with-silent-modifications` instead.  So the byte-compile obsolescence
> warning only comes from

>     (cc-bytecomp-defvar inhibit-point-motion-hooks)

> which your code can't need when `with-silent-modifications` is `fboundp`.

Indeed.  Which is ironic, given that cc-bytecomp-defvar was invented to
_suppress_ compiler warnings.

I still say a binding of inhibit-point-motion-hooks should be in
with-silent-modifications, although it's not a big thing.  Surely the
intangible text property will "soon" be removed, making the point moot.

>         Stefan

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

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