[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#43780: 27.1; defvaralias and define-obsolete-variable-alias
From: |
Michael Heerdegen |
Subject: |
bug#43780: 27.1; defvaralias and define-obsolete-variable-alias |
Date: |
Tue, 06 Oct 2020 23:41:17 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Drew Adams <drew.adams@oracle.com> writes:
> Please tell me the best way to leave my code alone, using
> `inhibit-null-byte-detection', and yet eliminate (only) this
> byte-compiler warning.
>
> Should I just use (put 'inhibit-null-byte-detection
> 'byte-obsolete-variable nil)?
>
> Ideally I'd want to affect only byte-compilation of the given file, and
> not want to globally change whether `inhibit-null-byte-detection' is
> considered obsolete.
>
> This is a serious question, not rhetorical.
I guess one could try to use `byte-compile--suppressed-warnings' as a
file-local variable, but it has an "internal" name. AFAIK you can turn
off compiler warnings regarding obsolete names completely per file, or
locally with `with-suppressed-warnings'. Is that acceptable?
Michael.