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#55599: save-buffers-kill-emacs doesn't give a visible prompt when called from command line Date: Sat, 28 May 2022 22:25:53 +0300 Message-ID: <83fsktlari.fsf@gnu.org> References: <87r14jo02m.fsf@gmx.de> <83k0ab5fqz.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1726"; mail-complaints-to="usenet@ciao.gmane.io" Cc: michael.albinus@gmx.de, 55599@debbugs.gnu.org To: Peter Ludemann Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 28 21:27:40 2022 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 1nv267-0000Iu-I5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 May 2022 21:27:39 +0200 Original-Received: from localhost ([::1]:41300 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nv266-000405-5L for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 May 2022 15:27:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nv25W-0003v9-Di for bug-gnu-emacs@gnu.org; Sat, 28 May 2022 15:27:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45020) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nv25W-0002l9-3k for bug-gnu-emacs@gnu.org; Sat, 28 May 2022 15:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nv25V-0005HY-UC for bug-gnu-emacs@gnu.org; Sat, 28 May 2022 15:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 May 2022 19:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55599 X-GNU-PR-Package: emacs Original-Received: via spool by 55599-submit@debbugs.gnu.org id=B55599.165376596520237 (code B ref 55599); Sat, 28 May 2022 19:27:01 +0000 Original-Received: (at 55599) by debbugs.gnu.org; 28 May 2022 19:26:05 +0000 Original-Received: from localhost ([127.0.0.1]:38917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nv24b-0005GK-AB for submit@debbugs.gnu.org; Sat, 28 May 2022 15:26:05 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nv24X-0005Fq-JF for 55599@debbugs.gnu.org; Sat, 28 May 2022 15:26:04 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33206) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nv24S-0002ab-2H; Sat, 28 May 2022 15:25:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=JWXtaAhT/XvqSq5WGH2ETVITVbFCPdzryQ7CsGMSoEE=; b=dmeoeGP7ipb8 6Tl+MO0/k7quTtQLNE7YPypWL7x8YTwitryKqPAAAweHN10WeyXknCdavSB6HYLok1PxKUaAOnPCC 5S2K4yfuC/uLpHFHAXYP6elKTyQmSnkVtFse0TXf0jkqugTZlD3P8SGWFud05x0mXZjXZWeTPl5Fa xJZzV06Tet0nzY6GsgNWFYtfmmxsHj1E/wNRQj+pU2eANc4+swmCdy96XgJ8xjIX6o0g2ARWs31Lz 3CB/YN+pV69D0xvFcn7qoJEascJnuffC3Pmet/P1jsVhjDuwwbPyoxESY25k9VKWUDvjeu/49XPtg pHVlCznT2TjK9qLoumS9pA==; Original-Received: from [87.69.77.57] (port=3654 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nv24R-0006gH-Gv; Sat, 28 May 2022 15:25:55 -0400 In-Reply-To: (message from Peter Ludemann on Sat, 28 May 2022 11:27:22 -0700) 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" Xref: news.gmane.io gmane.emacs.bugs:233276 Archived-At: > From: Peter Ludemann > Date: Sat, 28 May 2022 11:27:22 -0700 > Cc: Michael Albinus , 55599@debbugs.gnu.org > > It seems that there is a way to get an interactive message to the terminal in batch mode ... > > During daemon startup (with an existing .emacs.desktop file), I get this on my terminal: > > bunzip2ing contrib-protobufs-2021-06-07-15-56.tbz2... > bunzip2ing contrib-protobufs-2021-06-07-15-56.tbz2...done > Parsing tar file... > Parsing tar file...done > Please type y, n, ! or i, or C-v/M-v to scroll: > > This seems to be from make-progress-reporter, which (if I read the code correctly) ends up calling > (message "%s %s %s" text pulse-char suffix)). And that message displays interactively on the terminal. During startup of the daemon, it can still have its original standard output/error streams (and even that is not guaranteed if it is not invoked from the shell prompt), but once it starts, the standard output/error streams are closed b y the system and are no longer available, AFAIK. > So, there is a way to have the messages from emacsclient --eval display on the terminal, but in some > (most?) situations they don't. (The definition for message says: "In batch mode, the message is printed to > the standard error stream, followed by a newline.") So, I infer that yes-or-no-p should just use "message" > and all will be fine. yes-or-no-p needs to ask a question and get the response. > As to your suggested feature request: I'm not requesting termination of the server non-interactively - I'm just > saying that when the shutdown command comes from the command line, the messages be output to the > terminal, the way "message" does and not the way yes-or-no-p does. The terminal is still taken by the client frame it displays.