From: Lars Ingebrigtsen Date: Sat, 2 Jul 2022 13:22:13 +0000 (+0200) Subject: Add a comment about buffer_local_value/find_symbol_value X-Git-Tag: emacs-29.0.90~1447^2~1272 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b2670bfe42b8eb4f7aa811ddbb67e0e3995acc90;p=emacs.git Add a comment about buffer_local_value/find_symbol_value * src/data.c: Note that buffer_local_value is very similar (bug#48281). --- 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)