aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorPo Lu2025-03-06 21:55:41 +0800
committerPo Lu2025-03-06 21:55:41 +0800
commit2250dafff9487eb530d5bdf5e29c94ec176a4b91 (patch)
tree42a3537a0d7a443d346ac0fca59ffea5d18037e4 /src/data.c
parentb130c57275bc12666ee8a88feef995ac330d2aa2 (diff)
parent9065423e709de50509f45d08cc6697d9bb95fc93 (diff)
downloademacs-2250dafff9487eb530d5bdf5e29c94ec176a4b91.tar.gz
emacs-2250dafff9487eb530d5bdf5e29c94ec176a4b91.zip
Merge from savannah/emacs-30
9065423e709 ; Improve documentation of 2 symbol-related functions
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c8
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
824DEFUN ("bare-symbol", Fbare_symbol, Sbare_symbol, 1, 1, 0, 824DEFUN ("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.
826SYM is either a symbol or a symbol with position. 826SYM must be either a symbol or a symbol with position, otherwise
827Ignore `symbols-with-pos-enabled'. */) 827the function will signal the `wrong-type-argument' error.
828This 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.
849Otherwise, return ARG unchanged. Ignore `symbols-with-pos-enabled'. 850Otherwise, return ARG unchanged. Ignore `symbols-with-pos-enabled'.
850Compare with `bare-symbol'. */) 851Compare with `bare-symbol', which does the same, but signals an error
852if 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))