emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master b2670bfe42: Add a comment about buffer_local_value/find_symbol_va


From: Lars Ingebrigtsen
Subject: master b2670bfe42: Add a comment about buffer_local_value/find_symbol_value
Date: Sat, 2 Jul 2022 09:23:22 -0400 (EDT)

branch: master
commit b2670bfe42b8eb4f7aa811ddbb67e0e3995acc90
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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 1dbec4687b..568349ba83 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]