From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: bruno cuconato Newsgroups: gmane.emacs.bugs Subject: bug#65318: 29.1.50; `comint-run' should read-string with specified history list Date: Tue, 15 Aug 2023 17:15:41 -0300 Message-ID: <87zg2sm58y.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28790"; mail-complaints-to="usenet@ciao.gmane.io" To: 65318@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 15 22:17:48 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 1qW0U7-0007LZ-QK for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Aug 2023 22:17:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qW0TT-0001vX-SP; Tue, 15 Aug 2023 16:17:09 -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 1qW0TP-0001uH-5t for bug-gnu-emacs@gnu.org; Tue, 15 Aug 2023 16:17:03 -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 1qW0TO-0005BY-Tt for bug-gnu-emacs@gnu.org; Tue, 15 Aug 2023 16:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qW0TO-0005Dp-K7 for bug-gnu-emacs@gnu.org; Tue, 15 Aug 2023 16:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: bruno cuconato Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Aug 2023 20:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65318 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.169213056420000 (code B ref -1); Tue, 15 Aug 2023 20:17:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Aug 2023 20:16:04 +0000 Original-Received: from localhost ([127.0.0.1]:36733 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qW0SR-0005CW-Qd for submit@debbugs.gnu.org; Tue, 15 Aug 2023 16:16:04 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:56616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qW0SP-0005Bj-Ou for submit@debbugs.gnu.org; Tue, 15 Aug 2023 16:16:02 -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 1qW0SJ-0001Qr-4l for bug-gnu-emacs@gnu.org; Tue, 15 Aug 2023 16:15:55 -0400 Original-Received: from mail-ot1-x32f.google.com ([2607:f8b0:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qW0SG-0004sx-SW for bug-gnu-emacs@gnu.org; Tue, 15 Aug 2023 16:15:54 -0400 Original-Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-6bd045336c6so5168266a34.2 for ; Tue, 15 Aug 2023 13:15:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692130550; x=1692735350; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=790ovyi1FoufyPEbb+f+fxeksMLSGBcUqkvmt0bahWQ=; b=BAQ+uyehMDvwTEZLEbvumlIG/JZoRJxbpF+xvtLCOCDr8xt0g1f8zK0ZLcCzlHDUqZ OZCEuqIoXhe+SbVShydIl3Tcx0dQm7Y8uhq9VhIxbKKjJqXSANA7q69swUdMLkQKe24v w/+onE7FDp/ZMCdz4e8NdPIWJi/l2jw2WgOHXoHhODvd+ZNZ3t2NQkjbT+VHijdRnUJW 6ARWEDYJM6zyhCvajW/R61vlgrJgn7WWY/vw9eMvwwOY67ihw+pl6arUo4+2X1l0YFcG FaSmvvETeGUjKcBcP07kT0VUjGP59QCQEkGLU/Xw0yC232Pfjqvcg3hE9XSJJmEaLwTd d7ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692130550; x=1692735350; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=790ovyi1FoufyPEbb+f+fxeksMLSGBcUqkvmt0bahWQ=; b=AIfbolhmo9wGZXZBZip8016yMwntPygkyG0aJRrMWZqhyk/9FseEHH15vrWbvZMYlo O1jdiDcJgHmJ/U8aHCrI3N2HjvPp9NdBuA8PyFKSrK28zz5LIhCDPW+ZAsMa1DtqcMAZ 9XD+Dl9wor8PdXBDnyWEFLx86nrn7oWGXYfCcEs1RPiS/Jo6yk3rht40ffcP2F8UVTBF jjqMZNk84gJExlZHao+b+ZRDljYTmIaR7P4d1NscadqSbHn+/xLenWV3VZW8e5Xhp7CQ /pU/wJFbVKEq7yWAxiZRPCunKImdbcccjnXMB+SrAL1LtgUpZCsqSUhmzfATEX5G3kDB lBNw== X-Gm-Message-State: AOJu0Yxme5BOaYf/gXbKK0oywIraaMzL998v0sMi6STCwIKjk93iU6HE usfdm+vhdC/xLsKOrY0Amd9yFJJb9Fw= X-Google-Smtp-Source: AGHT+IH5PHxgs7BTLUYRZbM7tqXOLi+omO4ykXMKHdiGB6burW87TZEZR75W/vgBeJ4V0mBRg12i8Q== X-Received: by 2002:a05:6870:c222:b0:1bb:a891:47fc with SMTP id z34-20020a056870c22200b001bba89147fcmr13809289oae.8.1692130550130; Tue, 15 Aug 2023 13:15:50 -0700 (PDT) Original-Received: from bonnet ([2804:14d:5cd2:9b28::c64a]) by smtp.gmail.com with ESMTPSA id e5-20020a056870a60500b001c4d00b18f6sm3905089oam.7.2023.08.15.13.15.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Aug 2023 13:15:49 -0700 (PDT) X-Google-Original-From: bruno cuconato Received-SPF: pass client-ip=2607:f8b0:4864:20::32f; envelope-from=bcclaro@gmail.com; helo=mail-ot1-x32f.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-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:267518 Archived-At: 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.=C2=B9) 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. =C2=B9: 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.