]> git.eshelyaron.com Git - emacs.git/commit
Change bare-symbol back to match intent
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 11 Mar 2024 07:03:39 +0000 (00:03 -0700)
committerEshel Yaron <me@eshelyaron.com>
Mon, 11 Mar 2024 09:28:55 +0000 (10:28 +0100)
commit0418bf3b3b92de5361758a1894713d8647695ecf
treee687471fe0d824c92d2bae6bbe24a6536a8866cc
parent1187735ab7226a3f3ba5346a57587274f7e88359
Change bare-symbol back to match intent

Also, attempt to document the intent better.
Problem reported by Alan Mackenzie (Bug#69684).
* src/data.c (Fbare_symbol): Do not signal if the SYM is a symbol
with position and symbols-with-pos-enabled is nil.  Instead,
ignore symbols-with-pos-enabled, as that was the intent.
* test/src/data-tests.el (data-tests-bare-symbol):
New test, to help prevent this bug from reoccurring.

(cherry picked from commit 2d61ebb505977af4f9fd90f92a776599a73f8501)
doc/lispref/objects.texi
doc/lispref/symbols.texi
src/data.c
test/src/data-tests.el