From: Eli Zaretskii <eliz@gnu.org>
To: "Ulrich Müller" <ulm@gentoo.org>
Cc: 75345-done@debbugs.gnu.org
Subject: bug#75345: 29.4; 'insert' doc string still mentions 'string-as-multibyte'
Date: Sat, 04 Jan 2025 15:32:59 +0200 [thread overview]
Message-ID: <86msg6d7qs.fsf@gnu.org> (raw)
In-Reply-To: <ujzbahprn@gentoo.org> (message from Ulrich Müller on Sat, 04 Jan 2025 10:50:04 +0100)
> From: Ulrich Müller <ulm@gentoo.org>
> Date: Sat, 04 Jan 2025 10:50:04 +0100
>
> C-h f insert RET
>
> insert is a built-in function in ‘src/editfns.c’.
>
> [...]
>
> When operating on binary data, it may be necessary to preserve the
> original bytes of a unibyte string when inserting it into a multibyte
> buffer; to accomplish this, apply ‘string-as-multibyte’ to the string
> and insert the result.
>
> C-h f string-as-multibyte RET
>
> string-as-multibyte is a built-in function in ‘src/fns.c’.
>
> This function is obsolete since 26.1; use `decode-coding-string'.
>
> [...]
>
> This looks inconsistent, presumably 'insert' shouldn't mention
> 'string-as-multibyte'. Attached patch updates the doc string.
Thanks, installed on emacs-30, and closing the bug.
> Also, the elisp manual still mentions functions string-as-unibyte and
> string-as-multibyte in section "(elisp) Top > Non-ASCII Characters >
> Selecting a Representation". Should these be removed from the manual,
> or at least be labelled as obsolete?
I'm not yet convinced these functions should be removed from the
manual.
prev parent reply other threads:[~2025-01-04 13:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-04 9:50 bug#75345: 29.4; 'insert' doc string still mentions 'string-as-multibyte' Ulrich Müller
2025-01-04 13:32 ` Eli Zaretskii [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86msg6d7qs.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=75345-done@debbugs.gnu.org \
--cc=ulm@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).