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#65318: 29.1.50; `comint-run' should read-string with specified history list Date: Wed, 16 Aug 2023 14:44:08 +0300 Message-ID: <83sf8j8b5j.fsf@gnu.org> References: <87zg2sm58y.fsf@gmail.com> 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="15315"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65318@debbugs.gnu.org To: bruno cuconato Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 16 13:45:22 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 1qWExm-0003oh-Dw for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Aug 2023 13:45:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWExW-0005ir-Lt; Wed, 16 Aug 2023 07:45:07 -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 1qWExU-0005iY-6M for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2023 07:45:04 -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 1qWExT-0004Yg-GS for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2023 07:45:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qWExS-0004QP-Tu for bug-gnu-emacs@gnu.org; Wed, 16 Aug 2023 07:45: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: Wed, 16 Aug 2023 11:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65318 X-GNU-PR-Package: emacs Original-Received: via spool by 65318-submit@debbugs.gnu.org id=B65318.169218625016929 (code B ref 65318); Wed, 16 Aug 2023 11:45:02 +0000 Original-Received: (at 65318) by debbugs.gnu.org; 16 Aug 2023 11:44:10 +0000 Original-Received: from localhost ([127.0.0.1]:38970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWEwc-0004Oz-CN for submit@debbugs.gnu.org; Wed, 16 Aug 2023 07:44:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37332) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWEwa-0004Oj-VF for 65318@debbugs.gnu.org; Wed, 16 Aug 2023 07:44:09 -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 1qWEwV-0004PE-IU; Wed, 16 Aug 2023 07:44:03 -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=NOYMskseG6sBZJ3DToEYCPFkpgCP4qBpsR+i+XQzSYk=; b=fAtRb3oZVAempq5OdvnF dBQzpkc/xinwFmKXVBMDnWZvG5paMHVJkAuaRV1DrkXdaFIab4itOuKATWW0a/svcTT9K+P63Fzzq hwJRxbNVOY6d2cYqgzEMibkJkGb2bFfxPd5c+pmi7deCeQPa2bt11AkTFfPiPkXeNRsAxwMHq/QvC 5+8rd//Rm9E159aJsu4vGJbR8FdCQr1TuY+xTTii9Kg695kGJQ1wJLA69m3qAb6qIGowsUhiOWc/K pOn6Y5fwkilOpJdYFRUg0unyyT7QQMxpRnJXbnaLuAxzy8t4roikIkeugLck+mA8brkEoiHDF9ZbN pATyGQm2tgFMfw==; In-Reply-To: <87zg2sm58y.fsf@gmail.com> (message from bruno cuconato on Tue, 15 Aug 2023 17:15:41 -0300) 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:267570 Archived-At: > From: bruno cuconato > Date: Tue, 15 Aug 2023 17:15:41 -0300 > > > Not really a bug, but a feature request. When I run `comint-run' I use > the history to find the switches I need, and often have to waddle > through a bunch of unrelated input. As I understand it, that is > because the interactive `read-string' call does not specify a history > list (and thus a global one is used, I assume.¹) I'm not sure what the > best solution is: do we want to add a history list just for the > switches, or do we want it to be shared with other commands (like > `shell-command'?), or would any change to the history list argument > break people's workflows? I for one would prefer the first option. Since the best solution is not clear, I think we should provide a user option that would name the history to use, and make it nil by default, to preserve the current behavior. Patches welcome. > ¹: An unrelated mini-bug: `read-string's docstring does not say what > happens when the argument is nil, although maybe the manual might do > so (I haven't checked). Obviously, one can simply check the C source. The doc string says to check the documentation of read-from-minibuffer for the details of HISTORY, and read-from-minibuffer says that if the argument is nil or omitted, it defaults to minibuffer-history. So I think we are okay in that department. Thanks.