aboutsummaryrefslogtreecommitdiffstats
path: root/src/fns.c
diff options
context:
space:
mode:
authorGlenn Morris2019-12-25 07:50:19 -0800
committerGlenn Morris2019-12-25 07:50:19 -0800
commit2bb7bb4abfa5667ba5cd220ca3dd89731f33ff09 (patch)
tree3317f66921cf3cd0d787816217bfd056e2bc2a3f /src/fns.c
parent93d4725f9ceabfaf40e75ecf2e28b67789741941 (diff)
parentca6a53d3bc91d6fef9aa872495ab74298ce91bee (diff)
downloademacs-2bb7bb4abfa5667ba5cd220ca3dd89731f33ff09.tar.gz
emacs-2bb7bb4abfa5667ba5cd220ca3dd89731f33ff09.zip
Merge from origin/emacs-27
ca6a53d3bc Don't default to showing X-Faces externally in Gnus dbf4b5b2d0 Fix manual typo in Special Read Syntax a9fe6dfa90 Fix problem with emacs -nw / eww / svg 0de63092c8 Clarify base64 requirements and say what {en,de}code_codin... 6184aa003f ; * etc/NEWS: Fix boring oddities. 51ea32dd12 * src/emacs-module.h.in: Add reference to manual. 75d0cef20d Trivial docstring fixes ee12c421b6 imagemagick-types needs to initialize ImageMagick # Conflicts: # etc/NEWS
Diffstat (limited to 'src/fns.c')
-rw-r--r--src/fns.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/fns.c b/src/fns.c
index 3ae3192b3d5..5e62d0e6f90 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -3297,7 +3297,13 @@ static Lisp_Object base64_encode_string_1 (Lisp_Object, bool,
3297DEFUN ("base64-encode-region", Fbase64_encode_region, Sbase64_encode_region, 3297DEFUN ("base64-encode-region", Fbase64_encode_region, Sbase64_encode_region,
3298 2, 3, "r", 3298 2, 3, "r",
3299 doc: /* Base64-encode the region between BEG and END. 3299 doc: /* Base64-encode the region between BEG and END.
3300Return the length of the encoded text. 3300The data in the region is assumed to represent bytes, not text. If
3301you want to base64-encode text, the text has to be converted into data
3302first by using `encode-coding-region' with the appropriate coding
3303system first.
3304
3305Return the length of the encoded data.
3306
3301Optional third argument NO-LINE-BREAK means do not break long lines 3307Optional third argument NO-LINE-BREAK means do not break long lines
3302into shorter lines. */) 3308into shorter lines. */)
3303 (Lisp_Object beg, Lisp_Object end, Lisp_Object no_line_break) 3309 (Lisp_Object beg, Lisp_Object end, Lisp_Object no_line_break)
@@ -3544,7 +3550,13 @@ base64_encode_1 (const char *from, char *to, ptrdiff_t length,
3544DEFUN ("base64-decode-region", Fbase64_decode_region, Sbase64_decode_region, 3550DEFUN ("base64-decode-region", Fbase64_decode_region, Sbase64_decode_region,
3545 2, 3, "r", 3551 2, 3, "r",
3546 doc: /* Base64-decode the region between BEG and END. 3552 doc: /* Base64-decode the region between BEG and END.
3547Return the length of the decoded text. 3553Return the length of the decoded data.
3554
3555Note that after calling this function, the data in the region will
3556represent bytes, not text. If you want to end up with text, you have
3557to call `decode-coding-region' afterwards with an appropriate coding
3558system.
3559
3548If the region can't be decoded, signal an error and don't modify the buffer. 3560If the region can't be decoded, signal an error and don't modify the buffer.
3549Optional third argument BASE64URL determines whether to use the URL variant 3561Optional third argument BASE64URL determines whether to use the URL variant
3550of the base 64 encoding, as defined in RFC 4648. */) 3562of the base 64 encoding, as defined in RFC 4648. */)