[Top][All Lists]

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

Re: What magic is saying "obsolete variable"

From: Stefan Monnier
Subject: Re: What magic is saying "obsolete variable"
Date: Sat, 18 Dec 2010 10:50:38 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> When stepping through this in edebug

>       (mumamo-save-buffer-state nil
>         (remove-list-of-text-properties (point-min) (point-max)
>                                         (list 'fontified)))

> I get the warning below after passing the next last `)':

>   Warning: `font-lock-beginning-of-syntax-function' is an obsolete variable 
> (as
>     of Emacs 23.3); use `syntax-begin-function' instead.

This warning comes from the byte-compiler.  I have no idea why the
byte-compiler is called during your edebug.

> The macro `mumamo-save-buffer-state' is just a copy of
> save-buffer-state in font-lock.el (which is not exposed by
> font-lock.el).

Newer Emacsen have the macro with-silent-modifications for that, so you
may want to use that one (or a copy of it) instead.


reply via email to

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