From b2670bfe42b8eb4f7aa811ddbb67e0e3995acc90 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 2 Jul 2022 15:22:13 +0200 Subject: [PATCH] Add a comment about buffer_local_value/find_symbol_value * src/data.c: Note that buffer_local_value is very similar (bug#48281). --- src/data.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/data.c b/src/data.c index 1dbec4687b8..568349ba839 100644 --- a/src/data.c +++ b/src/data.c @@ -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) -- 2.39.2