From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Quang Kien Nguyen Newsgroups: gmane.emacs.devel Subject: Re: MPS: Win64 testers? Date: Fri, 9 Aug 2024 02:19:35 -0700 Message-ID: References: <86h6bxq3p3.fsf@gnu.org> <86sevho61y.fsf@gnu.org> <86ed70o90k.fsf@gnu.org> <86le17murx.fsf@gnu.org> <86y156kzh0.fsf@gnu.org> <86wmkqkz0g.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9871"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, pipcet@protonmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Aug 09 12:21:33 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 1scMkX-0002J8-BI for ged-emacs-devel@m.gmane-mx.org; Fri, 09 Aug 2024 12:21:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1scMkB-0007vy-4L; Fri, 09 Aug 2024 06:21:11 -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 1scLmr-0000Uw-Sr for emacs-devel@gnu.org; Fri, 09 Aug 2024 05:19:53 -0400 Original-Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1scLmp-00076m-8U; Fri, 09 Aug 2024 05:19:53 -0400 Original-Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2f01e9f53e3so30050461fa.1; Fri, 09 Aug 2024 02:19:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723195188; x=1723799988; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7+SvqXHAdst1nd0HKC2+0xufQjQ1THHLD6Rifx+xkCA=; b=hjDv1XwJXfy0EH9ePCJ8P78aWYrKSmN+tsnWyoBeBTIRbl75owps4gx7WrLwJfaYPE rCx5D90WRuCAa/X+Rb4HEFH9AYNhwbKCx07ti98M803Q9NyrRTal3ccvfw1SiApL8Vyd 4TRok8nel4xqH1VZeIJjPmLMiNCNTSYRxjkP/U2wpJrMrG05d1hHhdV5Wy+q4aWMFW+R 35S4Lwc8qV5PwDvRpfDGgC/177h1TIz/d0b4vGYN3P9zRXQY+4rhwZahBKf2fjkLlD0j qf3yyaDf7sMosA9dNCohd0aVy4SIgAHMwroTatJYiUJApDiR7ByLrhItn+SRz6fFIGBo YBaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723195188; x=1723799988; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7+SvqXHAdst1nd0HKC2+0xufQjQ1THHLD6Rifx+xkCA=; b=EbQO+dfyydHgP6w4O81h9072w5ioeYdnj6zeqc0eNtUHlHsh3c0VZRxkaiB0CJ/8rB RgbwOafeXcxVgjmbdbEcZ14FMzOIPrkHz7UFDJVDKodqvg1YiTZM0RETNDJs47hmt9Mj oKVdlG8Bn5e7J1Y//uNCXiYl0meyhf9i5ZtJzbpQlhGpPpXaWf80p4j/e+PIN3XLwuxD Bb740JCP1tGjxPnwT45PkfOk0IoX0gz0fU4koCWiJE3Oc7PD6Fd6WcfiwNWl80Z4EWJ7 SqBV8a3JTqX8HQyaGXYhZLy/XdMIZEMi6+X9u2XN37MqatgVEMCRWwW0STq0JXTiTdw6 bBwA== X-Gm-Message-State: AOJu0YzdV3n0o0D4rp+GV8VUv4AA5FhVrRuN+4kCiTa0HdLKSXE+pUC9 JhERX+5i6tblEOrLcEtEp546lFNObEVdvBjJKnCYRrwlkJN9p7X5D3R7Hrv/uZ/5UgUsZdJjoON APBVa9UjlfzzUohFad/vFBwf+hD27b4sF X-Google-Smtp-Source: AGHT+IGu0L5Bm69V17DGmJxbX0eish+PLuGWeVwoEiE+UX2CZirPhDqm9utkayUUdPpSPO/3Kwn7FYEzZoEEQ6BIw9c= X-Received: by 2002:a05:651c:b27:b0:2ee:52f4:266 with SMTP id 38308e7fff4ca-2f1a6c4d0c1mr9731261fa.3.1723195187898; Fri, 09 Aug 2024 02:19:47 -0700 (PDT) In-Reply-To: <86wmkqkz0g.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::235; envelope-from=kien.n.quang@gmail.com; helo=mail-lj1-x235.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 09 Aug 2024 06:21:08 -0400 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:322559 Archived-At: > Not clearly enough. Consoles are tricky on Windows. It is better to > start Emacs with stderr redirected to a file (I've shown how to do > that in a previous message), and then see that what the child Emacs > writes to external-debugging-output does not appear in that file. > > Also, instead of start-process please use call-process. That's > because start-process redirects the stdout/stderr handles of the child > process to the pipe from which the parent Emacs process reads, and > that makes the experiment more complex and harder to reason about. > > And one more thing: when using "emacs --batch", it is easier to use > 'message' to write to stderr; no need to 'print' via > external-debugging-output. Okay, I've tried with redirecting the stderr to file and then use (print 10 #'external-debugging-output) 10 is printed in the file. Then try with (call-process "emacs" nil nil nil "--batch" "-Q" "--eval" "(message \"20\")") The child emacs process is created but nothing appended to the output file. Is that okay? I have the Emacs binary prebuilt here for UCRT [1], please give it a try if you want to test more. [1] https://github.com/kiennq/emacs-build/releases/tag/v31.279.20240807.fa1ecbf