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#66261: Disassembling a regexp's bytecode Date: Fri, 29 Sep 2023 19:24:39 +0300 Message-ID: <83msx5x7zs.fsf@gnu.org> References: <83bkdlyq6y.fsf@gnu.org> 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="39209"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66261@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 29 18:25:54 2023 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 1qmGJO-000A0x-Br for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Sep 2023 18:25:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qmGJI-0000ZI-Mr; Fri, 29 Sep 2023 12:25:48 -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 1qmGJH-0000Y1-L3 for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2023 12:25:47 -0400 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 1qmGJH-0008Jv-AV for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2023 12:25:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qmGJW-0006PZ-3Z for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2023 12:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Sep 2023 16:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66261 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 66261-submit@debbugs.gnu.org id=B66261.169600472624583 (code B ref 66261); Fri, 29 Sep 2023 16:26:02 +0000 Original-Received: (at 66261) by debbugs.gnu.org; 29 Sep 2023 16:25:26 +0000 Original-Received: from localhost ([127.0.0.1]:57032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmGIv-0006OQ-4y for submit@debbugs.gnu.org; Fri, 29 Sep 2023 12:25:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmGIp-0006O3-7M for 66261@debbugs.gnu.org; Fri, 29 Sep 2023 12:25:23 -0400 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 1qmGIV-00084B-2O; Fri, 29 Sep 2023 12:24:59 -0400 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=wITcubRBv8fIpJMC5w9UbL36S5bKWRohtERsNf+IQgc=; b=O/AMHeDDrNb1mzmUxeSG E7zqV2CkmzK95OhNBTEbgBkazvg2e2YlLasrQBbtFNpYVoK1ED2zZevQv8FE0sOIowB/AK7jSuSvq 5rswEGE0wtoFgT4hcNl8fYtzfuV14WnbQJbUeSYLNt9yha3OPj9Qv5YhQ5oN38wwzEY3pwmn1vCl1 FE5JHWouupiHykV1/J2fm91gkDErV5xNupYJdTBsbqiemZGFp0QJFT44/3y1p/eqsCpx6SjU8kQxV 9DPubt+Ac54RujdgRwDUCtR7AdsE4dSWoWl2bVWWEV/BNeiKPFdXd2QiYUVR6hTIVv1seq33Jq7V6 +I5GvcIJQOjdJg==; In-Reply-To: (message from Stefan Monnier on Fri, 29 Sep 2023 11:47:50 -0400) 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:271511 Archived-At: > From: Stefan Monnier > Cc: 66261@debbugs.gnu.org > Date: Fri, 29 Sep 2023 11:47:50 -0400 > > >> - First, in order to easily use the same code between REGEX_EMACS_DEBUG > >> and my new `re--describe-compiled`, I need to print sometimes to > >> `stderr` and sometimes to a string, which I do using `open_memstream`. > >> AFAIK `open_memstream` is not directly available in Windows (and > >> maybe under some other Unixes either, tho it's in POSIX-2008, IIUC). > >> Could someone help me get an `opem_memstream` emulation working > >> (maybe via gnulib)? > > Gnulib doesn't have such an emulation, AFAICT. > > Why cannot you fall back to temporary files when open_memstream is not > > available? > > Doesn't seem worth the trouble (and I must admit that the idea of using > a temp file hurts my sense of aesthetics, on top of it 😀. Tho, it'd be > OK if it were done for me by gnulib). Then just let it write to stderr, it's okay to do that in ENABLE_CHECKING code.