From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Brennan Vincent Newsgroups: gmane.emacs.devel Subject: [PATCH] Add a mechanism for passing unibyte strings from lisp to modules. Date: Fri, 21 Jun 2024 14:13:14 -0400 Message-ID: <20240621181400.174822-2-brennan@umanwizard.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16618"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 21 20:15:14 2024 Return-path: Envelope-to: ged-emacs-devel@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 1sKin4-0004D4-EB for ged-emacs-devel@m.gmane-mx.org; Fri, 21 Jun 2024 20:15:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKimL-0004Sd-86; Fri, 21 Jun 2024 14:14:29 -0400 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 1sKimJ-0004SE-BY for emacs-devel@gnu.org; Fri, 21 Jun 2024 14:14:27 -0400 Original-Received: from smtp.umanwizard.com ([54.203.248.109]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKimH-0006jw-FZ for emacs-devel@gnu.org; Fri, 21 Jun 2024 14:14:27 -0400 Original-Received: from localhost ([108.6.22.48]) by smtp.umanwizard.com ; 21 Jun 2024 18:14:22 +0000 X-Fes-Received-For: emacs-devel@gnu.org X-Fes-Received-From: X-Mailer: git-send-email 2.41.0 X-Fes-Encrypted: true X-Fes-Ehlo-Domain: localhost Received-SPF: pass client-ip=54.203.248.109; envelope-from=brennan@umanwizard.com; helo=smtp.umanwizard.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:320428 Archived-At: Since the introduction of make_unibyte_string, it has been possible to pass raw binary data from modules to lisp, but not the other way around (except by using vectors of bytes, which is inefficient). This patch implements that feature so that raw binary data can be sent both ways.