From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#75345: 29.4; 'insert' doc string still mentions 'string-as-multibyte' Date: Sat, 04 Jan 2025 15:32:59 +0200 Message-ID: <86msg6d7qs.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30933"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 75345-done@debbugs.gnu.org To: Ulrich =?UTF-8?Q?M=C3=BCller?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 04 14:34:17 2025 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tU4ID-0007uM-7i for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Jan 2025 14:34:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tU4I6-0002Uq-Bj; Sat, 04 Jan 2025 08:34:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tU4Hy-0002Tp-Pb for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 08:34:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tU4Hy-0002YU-HZ for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 08:34:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=MwX14PMjLbG1k5gOKAx4JZpvfPJX1ubDwwJ2pS/gtXY=; b=eMLUKhXu10oluYB0DX5MT0aqacNf69oEIUQMEm0LesWKX1uMvij0gmpkNXIiIkDquUwgKzmtQJPPWSWSS7EYE2pgCEepNmvwn3BQmXoqgtk+R8jbZMWdwCG9Hf+dJSC+ZpjtwZucU9nGn7P4rToxNBdbYGMhLY7NWeMqa1pQjVVg38HsMGdK7nULAuoTNRoGGNc0eF0Sm+F2ufVG27uxbKm74SfhnunvL8i/Ygo1NEG1MHq9x0db4LHWh+9ITBnKjL6mtB+9l9AuEWPYcWwwej22R4jpXbblXPKhMLBBzSry8vUL7nIEZx1X9YdC2daK0KXOz3wLCoJkGU6LW/CKkg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tU4Hy-0008Lt-03 for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 08:34:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2025 13:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 75345 X-GNU-PR-Package: emacs Mail-Followup-To: 75345@debbugs.gnu.org, eliz@gnu.org, ulm@gentoo.org Original-Received: via spool by 75345-done@debbugs.gnu.org id=D75345.173599759132039 (code D ref 75345); Sat, 04 Jan 2025 13:34:01 +0000 Original-Received: (at 75345-done) by debbugs.gnu.org; 4 Jan 2025 13:33:11 +0000 Original-Received: from localhost ([127.0.0.1]:53917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU4H8-0008Kh-Hy for submit@debbugs.gnu.org; Sat, 04 Jan 2025 08:33:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49926) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tU4H6-0008KU-2i for 75345-done@debbugs.gnu.org; Sat, 04 Jan 2025 08:33:08 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tU4H0-0002QG-Lt; Sat, 04 Jan 2025 08:33:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=MwX14PMjLbG1k5gOKAx4JZpvfPJX1ubDwwJ2pS/gtXY=; b=jjN8x1PhZvpdHc/STZ6p VRzvuTo1vyDMRAAJigPxhmqsNQBrJTQ7G1XxzgAJHsZU59Pv30Q4OoqAbFIFC7JKxJoww2XeX1t9B hW2e6RQWHABfD8HGRKYDJW8Jss2Do3X9jFr9MzKKZwfdI6C7PghCdxUTJEv334X1esLtwT1bJJfVz +ao6Of209sQKk8ER17FwA5YteJ+sru+BCBs/sCVtkLR2OQ5kw7lzJ6WV5tsM+3CT9GjAu1HLjH0lW wasf22Y9kVdKViajYycXUBbllpsYyJdudP58YEXK1nxpDXvCu/RNJmkycdKr1vzrtz7PRLaA7xoDh DF61cv2llk8XVg==; In-Reply-To: (message from Ulrich =?UTF-8?Q?M=C3=BCller?= on Sat, 04 Jan 2025 10:50:04 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298399 Archived-At: > From: Ulrich Müller > 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.