From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rah Guzar via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#61602: [PATCH]: comint-mode redirection Date: Fri, 12 May 2023 09:25:45 +0200 Message-ID: <87cz362ek0.fsf@zohomail.eu> References: <873573ryft.fsf@zohomail.eu> <87pm763gfy.fsf@zohomail.eu> <83ednm3v9v.fsf@gnu.org> Reply-To: Rah Guzar Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27628"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.3; emacs 29.0.90 Cc: Ruijie Yu , 61602@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 12 09:30:34 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 1pxNEY-00072k-4X for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 May 2023 09:30:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxNEN-0004YR-R2; Fri, 12 May 2023 03:30:23 -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 1pxNE7-0004RK-IU for bug-gnu-emacs@gnu.org; Fri, 12 May 2023 03:30:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pxNE2-0000sP-2Q for bug-gnu-emacs@gnu.org; Fri, 12 May 2023 03:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pxNE1-0000IP-UT for bug-gnu-emacs@gnu.org; Fri, 12 May 2023 03:30:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rah Guzar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 May 2023 07:30:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61602 X-GNU-PR-Package: emacs Original-Received: via spool by 61602-submit@debbugs.gnu.org id=B61602.16838765931073 (code B ref 61602); Fri, 12 May 2023 07:30:01 +0000 Original-Received: (at 61602) by debbugs.gnu.org; 12 May 2023 07:29:53 +0000 Original-Received: from localhost ([127.0.0.1]:53918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxNDs-0000HC-7l for submit@debbugs.gnu.org; Fri, 12 May 2023 03:29:52 -0400 Original-Received: from sender11-pp-o91.zoho.eu ([31.186.226.249]:25139) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxNDj-0000Gn-JH for 61602@debbugs.gnu.org; Fri, 12 May 2023 03:29:44 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1683876563; cv=none; d=zohomail.eu; s=zohoarc; b=koisVX/Q+9ZwkszJSJT+uIjg4NwbD5YfgwNae/RA+a+Zu6LwC8cU8VSWOQ6NgHS1xYmpCQTW1WuPmR39DZNRfa1/fd/i2CF2sByTCa5pO6xp0R713wJiMh0cuhr2wdgWO2lGD1btkfFyntjqxPYUmumT6HZYCaJSkXbEDTXoL0s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1683876563; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=BwVsIAR/8cYREfFaZui++Tzag8Ae4PbBx3rKIkXFpWo=; b=garmf7AWGo15rAD1/x+nxJwyK/BfJf/0XjK4iPfLCDlSLvdz9ygi1Ju6eIhRcDT1RjLgp8UXo9FEtowq+wJ54CL6laeSo4xayl0TbBSivSnxKvRzX+dJ8wjdsQXZWGWu7KOmkNIrR0YqTDd3TR0Zu5SAJPvpwzusKY3cmmriSW0= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=zohomail.eu; spf=pass smtp.mailfrom=rahguzar@zohomail.eu; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1683876563; s=zoho; d=zohomail.eu; i=rahguzar@zohomail.eu; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To; bh=BwVsIAR/8cYREfFaZui++Tzag8Ae4PbBx3rKIkXFpWo=; b=PTeZnP6WCuh+ffgSB95pVYG033itikFD4uENhPD1XFrhnuZebVPQYHtyHJ8MbCc2 U5lz3RzJzkk02ttdiN9oCkrb/oFn+RpdHfU/FDa945jxn8kDJC9hoMkumOzPtJhJdgt ZAQBtnNYPLFqkwgsBSYBNj1+lVwaLZZHk9jyQWyk= Original-Received: from localhost (81-231-79-170-no600.tbcn.telia.com [81.231.79.170]) by mx.zoho.eu with SMTPS id 1683876561482167.49928891543925; Fri, 12 May 2023 09:29:21 +0200 (CEST) In-reply-to: <83ednm3v9v.fsf@gnu.org> X-ZohoMailClient: External 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:261613 Archived-At: Hi Eli, Eli Zaretskii writes: >> > This variable is only used if the variable >> > -`comint-use-prompt-regexp' is non-nil. >> > +`comint-use-prompt-regexp' is non-nil. The exception to >> > +this is redirection. Many commands including >> > +`comint-redirect-send-command-to-process' use it as >> > +`comint-redirect-finished-regexp'. >> >> This paragraph sounds a bit weird, but I don't know how to reword it. >> Maybe someone else can help. > > I'm not sure the addition is necessary in the first place. What is > its purpose? why is it useful to mention those exceptional cases? I think it is useful for those writing a comint derived mode who might be tempted to not set 'comint-prompt-regexp' since it is going to be unused by default. Redirection is an important enough facility in my opinion for this to be pointed out.