Add a comment about buffer_local_value/find_symbol_value

* src/data.c: Note that buffer_local_value is very similar
(bug#48281).
This commit is contained in:
Lars Ingebrigtsen 2022-07-02 15:22:13 +02:00
parent 8b52d9f5f1
commit b2670bfe42

View file

@ -1546,8 +1546,13 @@ swap_in_symval_forwarding (struct Lisp_Symbol *symbol, struct Lisp_Buffer_Local_
/* Find the value of a symbol, returning Qunbound if it's not bound.
This is helpful for code which just wants to get a variable's value
if it has one, without signaling an error.
Note that it must not be possible to quit
within this function. Great care is required for this. */
This function is very similar to buffer_local_value, but we have
two separate code paths here since find_symbol_value has to be very
efficient, while buffer_local_value doesn't have to be.
Note that it must not be possible to quit within this function.
Great care is required for this. */
Lisp_Object
find_symbol_value (Lisp_Object symbol)