[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#69290: declare-function doesn't work when combined with --eval and -
From: |
Konstantin Kharlamov |
Subject: |
bug#69290: declare-function doesn't work when combined with --eval and -batch |
Date: |
Tue, 20 Feb 2024 21:59:31 +0300 |
User-agent: |
Evolution 3.50.3 |
Stumbled upon that while trying to improve CI in Evil mode. Enabling
byte-compilation
causes warnings about `undo-redo` undeclared on older Emacs'es, so tried to work
around that with `declare-function`. Turns out it doesn't work.
# Steps to reproduce (in terms of terminal commands)
λ cat test.el
;;; -*- lexical-binding: t -*-
(hello)
λ emacs -batch --eval '(declare-function hello nil)' -f batch-byte-compile
test.el
In end of data:
test.el:2:2: Warning: the function ‘hello’ is not known to be defined.
## Expected
There's no warning
## Actual
There's a warning about undeclared function which is declared
# Additional information
Versions tested:
* commit d4d5830f8a0 built 3 weeks ago from master.
* 27.1, 26.3, 25.3
- bug#69290: declare-function doesn't work when combined with --eval and -batch,
Konstantin Kharlamov <=
- bug#69290: declare-function doesn't work when combined with --eval and -batch, Eli Zaretskii, 2024/02/20
- bug#69290: declare-function doesn't work when combined with --eval and -batch, Konstantin Kharlamov, 2024/02/20
- bug#69290: declare-function doesn't work when combined with --eval and -batch, Eli Zaretskii, 2024/02/20
- bug#69290: declare-function doesn't work when combined with --eval and -batch, Konstantin Kharlamov, 2024/02/20
- bug#69290: declare-function doesn't work when combined with --eval and -batch, Eli Zaretskii, 2024/02/20
- bug#69290: declare-function doesn't work when combined with --eval and -batch, Konstantin Kharlamov, 2024/02/20
- bug#69290: declare-function doesn't work when combined with --eval and -batch, Konstantin Kharlamov, 2024/02/20
- bug#69290: declare-function doesn't work when combined with --eval and -batch, Eli Zaretskii, 2024/02/20