aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Kangas2022-03-12 06:34:05 +0100
committerStefan Kangas2022-03-12 06:34:05 +0100
commit3af12cb8f20d93a3fdbebe2e3b987948e8228f03 (patch)
tree225beef43037e95665916ea78eb0a5825f6ebc1f /src
parentb5ac604b15532db0418f3c2393907daa317f2ca5 (diff)
parentdbe6a3ecf74536cbfb7ca59630b48020ae4e732a (diff)
downloademacs-3af12cb8f20d93a3fdbebe2e3b987948e8228f03.tar.gz
emacs-3af12cb8f20d93a3fdbebe2e3b987948e8228f03.zip
Merge from origin/emacs-28
dbe6a3ecf7 Fix regression in 'custom-prompt-customize-unsaved-options' a9920473f6 Improve documentation of 'map-charset-chars'
Diffstat (limited to 'src')
-rw-r--r--src/charset.c25
1 files changed, 15 insertions, 10 deletions
diff --git a/src/charset.c b/src/charset.c
index d0cfe60952e..9edbd4c8c84 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -793,16 +793,21 @@ map_charset_chars (void (*c_function)(Lisp_Object, Lisp_Object), Lisp_Object fun
793 793
794DEFUN ("map-charset-chars", Fmap_charset_chars, Smap_charset_chars, 2, 5, 0, 794DEFUN ("map-charset-chars", Fmap_charset_chars, Smap_charset_chars, 2, 5, 0,
795 doc: /* Call FUNCTION for all characters in CHARSET. 795 doc: /* Call FUNCTION for all characters in CHARSET.
796FUNCTION is called with an argument RANGE and the optional 3rd 796Optional 3rd argument ARG is an additional argument to be passed
797argument ARG. 797to FUNCTION, see below.
798 798Optional 4th and 5th arguments FROM-CODE and TO-CODE specify the
799RANGE is a cons (FROM . TO), where FROM and TO indicate a range of 799range of code points (in CHARSET) of target characters on which to
800characters contained in CHARSET. 800map the FUNCTION. Note that these are not character codes, but code
801 801points of CHARSET; for the difference see `decode-char' and
802The optional 4th and 5th arguments FROM-CODE and TO-CODE specify the 802`list-charset-chars'. If FROM-CODE is nil or imitted, it stands for
803range of code points (in CHARSET) of target characters. Note that 803the first code point of CHARSET; if TO-CODE is nil or omitted, it
804these are not character codes, but code points in CHARSET; for the 804stands for the last code point of CHARSET.
805difference see `decode-char' and `list-charset-chars'. */) 805
806FUNCTION will be called with two arguments: RANGE and ARG.
807RANGE is a cons (FROM . TO), where FROM and TO specify a range of
808characters that belong to CHARSET on which FUNCTION should do its
809job. FROM and TO are Emacs character codes, unlike FROM-CODE and
810TO-CODE, which are CHARSET code points. */)
806 (Lisp_Object function, Lisp_Object charset, Lisp_Object arg, Lisp_Object from_code, Lisp_Object to_code) 811 (Lisp_Object function, Lisp_Object charset, Lisp_Object arg, Lisp_Object from_code, Lisp_Object to_code)
807{ 812{
808 struct charset *cs; 813 struct charset *cs;