[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#5950: defvaralias after defvar should be warned in runtime
From: |
Stefan Monnier |
Subject: |
bug#5950: defvaralias after defvar should be warned in runtime |
Date: |
Sat, 26 May 2018 15:46:03 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> + else if (!NILP (Fboundp (new_alias))
> + && !EQ (find_symbol_value (new_alias),
> + find_symbol_value (base_variable)))
> + call2 (intern ("display-warning"),
> + list3 (intern ("defvaralias"), intern ("losing-value"),
> new_alias),
> + CALLN (Fformat_message,
> + build_string
> + ("Overwriting value of `%s' by aliasing to `%s'"),
> + new_alias, base_variable));
I'd make it just a `message` rather than a `display-warning`.
Stefan