]> git.eshelyaron.com Git - emacs.git/commit
Give warning if losing value to defvaralias (Bug#5950)
authorNoam Postavsky <npostavs@gmail.com>
Fri, 25 May 2018 12:40:55 +0000 (08:40 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Tue, 12 Jun 2018 11:40:33 +0000 (07:40 -0400)
commitc912db0836f6975519dea57fb0a4adc2988da1b1
tree8a58bce003464b5f367beb9e7a4f8555f843d88b
parent2634d867b66ddff568048ce664f003ae8950bdfa
Give warning if losing value to defvaralias (Bug#5950)

* src/eval.c (Fdefvaralias): Call `display-warning' if the alias
target has a non-eq value to the variable being aliased.
* test/src/eval-tests.el (defvaralias-overwrite-warning): New test.
src/eval.c
test/src/eval-tests.el