From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: JD Smith Newsgroups: gmane.emacs.bugs Subject: bug#67023: comint comments commend field=input Date: Thu, 9 Nov 2023 13:24:36 -0500 Message-ID: <7CE71ACE-95DA-4673-9804-054FD09983FB@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) 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="39634"; mail-complaints-to="usenet@ciao.gmane.io" To: 67023@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 09 19:25:52 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 1r19iy-000A8b-5Q for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Nov 2023 19:25:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r19iZ-00016d-Qv; Thu, 09 Nov 2023 13:25:28 -0500 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 1r19iV-00014L-OV for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2023 13:25:23 -0500 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 1r19iV-0006eO-Fn for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2023 13:25:23 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r19j8-0004TV-9J for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2023 13:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: JD Smith Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Nov 2023 18:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67023 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.169955434217165 (code B ref -1); Thu, 09 Nov 2023 18:26:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Nov 2023 18:25:42 +0000 Original-Received: from localhost ([127.0.0.1]:48701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r19in-0004Sl-Qk for submit@debbugs.gnu.org; Thu, 09 Nov 2023 13:25:42 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:54046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r19ik-0004SR-IR for submit@debbugs.gnu.org; Thu, 09 Nov 2023 13:25:41 -0500 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 1r19i0-0000TK-7G for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2023 13:24:52 -0500 Original-Received: from mail-yw1-x1132.google.com ([2607:f8b0:4864:20::1132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r19hy-0006PN-Ol for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2023 13:24:51 -0500 Original-Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-5a8ee23f043so13871207b3.3 for ; Thu, 09 Nov 2023 10:24:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699554288; x=1700159088; darn=gnu.org; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=1JU2BxPyWDvB8r3+mpC4xbplKhMgB/TuNCM496Gggqc=; b=FbCQMiyx3CPgQwzIhHlqOgeNHOXKEP34v0Ac2grBprD/p6SLRYUh9FGQmebMQfZD3b rGq+z4rUtQ5sa43sSbfoWvD4iW4iRpSvxntqA2xFXUvjpiuuu2qmvyoFBFjz4uY6csB9 oF9bNUx0qj8Xc1vdneK+j4vYgkm3axmkxIqs8obFbIEk3BahMr2TiA5lx4c99Vw8+V+q LJnPqiIweZTp39f7LvMaigSfmyDE6jq8yfMpJzAdnpFBaJ/R9lILlLs8zC5ep5XdNJRW MViZEYZ/rn7JvExXhBDl8IE9JCrdlSKNImUmbmr0gDUvg97nGlxzsxVhI9eeMZUUqVOS /1Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699554288; x=1700159088; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1JU2BxPyWDvB8r3+mpC4xbplKhMgB/TuNCM496Gggqc=; b=JhxAOoz7voAI7F9tGHKURLylf8xcP0FThoIerM76WH6OS8Tpc7gc6kSPgVj8dbQI5O v3viRzZgocQyH6kncUuCRnEzzRS6N3yVpHDWNnarwq4fR7mVlr+BC0CYIMCZrsIsq40j i6R27E4lG1fU/Den3efJNZMCHxUgTSMPEXrYo+IrLob5AuF13nxJalmDvkt2VJX0/ZXC IbOR2yxSNGRApPwMloRhzfkA7sQrgZg/jRXCP8i5WYRI+/rdKQ3r4y/dS3HxnPn2Tdo3 dw0czx56BVOASt57wa6ugt2sWQ9ZVBFpFOrecSI+HlJ2xUfycuukEDcvz3ni3QVCSham 5mNw== X-Gm-Message-State: AOJu0YyNqxPtmoUAx9A2QvB/BT2hEDXnjkMFZ30/TMQowXj1nfxvHd5d Dn1AiAT8Rd0WjYH/SxJRHKw1LpjalrY= X-Google-Smtp-Source: AGHT+IEwAPtnX5ktHl2CdEDTlcjXq9ff7U7DQiBg9ziz3DdK71+H/qNdGHAfEkZq7iS4Y9StkGubPw== X-Received: by 2002:a81:4e53:0:b0:595:80e4:907d with SMTP id c80-20020a814e53000000b0059580e4907dmr5744380ywb.32.1699554287700; Thu, 09 Nov 2023 10:24:47 -0800 (PST) Original-Received: from smtpclient.apple ([131.183.131.33]) by smtp.gmail.com with ESMTPSA id u198-20020a0debcf000000b005a42740fcd4sm8149868ywe.94.2023.11.09.10.24.46 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Nov 2023 10:24:46 -0800 (PST) X-Mailer: Apple Mail (2.3731.700.6) Received-SPF: pass client-ip=2607:f8b0:4864:20::1132; envelope-from=jdtsmith@gmail.com; helo=mail-yw1-x1132.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, T_SCC_BODY_TEXT_LINE=-0.01 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:274066 Archived-At: comint.el contains the following comment at line 1959, applicable when = comint-use-prompt-regexp=3Dnil: ;; Give old user input a field property of `input', to ;; distinguish it from both process output and unsent ;; input. The terminating newline is put into a special ;; `boundary' field to make cursor movement between = input ;; and output fields smoother. But this is not actually done. Just as for unsent input at the process = mark, old input has text property field=3Dnil. I traced it back and this change was made in Emacs 22, at the same time = overlay properties for the various comint fields were replaced by text = properties. Perhaps this is the desired behavior, and only fixing the = comments is required. However, the stated rationale to =E2=80=9Cdistingui= sh from output and current unsent input=E2=80=9D still seems applicable. = =20 Note that `comint-next-prompt=E2=80=99 checks explicitly for a null = field value to know when it has moved past a prompt. Comments in that = function erroneously mention field=3Dnil as pertaining only to unsent = input at the end of the comint buffer.=20=