diff options
| author | Po Lu | 2025-03-06 21:55:41 +0800 |
|---|---|---|
| committer | Po Lu | 2025-03-06 21:55:41 +0800 |
| commit | 2250dafff9487eb530d5bdf5e29c94ec176a4b91 (patch) | |
| tree | 42a3537a0d7a443d346ac0fca59ffea5d18037e4 /src | |
| parent | b130c57275bc12666ee8a88feef995ac330d2aa2 (diff) | |
| parent | 9065423e709de50509f45d08cc6697d9bb95fc93 (diff) | |
| download | emacs-2250dafff9487eb530d5bdf5e29c94ec176a4b91.tar.gz emacs-2250dafff9487eb530d5bdf5e29c94ec176a4b91.zip | |
Merge from savannah/emacs-30
9065423e709 ; Improve documentation of 2 symbol-related functions
Diffstat (limited to 'src')
| -rw-r--r-- | src/data.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/data.c b/src/data.c index b2e5ffe4eed..5d1c065e785 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -823,8 +823,9 @@ Doing that might make Emacs dysfunctional, and might even crash Emacs. */) | |||
| 823 | 823 | ||
| 824 | DEFUN ("bare-symbol", Fbare_symbol, Sbare_symbol, 1, 1, 0, | 824 | DEFUN ("bare-symbol", Fbare_symbol, Sbare_symbol, 1, 1, 0, |
| 825 | doc: /* Extract, if need be, the bare symbol from SYM. | 825 | doc: /* Extract, if need be, the bare symbol from SYM. |
| 826 | SYM is either a symbol or a symbol with position. | 826 | SYM must be either a symbol or a symbol with position, otherwise |
| 827 | Ignore `symbols-with-pos-enabled'. */) | 827 | the function will signal the `wrong-type-argument' error. |
| 828 | This function ignores `symbols-with-pos-enabled'. */) | ||
| 828 | (register Lisp_Object sym) | 829 | (register Lisp_Object sym) |
| 829 | { | 830 | { |
| 830 | if (BARE_SYMBOL_P (sym)) | 831 | if (BARE_SYMBOL_P (sym)) |
| @@ -847,7 +848,8 @@ DEFUN ("remove-pos-from-symbol", Fremove_pos_from_symbol, | |||
| 847 | Sremove_pos_from_symbol, 1, 1, 0, | 848 | Sremove_pos_from_symbol, 1, 1, 0, |
| 848 | doc: /* If ARG is a symbol with position, return it without the position. | 849 | doc: /* If ARG is a symbol with position, return it without the position. |
| 849 | Otherwise, return ARG unchanged. Ignore `symbols-with-pos-enabled'. | 850 | Otherwise, return ARG unchanged. Ignore `symbols-with-pos-enabled'. |
| 850 | Compare with `bare-symbol'. */) | 851 | Compare with `bare-symbol', which does the same, but signals an error |
| 852 | if ARG is not a symbol. */) | ||
| 851 | (register Lisp_Object arg) | 853 | (register Lisp_Object arg) |
| 852 | { | 854 | { |
| 853 | if (SYMBOL_WITH_POS_P (arg)) | 855 | if (SYMBOL_WITH_POS_P (arg)) |