diff options
| author | Lars Ingebrigtsen | 2022-07-02 15:22:13 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-07-02 15:22:13 +0200 |
| commit | b2670bfe42b8eb4f7aa811ddbb67e0e3995acc90 (patch) | |
| tree | c45bf060cf9f6eb37f7cc398df569fcca929fa3f /src/data.c | |
| parent | 8b52d9f5f177ce76b9ebecadd70c6dbbf07a20c6 (diff) | |
| download | emacs-b2670bfe42b8eb4f7aa811ddbb67e0e3995acc90.tar.gz emacs-b2670bfe42b8eb4f7aa811ddbb67e0e3995acc90.zip | |
Add a comment about buffer_local_value/find_symbol_value
* src/data.c: Note that buffer_local_value is very similar
(bug#48281).
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 9 |
1 files 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_ | |||
| 1546 | /* Find the value of a symbol, returning Qunbound if it's not bound. | 1546 | /* Find the value of a symbol, returning Qunbound if it's not bound. |
| 1547 | This is helpful for code which just wants to get a variable's value | 1547 | This is helpful for code which just wants to get a variable's value |
| 1548 | if it has one, without signaling an error. | 1548 | if it has one, without signaling an error. |
| 1549 | Note that it must not be possible to quit | 1549 | |
| 1550 | within this function. Great care is required for this. */ | 1550 | This function is very similar to buffer_local_value, but we have |
| 1551 | two separate code paths here since find_symbol_value has to be very | ||
| 1552 | efficient, while buffer_local_value doesn't have to be. | ||
| 1553 | |||
| 1554 | Note that it must not be possible to quit within this function. | ||
| 1555 | Great care is required for this. */ | ||
| 1551 | 1556 | ||
| 1552 | Lisp_Object | 1557 | Lisp_Object |
| 1553 | find_symbol_value (Lisp_Object symbol) | 1558 | find_symbol_value (Lisp_Object symbol) |