GNU bug report logs - #74524
29.4; dirtrack-mode

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Colton Goates <coltongoates@HIDDEN>; dated Mon, 25 Nov 2024 08:19:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 74524 <at> debbugs.gnu.org:


Received: (at 74524) by debbugs.gnu.org; 27 Nov 2024 01:58:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 26 20:58:10 2024
Received: from localhost ([127.0.0.1]:55720 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tG7Jg-0006O4-6Z
	for submit <at> debbugs.gnu.org; Tue, 26 Nov 2024 20:58:10 -0500
Received: from mail-yw1-f171.google.com ([209.85.128.171]:44094)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <coltongoates@HIDDEN>) id 1tG03Z-0008GP-UA
 for 74524 <at> debbugs.gnu.org; Tue, 26 Nov 2024 13:13:02 -0500
Received: by mail-yw1-f171.google.com with SMTP id
 00721157ae682-6ee994218d9so52866497b3.0
 for <74524 <at> debbugs.gnu.org>; Tue, 26 Nov 2024 10:13:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1732644716; x=1733249516; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=J9zP0+u5Aobk26QBf4UhNBeVXvwHKp5tnBtY1K5E90w=;
 b=KvfBqR3QdGRdV8XYe6A26yXkUZxoeF2dYqsE34YOM/Mh/DH6cF2bH7Od+OScfckQ0j
 kyK2NoG9YqOtzQ7coUHwC3y75CJYx0PmfsCN2GaVrVY9cIyMB1xQ2K4MBWSwj/VWhuez
 gTFjSdlWS/vqL2/gPqu2zONXUhRzPIgkIHUE0rS2MZzHEZEmel2jr5cyWHCN9Zs9La6f
 FFye5wfqVvKyI4kkmVrk1UELcsmiU7o6CZZLNbj35nu9nCA1XOkb2IyL9RjKshkTUssD
 d5Ycv8SAC1ZF3jjn0DqQZBUc43jxiIJbpOD5ij8blkAOZSjRk35Z2kqHUM0f/a72DdDe
 cHPQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1732644716; x=1733249516;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=J9zP0+u5Aobk26QBf4UhNBeVXvwHKp5tnBtY1K5E90w=;
 b=WcKSHfuZuwsJB7bHP+piXF7aYeB5WtDFRR6zwr3CyYJGubzp+TnXtDSWi6mbqgWldq
 zQ6NInvCOnpqUvM5lybfpMYs99iNSqBJGleQQM41LvtCF4+/OTqyNAM+qfIVLnGTVJK4
 ILMXVSvNpQOodxYWAoFSKzJarXRoBKm/1e+Wqp3bY88vp2BAKkAJABkuorjH2Uqd+oAo
 U4u+Vk74/1PA0S4lwG5GjeFiJPnlygexVawRB8IN2tbAcl2yxVwKDPBmb6LdgyyKJVQ0
 1jboY4xt3iyHBe9Vub1Vl+xf1+QMvAqKv/Kqx/6ax4BmSi8jtEKW1rCUo9HNDlj4mlyZ
 Vn3A==
X-Forwarded-Encrypted: i=1;
 AJvYcCVe3u2/3kep8kfmfWhSfKTqbvP9ye/7LvMEAZwFY7MIoo3BD18kWSAQGU1vEEqxsOLga/hm6w==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YyqIZNg85k7pC9iFEKQ+sCsOSlio3yWJX/009w9NQq1elAAfieb
 MLj+pyM/f9kgMJCdeDARyB5pYN5F8hw9HmWTEEJn4aikbqxTOsU049hkGWZuet7hRYYTzdPO2PI
 syebF5Frm//Nr+1gCpjRUYEEGJxc=
X-Gm-Gg: ASbGnctM3wehbzGmeE797ne2GNWPNLjx13ylmLaGRcLxSu8BZ6JHyLPGFAZBkkirCoE
 0K5z99BMyyF8m0hnFzhxqTad8r62r8Ot5oW3EJ7ousVYCBd5aFvQJspIKnNYO3A8=
X-Google-Smtp-Source: AGHT+IG2fdhy1Jj5nK3Dg73F7QNRDhIggTHEca4nOs1bdVC6ndNGygpktZe2kVYfbhoRewJeZFqkm/fbGyQRaMk7DdY=
X-Received: by 2002:a05:690c:45ca:b0:6db:db51:c02d with SMTP id
 00721157ae682-6ef3723b351mr1354497b3.25.1732644716333; Tue, 26 Nov 2024
 10:11:56 -0800 (PST)
MIME-Version: 1.0
References: <CAJkz86tpBc2SNUveo_SCsRD2RWsP93HZJpqRWo3KXiG0ejtgaQ@HIDDEN>
 <86iksbij3m.fsf@HIDDEN>
 <CAJkz86vppc+XYrcB_3wzX1LNXQkd6OweQWmE7aQ+GL+0DodYPA@HIDDEN>
 <867c8ri1o8.fsf@HIDDEN>
 <CAJkz86v4Hygd-fhbfJsr2WqQEigWo7uRw+ePA8O7MSA6BHpJDg@HIDDEN>
 <CAN+1HbrYM=tB4x7cm2HOPT_qaswfFFHM-09BhXVxi_DY=UOd2Q@HIDDEN>
In-Reply-To: <CAN+1HbrYM=tB4x7cm2HOPT_qaswfFFHM-09BhXVxi_DY=UOd2Q@HIDDEN>
From: Colton Goates <coltongoates@HIDDEN>
Date: Tue, 26 Nov 2024 11:11:20 -0700
Message-ID: <CAJkz86tPfAiMLfo7dhT+jpOiBVRSJrRQkR-xsiu1TSFyq78cpg@HIDDEN>
Subject: Re: bug#74524: 29.4; dirtrack-mode
To: Ship Mints <shipmints@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000d6d2c50627d4c81b"
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 74524
X-Mailman-Approved-At: Tue, 26 Nov 2024 20:58:00 -0500
Cc: Eli Zaretskii <eliz@HIDDEN>, 74524 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

--000000000000d6d2c50627d4c81b
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I also default my shell to bash. I might look into wezterm to see if I can
get it working with that one. Thanks for the tip about buffer local

On Tue, Nov 26, 2024 at 7:00=E2=80=AFAM Ship Mints <shipmints@HIDDEN> wr=
ote:

> Check that your default shell supports the function. I understand later
> macOS defaults to zsh which I have no experience with. I use macOS but I
> default my shell to bash. If you have an alternate terminal like
> Wezterm you could verify your shell settings there
> https://wezfurlong.org/wezterm/shell-integration.html#osc-7-escape-sequen=
ce-to-set-the-working-directory
>
> As far as your osc filter goes, I think it would be better to install it
> buffer-locally in a shell-mode-hook so you don't interfere with other
> comint uses.
>
>   (defun my/shell-mode-hook ()
>     (shell-dirtrack-mode -1)
>     (add-hook 'comint-output-filter-functions #'comint-osc-process-output
> nil 'local))
>   (add-hook 'shell-mode-hook #'my/shell-mode-hook)
>
> On Tue, Nov 26, 2024 at 3:16=E2=80=AFAM Colton Goates <coltongoates@gmail=
.com>
> wrote:
>
>> I don't know how dirtrack would tell the difference between a prompt
>> output and other printed output. I just thought of the edge case and
>> decided to point it out in case someone knew of a solution. Thanks for
>> responding.
>>
>> On Mon, Nov 25, 2024 at 11:55=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wr=
ote:
>>
>>> > From: Colton Goates <coltongoates@HIDDEN>
>>> > Date: Mon, 25 Nov 2024 10:27:00 -0700
>>> > Cc: 74524 <at> debbugs.gnu.org
>>> >
>>> > Coltons-MacBook-Pro:/Users/coltongoates/software-dev/$ isn't intended
>>> to be a directory name, it's a string
>>> > that's intended to look exactly like my prompt. (I know it's pretty
>>> contrived.)
>>> >
>>> > So, if someone prints something that resembles their prompt, dirtrack
>>> will change the directory, because
>>> > dirtrack thinks it just saw the shell prompt appear, but it really
>>> just saw a string that resembles the prompt.
>>> > Does that make more sense now?
>>>
>>> What do you expect dirtrack to do when you deliberately try to deceive
>>> it?  AFAIU, dirtrack is a piece of heuristic ad-hocery (as explained
>>> in its commentary), so it cannot be expected to survive such
>>> deception.  What kind of changes would you suggest to consider to
>>> handle the cases such as this one?
>>>
>>

--000000000000d6d2c50627d4c81b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I also default my shell to bash. I might look into wezterm=
 to see if I can get it working with that one. Thanks for the tip about buf=
fer local<br></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D=
"gmail_attr">On Tue, Nov 26, 2024 at 7:00=E2=80=AFAM Ship Mints &lt;<a href=
=3D"mailto:shipmints@HIDDEN">shipmints@HIDDEN</a>&gt; wrote:<br></div=
><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border=
-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div cl=
ass=3D"gmail_default" style=3D"font-family:monospace">Check that your defau=
lt shell supports the function. I understand later macOS defaults to zsh wh=
ich I have no experience with. I use macOS but I default my shell to bash. =
If you have an alternate terminal like Wezterm=C2=A0you could verify your s=
hell settings there=C2=A0<a href=3D"https://wezfurlong.org/wezterm/shell-in=
tegration.html#osc-7-escape-sequence-to-set-the-working-directory" target=
=3D"_blank">https://wezfurlong.org/wezterm/shell-integration.html#osc-7-esc=
ape-sequence-to-set-the-working-directory</a></div><div class=3D"gmail_defa=
ult" style=3D"font-family:monospace"><br></div><div class=3D"gmail_default"=
 style=3D"font-family:monospace">As far as your osc filter goes, I think it=
 would be better to install it buffer-locally in a shell-mode-hook so you d=
on&#39;t interfere with other comint uses.</div><div class=3D"gmail_default=
" style=3D"font-family:monospace"><br></div><div class=3D"gmail_default" st=
yle=3D"font-family:monospace">=C2=A0 (defun my/shell-mode-hook ()<br>=C2=A0=
 =C2=A0 (shell-dirtrack-mode -1)</div><div class=3D"gmail_default" style=3D=
"font-family:monospace">=C2=A0 =C2=A0 (add-hook &#39;comint-output-filter-f=
unctions #&#39;comint-osc-process-output nil &#39;local))<br>=C2=A0 (add-ho=
ok &#39;shell-mode-hook #&#39;my/shell-mode-hook)<br></div></div><br><div c=
lass=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Nov 26, =
2024 at 3:16=E2=80=AFAM Colton Goates &lt;<a href=3D"mailto:coltongoates@gm=
ail.com" target=3D"_blank">coltongoates@HIDDEN</a>&gt; wrote:<br></div><=
blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l=
eft:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">I don&#39=
;t know how dirtrack would tell the difference between a prompt output and =
other printed output. I just thought of the edge case and decided to point =
it out in case someone knew of a solution. Thanks for responding.<br></div>=
<br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Mon=
, Nov 25, 2024 at 11:55=E2=80=AFAM Eli Zaretskii &lt;<a href=3D"mailto:eliz=
@gnu.org" target=3D"_blank">eliz@HIDDEN</a>&gt; wrote:<br></div><blockquot=
e class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px s=
olid rgb(204,204,204);padding-left:1ex">&gt; From: Colton Goates &lt;<a hre=
f=3D"mailto:coltongoates@HIDDEN" target=3D"_blank">coltongoates@HIDDEN=
m</a>&gt;<br>
&gt; Date: Mon, 25 Nov 2024 10:27:00 -0700<br>
&gt; Cc: <a href=3D"mailto:74524 <at> debbugs.gnu.org" target=3D"_blank">74524@d=
ebbugs.gnu.org</a><br>
&gt; <br>
&gt; Coltons-MacBook-Pro:/Users/coltongoates/software-dev/$ isn&#39;t inten=
ded to be a directory name, it&#39;s a string<br>
&gt; that&#39;s intended to look exactly like my prompt. (I know it&#39;s p=
retty contrived.) <br>
&gt; <br>
&gt; So, if someone prints something that resembles their prompt, dirtrack =
will change the directory, because<br>
&gt; dirtrack thinks it just saw the shell prompt appear, but it really jus=
t saw a string that resembles the prompt.<br>
&gt; Does that make more sense now?<br>
<br>
What do you expect dirtrack to do when you deliberately try to deceive<br>
it?=C2=A0 AFAIU, dirtrack is a piece of heuristic ad-hocery (as explained<b=
r>
in its commentary), so it cannot be expected to survive such<br>
deception.=C2=A0 What kind of changes would you suggest to consider to<br>
handle the cases such as this one?<br>
</blockquote></div>
</blockquote></div>
</blockquote></div>

--000000000000d6d2c50627d4c81b--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#74524; Package emacs. Full text available.

Message received at 74524 <at> debbugs.gnu.org:


Received: (at 74524) by debbugs.gnu.org; 27 Nov 2024 01:58:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 26 20:58:08 2024
Received: from localhost ([127.0.0.1]:55718 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tG7Jf-0006O0-AD
	for submit <at> debbugs.gnu.org; Tue, 26 Nov 2024 20:58:08 -0500
Received: from mail-il1-f174.google.com ([209.85.166.174]:44340)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <coltongoates@HIDDEN>) id 1tFzyb-00080M-LJ
 for 74524 <at> debbugs.gnu.org; Tue, 26 Nov 2024 13:07:54 -0500
Received: by mail-il1-f174.google.com with SMTP id
 e9e14a558f8ab-3a775b207b4so25551915ab.1
 for <74524 <at> debbugs.gnu.org>; Tue, 26 Nov 2024 10:07:53 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1732644413; x=1733249213; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=PqhupYVZssP0OzKkfR5cY4OSE6rk29wA8+DS1PSBIhM=;
 b=hoh0gJwKheCA2x6xr1FSlJVRtiVz/+mfTYwSqQSnkKJweE7FNjxJKdX5r9inuNmHg8
 justEuIlqVHUvGK+nUjkcyZOyQ9gYyh9SKA1zZwDO/pS8KYuRftxWDjzM3H8QIKGnagm
 zku78xuOtKADxT+Y4oujzYFEZPvq7DTd6GGYW99jyawMEATZmSFzhkf97HxSUX33IqQa
 SfCTesseVe01yTYq3IxoyeiI/ctDV1uP8QR+iEd3mz2OKQOaTIHocgRpSpuOMcRhK0po
 9HGJ5Hfp28jvlfCfI4MzI+YQrHYiy4XZRvKDPLscOQ914Lyc23mFpIPH1L0Ot1L5lNGV
 8zBA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1732644413; x=1733249213;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=PqhupYVZssP0OzKkfR5cY4OSE6rk29wA8+DS1PSBIhM=;
 b=ojEpKUf6wcHjS+cgSubLJWfCYwMYhDGOUpEJ99Nb1gUuJDP4dJ7b1t2eof5oYJPKHy
 uhVfwQ8cc3QYGNfQYpzMV3ibsbn9G8ulgkU/nVMu/w/KGylNtQNCi1VZBKirBbPAXhMa
 /HwE3yvzV8nUMAnKE2n8QnxXmrpBvG/tMK7I8+FUr2G5yOjYCKvG8fTnaHT88BZuKwsD
 agn0gkdEayGW/MVnkA8jVonxJz8gr+R0m4unaqSyGtf09e9NyCtWCHvuO726DPIDKdP3
 fDLs3oeTZBFw23oKyd1+MEt8uZC6Nm4L6LyBYF9w/EHmKUl17qJ5OUeIzHjHO4KifN4T
 DPYw==
X-Gm-Message-State: AOJu0YzxRrlH8eEHvP7NLSAwyk3/F+KRZsIA2wC2eIS/fqYV4INWcCYg
 Z8r/SRMITcbqc5xu5xzIwjntiHFJ17d74/BGNiqAMyS6JQunSv/wZ4UFEpYXOQsnUFSczOdO2nB
 Ib9BIVdHNyBZH3cabh8kTNSzaCOYDig==
X-Gm-Gg: ASbGncv7BCDNQw9i4BxmjH1+lb8LKWirvw698/DbMo8sr1v1wwXiVfi3wpyr5eMce16
 TOws2+yp+vMtQWFgNtzqF8bI3pGQP+xGsxUk8PK/QxHzNOliwor9YkVTFtYveFWk=
X-Google-Smtp-Source: AGHT+IEU167rWb7eoSVWNAp10maTR0esVWOH3HvzqrueWI+P0/+enOgP4fLi3JsnF+tDQzrnSDud7mqqdeN2R6NkNK4=
X-Received: by 2002:a05:6902:c09:b0:e38:b512:2c05 with SMTP id
 3f1490d57ef6-e38f8be1ca1mr19025695276.33.1732644394260; Tue, 26 Nov 2024
 10:06:34 -0800 (PST)
MIME-Version: 1.0
References: <CAJkz86tpBc2SNUveo_SCsRD2RWsP93HZJpqRWo3KXiG0ejtgaQ@HIDDEN>
 <86iksbij3m.fsf@HIDDEN>
 <CAJkz86vppc+XYrcB_3wzX1LNXQkd6OweQWmE7aQ+GL+0DodYPA@HIDDEN>
 <867c8ri1o8.fsf@HIDDEN>
 <CAJkz86v4Hygd-fhbfJsr2WqQEigWo7uRw+ePA8O7MSA6BHpJDg@HIDDEN>
 <CAN+1HbrjvOi=Db=8uo+R6K=a8NRXw=Ed7Q9bY-R0D0oBQMcPTQ@HIDDEN>
In-Reply-To: <CAN+1HbrjvOi=Db=8uo+R6K=a8NRXw=Ed7Q9bY-R0D0oBQMcPTQ@HIDDEN>
From: Colton Goates <coltongoates@HIDDEN>
Date: Tue, 26 Nov 2024 11:05:57 -0700
Message-ID: <CAJkz86vugL-WNQUEKrw_tHcYQjTJ-DxM+YBFJyeyhb3qd5QFkQ@HIDDEN>
Subject: Re: bug#74524: 29.4; dirtrack-mode
To: Ship Mints <shipmints@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000a466a40627d4b551"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 74524
X-Mailman-Approved-At: Tue, 26 Nov 2024 20:58:00 -0500
Cc: 74524 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000a466a40627d4b551
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I was referring to the bizarre edge case of a printed edge case that
matches your regex. In that case, it will confuse the two. But like you
said, OS7 is the way to go. I'll just try to get it working

On Tue, Nov 26, 2024 at 7:46=E2=80=AFAM Ship Mints <shipmints@HIDDEN> wr=
ote:

> You can customize dirtrack-list to a regexp that can detect your prompt
> format. I'd still recommend using osc 7 support, though, as it's precise
> (once you get it working) and tracking pushd popd cd, parsing your prompt=
,
> etc. is not necessary.
>
> On Tue, Nov 26, 2024 at 3:16=E2=80=AFAM Colton Goates <coltongoates@gmail=
.com>
> wrote:
>
>> I don't know how dirtrack would tell the difference between a prompt
>> output and other printed output. I just thought of the edge case and
>> decided to point it out in case someone knew of a solution. Thanks for
>> responding.
>>
>> On Mon, Nov 25, 2024 at 11:55=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wr=
ote:
>>
>>> > From: Colton Goates <coltongoates@HIDDEN>
>>> > Date: Mon, 25 Nov 2024 10:27:00 -0700
>>> > Cc: 74524 <at> debbugs.gnu.org
>>> >
>>> > Coltons-MacBook-Pro:/Users/coltongoates/software-dev/$ isn't intended
>>> to be a directory name, it's a string
>>> > that's intended to look exactly like my prompt. (I know it's pretty
>>> contrived.)
>>> >
>>> > So, if someone prints something that resembles their prompt, dirtrack
>>> will change the directory, because
>>> > dirtrack thinks it just saw the shell prompt appear, but it really
>>> just saw a string that resembles the prompt.
>>> > Does that make more sense now?
>>>
>>> What do you expect dirtrack to do when you deliberately try to deceive
>>> it?  AFAIU, dirtrack is a piece of heuristic ad-hocery (as explained
>>> in its commentary), so it cannot be expected to survive such
>>> deception.  What kind of changes would you suggest to consider to
>>> handle the cases such as this one?
>>>
>>

--000000000000a466a40627d4b551
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I was referring to the bizarre edge case of a printed edge=
 case that matches your regex. In that case, it will confuse the two. But l=
ike you said, OS7 is the way to go. I&#39;ll just try to get it working <br=
></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr"=
>On Tue, Nov 26, 2024 at 7:46=E2=80=AFAM Ship Mints &lt;<a href=3D"mailto:s=
hipmints@HIDDEN">shipmints@HIDDEN</a>&gt; wrote:<br></div><blockquote=
 class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px so=
lid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div class=3D"gmail=
_default" style=3D"font-family:monospace">You can customize dirtrack-list=
=C2=A0to a regexp=C2=A0that can detect your prompt format. I&#39;d still re=
commend using osc 7 support, though, as it&#39;s precise (once you get it w=
orking) and tracking pushd popd cd, parsing your prompt, etc. is not necess=
ary.</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gm=
ail_attr">On Tue, Nov 26, 2024 at 3:16=E2=80=AFAM Colton Goates &lt;<a href=
=3D"mailto:coltongoates@HIDDEN" target=3D"_blank">coltongoates@HIDDEN=
</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:=
0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">=
<div dir=3D"ltr">I don&#39;t know how dirtrack would tell the difference be=
tween a prompt output and other printed output. I just thought of the edge =
case and decided to point it out in case someone knew of a solution. Thanks=
 for responding.<br></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" c=
lass=3D"gmail_attr">On Mon, Nov 25, 2024 at 11:55=E2=80=AFAM Eli Zaretskii =
&lt;<a href=3D"mailto:eliz@HIDDEN" target=3D"_blank">eliz@HIDDEN</a>&gt; =
wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0=
px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">&gt; From=
: Colton Goates &lt;<a href=3D"mailto:coltongoates@HIDDEN" target=3D"_bl=
ank">coltongoates@HIDDEN</a>&gt;<br>
&gt; Date: Mon, 25 Nov 2024 10:27:00 -0700<br>
&gt; Cc: <a href=3D"mailto:74524 <at> debbugs.gnu.org" target=3D"_blank">74524@d=
ebbugs.gnu.org</a><br>
&gt; <br>
&gt; Coltons-MacBook-Pro:/Users/coltongoates/software-dev/$ isn&#39;t inten=
ded to be a directory name, it&#39;s a string<br>
&gt; that&#39;s intended to look exactly like my prompt. (I know it&#39;s p=
retty contrived.) <br>
&gt; <br>
&gt; So, if someone prints something that resembles their prompt, dirtrack =
will change the directory, because<br>
&gt; dirtrack thinks it just saw the shell prompt appear, but it really jus=
t saw a string that resembles the prompt.<br>
&gt; Does that make more sense now?<br>
<br>
What do you expect dirtrack to do when you deliberately try to deceive<br>
it?=C2=A0 AFAIU, dirtrack is a piece of heuristic ad-hocery (as explained<b=
r>
in its commentary), so it cannot be expected to survive such<br>
deception.=C2=A0 What kind of changes would you suggest to consider to<br>
handle the cases such as this one?<br>
</blockquote></div>
</blockquote></div>
</blockquote></div>

--000000000000a466a40627d4b551--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#74524; Package emacs. Full text available.

Message received at 74524 <at> debbugs.gnu.org:


Received: (at 74524) by debbugs.gnu.org; 27 Nov 2024 01:58:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 26 20:58:03 2024
Received: from localhost ([127.0.0.1]:55716 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tG7Ja-0006Nb-8y
	for submit <at> debbugs.gnu.org; Tue, 26 Nov 2024 20:58:03 -0500
Received: from mail-yb1-f174.google.com ([209.85.219.174]:45511)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <coltongoates@HIDDEN>) id 1tFzyJ-0007zh-0u
 for 74524 <at> debbugs.gnu.org; Tue, 26 Nov 2024 13:07:35 -0500
Received: by mail-yb1-f174.google.com with SMTP id
 3f1490d57ef6-e333af0f528so5235411276.3
 for <74524 <at> debbugs.gnu.org>; Tue, 26 Nov 2024 10:07:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1732644394; x=1733249194; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=PqhupYVZssP0OzKkfR5cY4OSE6rk29wA8+DS1PSBIhM=;
 b=Bw+7NRaVqGePRmPHHNap+wIaOIkaEM7JXjPkvOODXE9undqCvssR6Z3oUodDpPPAEp
 wQn3uHB+KUE/mrVCUawI0VsXqjpjmTNhWEV6wUGY0UURdpJdCTj8WjZJgt148L+pq1Lf
 sxFI4Y55xQktpQMIolztjJCpYW/LpGscWq2Z6HVZMmlVNyj+W26qA1Ysb0vBLScibDjY
 kfNhB4Z2CMt1Zdpdercm8wZ3tKSgt1syl/94hWF3f23uXXVJG5YHH3SPtmb+3F8pzfDU
 1MVhKUs1kXq58dDlYyOXJcQMSmmb0jMbTE0uEU5GOkEFipSweYFVPdgS2fvcBIJPRire
 jhCQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1732644394; x=1733249194;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=PqhupYVZssP0OzKkfR5cY4OSE6rk29wA8+DS1PSBIhM=;
 b=HvbCOSkxLBWJE96M/4AVy7PNKJLYPSqJKdb83jRs1Mzw2rRS4w453P1pd5Z6ExmLNm
 nm200XhqPN30P3xXgWXDC61fDDCAwyLaKjhSRiClkqqjiQIIKMlT2CM4YGMcqubhly9s
 ltyD1evscewnm4seIhG7yVluEni/dW9LaxvBgNDB8LBHsHwLOvRTDKHICMvAPG29+x/I
 YdMkRkY6HWfW7SgP8aX5eq4HUo6kTYUknGsVV2+dQyqPZmmUDxHcLFfPieeGYB3qE765
 GlKO+KCFhZEq0kz7mi1c8jBvBHuxaTD2XTTuPrvKrI2Icynotjw6vM5dweas+g+fF/vY
 esGg==
X-Gm-Message-State: AOJu0YxVtYvPbvmzvzDx6G7g9VEiZrS7K2OR/uLvbBHAbmaSaM3u9w4j
 S8+9tRu27aQH7Edezf7w/eIJujqiJv/5CFMkYLOWmd0a2Z1j5xNosHH1IOpCtsxj4wT0GYwz8or
 UyHwER4resZu6wBq8Y9YUCg1URXI=
X-Gm-Gg: ASbGncvG6+SgrQVjr17NFVZ9j9jBmD96lyCCvaP87egs4MkCOJFCAa4s+AUYkJacWvI
 +YYo1QFr3RwzvnNpG2rV2yIV9gaEQ/SfMLVtC8oUW7C7fA9wFVG3DCYKd6uJpVIQ=
X-Google-Smtp-Source: AGHT+IEU167rWb7eoSVWNAp10maTR0esVWOH3HvzqrueWI+P0/+enOgP4fLi3JsnF+tDQzrnSDud7mqqdeN2R6NkNK4=
X-Received: by 2002:a05:6902:c09:b0:e38:b512:2c05 with SMTP id
 3f1490d57ef6-e38f8be1ca1mr19025695276.33.1732644394260; Tue, 26 Nov 2024
 10:06:34 -0800 (PST)
MIME-Version: 1.0
References: <CAJkz86tpBc2SNUveo_SCsRD2RWsP93HZJpqRWo3KXiG0ejtgaQ@HIDDEN>
 <86iksbij3m.fsf@HIDDEN>
 <CAJkz86vppc+XYrcB_3wzX1LNXQkd6OweQWmE7aQ+GL+0DodYPA@HIDDEN>
 <867c8ri1o8.fsf@HIDDEN>
 <CAJkz86v4Hygd-fhbfJsr2WqQEigWo7uRw+ePA8O7MSA6BHpJDg@HIDDEN>
 <CAN+1HbrjvOi=Db=8uo+R6K=a8NRXw=Ed7Q9bY-R0D0oBQMcPTQ@HIDDEN>
In-Reply-To: <CAN+1HbrjvOi=Db=8uo+R6K=a8NRXw=Ed7Q9bY-R0D0oBQMcPTQ@HIDDEN>
From: Colton Goates <coltongoates@HIDDEN>
Date: Tue, 26 Nov 2024 11:05:57 -0700
Message-ID: <CAJkz86vugL-WNQUEKrw_tHcYQjTJ-DxM+YBFJyeyhb3qd5QFkQ@HIDDEN>
Subject: Re: bug#74524: 29.4; dirtrack-mode
To: Ship Mints <shipmints@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000a466a40627d4b551"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 74524
X-Mailman-Approved-At: Tue, 26 Nov 2024 20:58:00 -0500
Cc: 74524 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000a466a40627d4b551
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I was referring to the bizarre edge case of a printed edge case that
matches your regex. In that case, it will confuse the two. But like you
said, OS7 is the way to go. I'll just try to get it working

On Tue, Nov 26, 2024 at 7:46=E2=80=AFAM Ship Mints <shipmints@HIDDEN> wr=
ote:

> You can customize dirtrack-list to a regexp that can detect your prompt
> format. I'd still recommend using osc 7 support, though, as it's precise
> (once you get it working) and tracking pushd popd cd, parsing your prompt=
,
> etc. is not necessary.
>
> On Tue, Nov 26, 2024 at 3:16=E2=80=AFAM Colton Goates <coltongoates@gmail=
.com>
> wrote:
>
>> I don't know how dirtrack would tell the difference between a prompt
>> output and other printed output. I just thought of the edge case and
>> decided to point it out in case someone knew of a solution. Thanks for
>> responding.
>>
>> On Mon, Nov 25, 2024 at 11:55=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wr=
ote:
>>
>>> > From: Colton Goates <coltongoates@HIDDEN>
>>> > Date: Mon, 25 Nov 2024 10:27:00 -0700
>>> > Cc: 74524 <at> debbugs.gnu.org
>>> >
>>> > Coltons-MacBook-Pro:/Users/coltongoates/software-dev/$ isn't intended
>>> to be a directory name, it's a string
>>> > that's intended to look exactly like my prompt. (I know it's pretty
>>> contrived.)
>>> >
>>> > So, if someone prints something that resembles their prompt, dirtrack
>>> will change the directory, because
>>> > dirtrack thinks it just saw the shell prompt appear, but it really
>>> just saw a string that resembles the prompt.
>>> > Does that make more sense now?
>>>
>>> What do you expect dirtrack to do when you deliberately try to deceive
>>> it?  AFAIU, dirtrack is a piece of heuristic ad-hocery (as explained
>>> in its commentary), so it cannot be expected to survive such
>>> deception.  What kind of changes would you suggest to consider to
>>> handle the cases such as this one?
>>>
>>

--000000000000a466a40627d4b551
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I was referring to the bizarre edge case of a printed edge=
 case that matches your regex. In that case, it will confuse the two. But l=
ike you said, OS7 is the way to go. I&#39;ll just try to get it working <br=
></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr"=
>On Tue, Nov 26, 2024 at 7:46=E2=80=AFAM Ship Mints &lt;<a href=3D"mailto:s=
hipmints@HIDDEN">shipmints@HIDDEN</a>&gt; wrote:<br></div><blockquote=
 class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px so=
lid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div class=3D"gmail=
_default" style=3D"font-family:monospace">You can customize dirtrack-list=
=C2=A0to a regexp=C2=A0that can detect your prompt format. I&#39;d still re=
commend using osc 7 support, though, as it&#39;s precise (once you get it w=
orking) and tracking pushd popd cd, parsing your prompt, etc. is not necess=
ary.</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gm=
ail_attr">On Tue, Nov 26, 2024 at 3:16=E2=80=AFAM Colton Goates &lt;<a href=
=3D"mailto:coltongoates@HIDDEN" target=3D"_blank">coltongoates@HIDDEN=
</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:=
0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">=
<div dir=3D"ltr">I don&#39;t know how dirtrack would tell the difference be=
tween a prompt output and other printed output. I just thought of the edge =
case and decided to point it out in case someone knew of a solution. Thanks=
 for responding.<br></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" c=
lass=3D"gmail_attr">On Mon, Nov 25, 2024 at 11:55=E2=80=AFAM Eli Zaretskii =
&lt;<a href=3D"mailto:eliz@HIDDEN" target=3D"_blank">eliz@HIDDEN</a>&gt; =
wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0=
px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">&gt; From=
: Colton Goates &lt;<a href=3D"mailto:coltongoates@HIDDEN" target=3D"_bl=
ank">coltongoates@HIDDEN</a>&gt;<br>
&gt; Date: Mon, 25 Nov 2024 10:27:00 -0700<br>
&gt; Cc: <a href=3D"mailto:74524 <at> debbugs.gnu.org" target=3D"_blank">74524@d=
ebbugs.gnu.org</a><br>
&gt; <br>
&gt; Coltons-MacBook-Pro:/Users/coltongoates/software-dev/$ isn&#39;t inten=
ded to be a directory name, it&#39;s a string<br>
&gt; that&#39;s intended to look exactly like my prompt. (I know it&#39;s p=
retty contrived.) <br>
&gt; <br>
&gt; So, if someone prints something that resembles their prompt, dirtrack =
will change the directory, because<br>
&gt; dirtrack thinks it just saw the shell prompt appear, but it really jus=
t saw a string that resembles the prompt.<br>
&gt; Does that make more sense now?<br>
<br>
What do you expect dirtrack to do when you deliberately try to deceive<br>
it?=C2=A0 AFAIU, dirtrack is a piece of heuristic ad-hocery (as explained<b=
r>
in its commentary), so it cannot be expected to survive such<br>
deception.=C2=A0 What kind of changes would you suggest to consider to<br>
handle the cases such as this one?<br>
</blockquote></div>
</blockquote></div>
</blockquote></div>

--000000000000a466a40627d4b551--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#74524; Package emacs. Full text available.

Message received at 74524 <at> debbugs.gnu.org:


Received: (at 74524) by debbugs.gnu.org; 26 Nov 2024 14:47:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 26 09:47:55 2024
Received: from localhost ([127.0.0.1]:48337 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tFwr4-0005tW-Gr
	for submit <at> debbugs.gnu.org; Tue, 26 Nov 2024 09:47:54 -0500
Received: from mail-qt1-f171.google.com ([209.85.160.171]:43275)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <shipmints@HIDDEN>) id 1tFwr2-0005tG-8Y
 for 74524 <at> debbugs.gnu.org; Tue, 26 Nov 2024 09:47:53 -0500
Received: by mail-qt1-f171.google.com with SMTP id
 d75a77b69052e-4667cd408a6so23212891cf.1
 for <74524 <at> debbugs.gnu.org>; Tue, 26 Nov 2024 06:47:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1732632405; x=1733237205; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=jKhp/EW1lAP91h6m/1lmd8hGOvzMBbVZf9UvLMILc5U=;
 b=SSvI0tV6AduSkbO9e/EqtSXysedoh89HSlJcjMWPPL+qBtllS6UIxPOGsURBG0q+WC
 VMe3Iwg1p9jtZN/vTQHXDMC7d+3hFYT3ttkQ1k6cVAizv5k2P0H6As77q+R7gtpEuJga
 wlm1499fiY1n+kuNWBHZUr4FazQkLom0JRYjdZ4r+iBq7hIAmc+pcWBmJQP0ptJDUNe6
 8+Pho6188ElHZGHzLLf1tXAof55IEf1s06hZk3ZXdJcVwHdIolQVAIb/2OJMEiet+NBH
 5xDu7xAzshd6Tqw11a+5jPk6lec4WDGnpgYcJ5IkDngFATQsBFAzVl0//jRjqy8NSgCk
 bqJA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1732632405; x=1733237205;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=jKhp/EW1lAP91h6m/1lmd8hGOvzMBbVZf9UvLMILc5U=;
 b=K2eldyE38kiVVwMC7aLGSSBydM4MSoq4mWgOh7ErkKxllCWDsyIS3A5o2VbHwwh6vf
 KQCWZqCOs+N8D+A2Mkeaixf7nV9vMlHUqJQ0WUvWAJWWA5kY9DW78/7tewlL57OsQt/Z
 4kaCj1KMkLrthqgIl3W+F9Kr0NrT8HHe4CUKwJel/dSb9Ds4E3NLuD3QYe6AC7NZRC05
 jydJVWtroGD6wLGFUj885s0GsdWISaBLqKHHMMtmyhblryiTbUBQqBP/xUENEbET3AnQ
 5FcZsAsxNtjB1aOzw6EpaT2IXFPLQ6WEI26Aya/tZAG+DSHIsLldcUi6J/yvu3UCrhV7
 cB7w==
X-Forwarded-Encrypted: i=1;
 AJvYcCV9WpkgnonO5KTjeoOPLFSqXAwjyfOUIVIX94tCfLCKjEnntgUISPdT2VzEuDk8s+raWvfT3w==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YyHfIN6j8FrDi1i7kgcTNk2JmNbqpNY/xpdSIbQfxCN8qNWIKEo
 JpBWhj1sgUrQOqyPxJt8MMdOonvKXn0vbq4cfbuMFOG9hf/IXL5ITqujGhpoWM3A47hrE0aJTdc
 T8D9ziitXJ7/mbeaCdffhyjnTuKA=
X-Gm-Gg: ASbGncvs/Rqn3VdNfrtVUehr5NPiwgvyVbnnrSCGtMeRTKbYVVbBuUMZ2eWSUuaj5qB
 uX4xV1YbhtCBy7Bxh+5kwT5nAvpaPvN0=
X-Google-Smtp-Source: AGHT+IEDvh5wErJW9Pvuma7niO1yK6MsLQ/UvnJy+yZqmFy28vjCX8K5q6CfoXXlwPBqBwOdbynb04qW+1CynJIfMOk=
X-Received: by 2002:a05:622a:5c7:b0:466:9360:4933 with SMTP id
 d75a77b69052e-466a3bc77efmr65348541cf.27.1732632405601; Tue, 26 Nov 2024
 06:46:45 -0800 (PST)
MIME-Version: 1.0
References: <CAJkz86tpBc2SNUveo_SCsRD2RWsP93HZJpqRWo3KXiG0ejtgaQ@HIDDEN>
 <86iksbij3m.fsf@HIDDEN>
 <CAJkz86vppc+XYrcB_3wzX1LNXQkd6OweQWmE7aQ+GL+0DodYPA@HIDDEN>
 <867c8ri1o8.fsf@HIDDEN>
 <CAJkz86v4Hygd-fhbfJsr2WqQEigWo7uRw+ePA8O7MSA6BHpJDg@HIDDEN>
In-Reply-To: <CAJkz86v4Hygd-fhbfJsr2WqQEigWo7uRw+ePA8O7MSA6BHpJDg@HIDDEN>
From: Ship Mints <shipmints@HIDDEN>
Date: Tue, 26 Nov 2024 09:46:26 -0500
Message-ID: <CAN+1HbrjvOi=Db=8uo+R6K=a8NRXw=Ed7Q9bY-R0D0oBQMcPTQ@HIDDEN>
Subject: Re: bug#74524: 29.4; dirtrack-mode
To: Colton Goates <coltongoates@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000001029bd0627d1ebea"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 74524
Cc: Eli Zaretskii <eliz@HIDDEN>, 74524 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--0000000000001029bd0627d1ebea
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

You can customize dirtrack-list to a regexp that can detect your prompt
format. I'd still recommend using osc 7 support, though, as it's precise
(once you get it working) and tracking pushd popd cd, parsing your prompt,
etc. is not necessary.

On Tue, Nov 26, 2024 at 3:16=E2=80=AFAM Colton Goates <coltongoates@HIDDEN=
om>
wrote:

> I don't know how dirtrack would tell the difference between a prompt
> output and other printed output. I just thought of the edge case and
> decided to point it out in case someone knew of a solution. Thanks for
> responding.
>
> On Mon, Nov 25, 2024 at 11:55=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wro=
te:
>
>> > From: Colton Goates <coltongoates@HIDDEN>
>> > Date: Mon, 25 Nov 2024 10:27:00 -0700
>> > Cc: 74524 <at> debbugs.gnu.org
>> >
>> > Coltons-MacBook-Pro:/Users/coltongoates/software-dev/$ isn't intended
>> to be a directory name, it's a string
>> > that's intended to look exactly like my prompt. (I know it's pretty
>> contrived.)
>> >
>> > So, if someone prints something that resembles their prompt, dirtrack
>> will change the directory, because
>> > dirtrack thinks it just saw the shell prompt appear, but it really jus=
t
>> saw a string that resembles the prompt.
>> > Does that make more sense now?
>>
>> What do you expect dirtrack to do when you deliberately try to deceive
>> it?  AFAIU, dirtrack is a piece of heuristic ad-hocery (as explained
>> in its commentary), so it cannot be expected to survive such
>> deception.  What kind of changes would you suggest to consider to
>> handle the cases such as this one?
>>
>

--0000000000001029bd0627d1ebea
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:monospac=
e">You can customize dirtrack-list=C2=A0to a regexp=C2=A0that can detect yo=
ur prompt format. I&#39;d still recommend using osc 7 support, though, as i=
t&#39;s precise (once you get it working) and tracking pushd popd cd, parsi=
ng your prompt, etc. is not necessary.</div></div><br><div class=3D"gmail_q=
uote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Nov 26, 2024 at 3:16=E2=
=80=AFAM Colton Goates &lt;<a href=3D"mailto:coltongoates@HIDDEN">colton=
goates@HIDDEN</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" =
style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pa=
dding-left:1ex"><div dir=3D"ltr">I don&#39;t know how dirtrack would tell t=
he difference between a prompt output and other printed output. I just thou=
ght of the edge case and decided to point it out in case someone knew of a =
solution. Thanks for responding.<br></div><br><div class=3D"gmail_quote"><d=
iv dir=3D"ltr" class=3D"gmail_attr">On Mon, Nov 25, 2024 at 11:55=E2=80=AFA=
M Eli Zaretskii &lt;<a href=3D"mailto:eliz@HIDDEN" target=3D"_blank">eliz@=
gnu.org</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"=
margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-lef=
t:1ex">&gt; From: Colton Goates &lt;<a href=3D"mailto:coltongoates@HIDDEN=
m" target=3D"_blank">coltongoates@HIDDEN</a>&gt;<br>
&gt; Date: Mon, 25 Nov 2024 10:27:00 -0700<br>
&gt; Cc: <a href=3D"mailto:74524 <at> debbugs.gnu.org" target=3D"_blank">74524@d=
ebbugs.gnu.org</a><br>
&gt; <br>
&gt; Coltons-MacBook-Pro:/Users/coltongoates/software-dev/$ isn&#39;t inten=
ded to be a directory name, it&#39;s a string<br>
&gt; that&#39;s intended to look exactly like my prompt. (I know it&#39;s p=
retty contrived.) <br>
&gt; <br>
&gt; So, if someone prints something that resembles their prompt, dirtrack =
will change the directory, because<br>
&gt; dirtrack thinks it just saw the shell prompt appear, but it really jus=
t saw a string that resembles the prompt.<br>
&gt; Does that make more sense now?<br>
<br>
What do you expect dirtrack to do when you deliberately try to deceive<br>
it?=C2=A0 AFAIU, dirtrack is a piece of heuristic ad-hocery (as explained<b=
r>
in its commentary), so it cannot be expected to survive such<br>
deception.=C2=A0 What kind of changes would you suggest to consider to<br>
handle the cases such as this one?<br>
</blockquote></div>
</blockquote></div>

--0000000000001029bd0627d1ebea--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#74524; Package emacs. Full text available.

Message received at 74524 <at> debbugs.gnu.org:


Received: (at 74524) by debbugs.gnu.org; 26 Nov 2024 14:32:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 26 09:32:52 2024
Received: from localhost ([127.0.0.1]:48302 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tFwcV-0005Ds-KP
	for submit <at> debbugs.gnu.org; Tue, 26 Nov 2024 09:32:51 -0500
Received: from eggs.gnu.org ([209.51.188.92]:49450)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1tFwcT-0005Db-Qk
 for 74524 <at> debbugs.gnu.org; Tue, 26 Nov 2024 09:32:50 -0500
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 <eliz@HIDDEN>)
 id 1tFwcO-0003J0-FG; Tue, 26 Nov 2024 09:32:44 -0500
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=E4JtQMIuXz3OVzHR4yoVMp9BbTf/r/FcmNULPa7It+s=; b=r6gEscxDPLWg
 pLRdlrPXyZQJ92aO9P+IZLeU9g1pk4IEokwYn46pI2V510iPpmZLFWx3NzEnxZPU/DIJ5Bt7pVd5d
 P6VseY4YvHThBYW8lsN9ZqEN5EDlrUfejoIUeAwEJMncISd/aLMduygapTsCsdnTCqEAk15zegkxV
 TK+sCAkvbam4fJvziJ16utG+F8/8dmB/vxa/srz9Gt/MA4b2Igswn46H4DbXpnb2SyJIm/5cUEbZW
 STHdX2pxZxrsSvLFcNebb0iSZM/Qg3bw96br665JDyuXx0lVtzxcWBBTohPxWXO7TVFkFIYyyrKbY
 0S5o4tTQEoGgfII1nCqIag==;
Date: Tue, 26 Nov 2024 16:32:41 +0200
Message-Id: <86iksagj5i.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Colton Goates <coltongoates@HIDDEN>
In-Reply-To: <CAJkz86v4Hygd-fhbfJsr2WqQEigWo7uRw+ePA8O7MSA6BHpJDg@HIDDEN>
 (message from Colton Goates on Mon, 25 Nov 2024 19:11:03 -0700)
Subject: Re: bug#74524: 29.4; dirtrack-mode
References: <CAJkz86tpBc2SNUveo_SCsRD2RWsP93HZJpqRWo3KXiG0ejtgaQ@HIDDEN>
 <86iksbij3m.fsf@HIDDEN>
 <CAJkz86vppc+XYrcB_3wzX1LNXQkd6OweQWmE7aQ+GL+0DodYPA@HIDDEN>
 <867c8ri1o8.fsf@HIDDEN>
 <CAJkz86v4Hygd-fhbfJsr2WqQEigWo7uRw+ePA8O7MSA6BHpJDg@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 74524
Cc: 74524 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Colton Goates <coltongoates@HIDDEN>
> Date: Mon, 25 Nov 2024 19:11:03 -0700
> Cc: 74524 <at> debbugs.gnu.org
> 
> I don't know how dirtrack would tell the difference between a prompt output and other printed output. I just
> thought of the edge case and decided to point it out in case someone knew of a solution. Thanks for
> responding.

Thanks, understood.

Does anyone see a way to overcome these situations?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#74524; Package emacs. Full text available.

Message received at 74524 <at> debbugs.gnu.org:


Received: (at 74524) by debbugs.gnu.org; 26 Nov 2024 14:01:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 26 09:01:40 2024
Received: from localhost ([127.0.0.1]:48231 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tFw8J-0003jY-W4
	for submit <at> debbugs.gnu.org; Tue, 26 Nov 2024 09:01:40 -0500
Received: from mail-vs1-f54.google.com ([209.85.217.54]:52608)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <shipmints@HIDDEN>) id 1tFw8F-0003jH-Q1
 for 74524 <at> debbugs.gnu.org; Tue, 26 Nov 2024 09:01:38 -0500
Received: by mail-vs1-f54.google.com with SMTP id
 ada2fe7eead31-4af07a8d444so890569137.1
 for <74524 <at> debbugs.gnu.org>; Tue, 26 Nov 2024 06:01:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1732629630; x=1733234430; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=r6v90faLjBq+fORcQ53/O5w2Foff0/nofp3YGqePnLY=;
 b=J/+/sfDS2JB1wjdi11h3zPuIbpg3+CbyVgf1dlJ5NL6l223l6Rf2nZ2hJw6MHansyj
 7JyNK9Nim7KlHnwL69Ibh9b2Z6JiDmGYExr0Wq83Nc+CHvnFFfjx1T7XfakqVW0N4qw9
 W887YQlM+el6eoggmJ2MbJZCThei5097aAwN4uweLENH6ZER0YmuZjbFCsqXdw4RVu5t
 rUmthVbvbDUMUqXHVVMqrbIUG/lb/y6BPI7cuuuIiTXWJ6GkBLg18RXInDIRimq8UbTw
 KLLrrkxQGrc7mYbVwP/cYpkM/VCy0gYai9jE9fuUWBA8RW5SW4fe+MI6Htm7140a4puX
 +Dpw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1732629630; x=1733234430;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=r6v90faLjBq+fORcQ53/O5w2Foff0/nofp3YGqePnLY=;
 b=oRZ3KY3+7rbX9pFkrMxgz7O8sNUCr1OcDW4skic+bfBcyi0+2vZqTY+fEbx/Y7qG1r
 Gv878vKIYQmsWj8EYUEDQXna3P00IZR1VaHVlXzp0Fk1tj04AM0Jq9gjc9NjXIIsDpe+
 QapVAoZ1zP3J89V2uhxTYw/tF4S9wFT4vH6smOrb4ZmCk/YOScC67blhcXvTpxDwcIdP
 fDe4c2TIqiKvEAEStjuoNHg0+AtU1YYxBiP+G+VsHSY3lMOCn/Lrkc3y/ezwEdRjYrDg
 SV1EHzvaJuFBzrEoQyw3++NOQZM4wQXlUghUn8Sz1fbDp2vOgDyj21ERcNhIy5WEYgJV
 fV5A==
X-Forwarded-Encrypted: i=1;
 AJvYcCVJneBTF/GiagMP2tRMi+mMSOEMqfV93SGtL1Qn414N/NlaHRAv2NGlm+Sa9doMGIEgqn53aA==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YypgIbvSooYwBUOo1k81A0q9esg7PFzI6vmDzGVduOdu9hY5CRQ
 rMVzsuVTV7UA3TJZmts1jrgbOkmVSVd7FMhLVTnhKurrpQYQ9PFYZkLlXW7t7APyaybzR1nSWOc
 yYQytC7H9XxytyhVnTqZG1WsAI7A=
X-Gm-Gg: ASbGnctCgkTiXWuu2bCi+hpyUFcn3b6mjFQai9eQayymrH278gdtxNTFYbjVia3L6V6
 wRzH6f5PbtSq2Y75LD8JuIeRbT9POuJU=
X-Google-Smtp-Source: AGHT+IGtOOXTBqDIfo8wHQ/ikf82+I2lxk5seEBN9XeTHJlgmQCkp8GFMHPlE25zVcYdu8VYAicuYfXvxRGyvPhGvr4=
X-Received: by 2002:a05:6102:54ac:b0:4af:3f3c:515e with SMTP id
 ada2fe7eead31-4af3f3c5240mr1319650137.23.1732629626883; Tue, 26 Nov 2024
 06:00:26 -0800 (PST)
MIME-Version: 1.0
References: <CAJkz86tpBc2SNUveo_SCsRD2RWsP93HZJpqRWo3KXiG0ejtgaQ@HIDDEN>
 <86iksbij3m.fsf@HIDDEN>
 <CAJkz86vppc+XYrcB_3wzX1LNXQkd6OweQWmE7aQ+GL+0DodYPA@HIDDEN>
 <867c8ri1o8.fsf@HIDDEN>
 <CAJkz86v4Hygd-fhbfJsr2WqQEigWo7uRw+ePA8O7MSA6BHpJDg@HIDDEN>
In-Reply-To: <CAJkz86v4Hygd-fhbfJsr2WqQEigWo7uRw+ePA8O7MSA6BHpJDg@HIDDEN>
From: Ship Mints <shipmints@HIDDEN>
Date: Tue, 26 Nov 2024 09:00:07 -0500
Message-ID: <CAN+1HbrYM=tB4x7cm2HOPT_qaswfFFHM-09BhXVxi_DY=UOd2Q@HIDDEN>
Subject: Re: bug#74524: 29.4; dirtrack-mode
To: Colton Goates <coltongoates@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000701c030627d14521"
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 74524
Cc: Eli Zaretskii <eliz@HIDDEN>, 74524 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

--000000000000701c030627d14521
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Check that your default shell supports the function. I understand later
macOS defaults to zsh which I have no experience with. I use macOS but I
default my shell to bash. If you have an alternate terminal like
Wezterm you could verify your shell settings there
https://wezfurlong.org/wezterm/shell-integration.html#osc-7-escape-sequence=
-to-set-the-working-directory

As far as your osc filter goes, I think it would be better to install it
buffer-locally in a shell-mode-hook so you don't interfere with other
comint uses.

  (defun my/shell-mode-hook ()
    (shell-dirtrack-mode -1)
    (add-hook 'comint-output-filter-functions #'comint-osc-process-output
nil 'local))
  (add-hook 'shell-mode-hook #'my/shell-mode-hook)

On Tue, Nov 26, 2024 at 3:16=E2=80=AFAM Colton Goates <coltongoates@HIDDEN=
om>
wrote:

> I don't know how dirtrack would tell the difference between a prompt
> output and other printed output. I just thought of the edge case and
> decided to point it out in case someone knew of a solution. Thanks for
> responding.
>
> On Mon, Nov 25, 2024 at 11:55=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wro=
te:
>
>> > From: Colton Goates <coltongoates@HIDDEN>
>> > Date: Mon, 25 Nov 2024 10:27:00 -0700
>> > Cc: 74524 <at> debbugs.gnu.org
>> >
>> > Coltons-MacBook-Pro:/Users/coltongoates/software-dev/$ isn't intended
>> to be a directory name, it's a string
>> > that's intended to look exactly like my prompt. (I know it's pretty
>> contrived.)
>> >
>> > So, if someone prints something that resembles their prompt, dirtrack
>> will change the directory, because
>> > dirtrack thinks it just saw the shell prompt appear, but it really jus=
t
>> saw a string that resembles the prompt.
>> > Does that make more sense now?
>>
>> What do you expect dirtrack to do when you deliberately try to deceive
>> it?  AFAIU, dirtrack is a piece of heuristic ad-hocery (as explained
>> in its commentary), so it cannot be expected to survive such
>> deception.  What kind of changes would you suggest to consider to
>> handle the cases such as this one?
>>
>

--000000000000701c030627d14521
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:monospac=
e">Check that your default shell supports the function. I understand later =
macOS defaults to zsh which I have no experience with. I use macOS but I de=
fault my shell to bash. If you have an alternate terminal like Wezterm=C2=
=A0you could verify your shell settings there=C2=A0<a href=3D"https://wezfu=
rlong.org/wezterm/shell-integration.html#osc-7-escape-sequence-to-set-the-w=
orking-directory">https://wezfurlong.org/wezterm/shell-integration.html#osc=
-7-escape-sequence-to-set-the-working-directory</a></div><div class=3D"gmai=
l_default" style=3D"font-family:monospace"><br></div><div class=3D"gmail_de=
fault" style=3D"font-family:monospace">As far as your osc filter goes, I th=
ink it would be better to install it buffer-locally in a shell-mode-hook so=
 you don&#39;t interfere with other comint uses.</div><div class=3D"gmail_d=
efault" style=3D"font-family:monospace"><br></div><div class=3D"gmail_defau=
lt" style=3D"font-family:monospace">=C2=A0 (defun my/shell-mode-hook ()<br>=
=C2=A0 =C2=A0 (shell-dirtrack-mode -1)</div><div class=3D"gmail_default" st=
yle=3D"font-family:monospace">=C2=A0 =C2=A0 (add-hook &#39;comint-output-fi=
lter-functions #&#39;comint-osc-process-output nil &#39;local))<br>=C2=A0 (=
add-hook &#39;shell-mode-hook #&#39;my/shell-mode-hook)<br></div></div><br>=
<div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, No=
v 26, 2024 at 3:16=E2=80=AFAM Colton Goates &lt;<a href=3D"mailto:coltongoa=
tes@HIDDEN">coltongoates@HIDDEN</a>&gt; wrote:<br></div><blockquote c=
lass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px soli=
d rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">I don&#39;t know how =
dirtrack would tell the difference between a prompt output and other printe=
d output. I just thought of the edge case and decided to point it out in ca=
se someone knew of a solution. Thanks for responding.<br></div><br><div cla=
ss=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, Nov 25, 20=
24 at 11:55=E2=80=AFAM Eli Zaretskii &lt;<a href=3D"mailto:eliz@HIDDEN" ta=
rget=3D"_blank">eliz@HIDDEN</a>&gt; wrote:<br></div><blockquote class=3D"g=
mail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204=
,204,204);padding-left:1ex">&gt; From: Colton Goates &lt;<a href=3D"mailto:=
coltongoates@HIDDEN" target=3D"_blank">coltongoates@HIDDEN</a>&gt;<br=
>
&gt; Date: Mon, 25 Nov 2024 10:27:00 -0700<br>
&gt; Cc: <a href=3D"mailto:74524 <at> debbugs.gnu.org" target=3D"_blank">74524@d=
ebbugs.gnu.org</a><br>
&gt; <br>
&gt; Coltons-MacBook-Pro:/Users/coltongoates/software-dev/$ isn&#39;t inten=
ded to be a directory name, it&#39;s a string<br>
&gt; that&#39;s intended to look exactly like my prompt. (I know it&#39;s p=
retty contrived.) <br>
&gt; <br>
&gt; So, if someone prints something that resembles their prompt, dirtrack =
will change the directory, because<br>
&gt; dirtrack thinks it just saw the shell prompt appear, but it really jus=
t saw a string that resembles the prompt.<br>
&gt; Does that make more sense now?<br>
<br>
What do you expect dirtrack to do when you deliberately try to deceive<br>
it?=C2=A0 AFAIU, dirtrack is a piece of heuristic ad-hocery (as explained<b=
r>
in its commentary), so it cannot be expected to survive such<br>
deception.=C2=A0 What kind of changes would you suggest to consider to<br>
handle the cases such as this one?<br>
</blockquote></div>
</blockquote></div>

--000000000000701c030627d14521--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#74524; Package emacs. Full text available.

Message received at 74524 <at> debbugs.gnu.org:


Received: (at 74524) by debbugs.gnu.org; 26 Nov 2024 08:15:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 26 03:15:05 2024
Received: from localhost ([127.0.0.1]:45572 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tFqit-0004RI-S7
	for submit <at> debbugs.gnu.org; Tue, 26 Nov 2024 03:15:05 -0500
Received: from mail-yb1-f175.google.com ([209.85.219.175]:57571)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <coltongoates@HIDDEN>) id 1tFlOl-0004Wx-OL
 for 74524 <at> debbugs.gnu.org; Mon, 25 Nov 2024 21:33:56 -0500
Received: by mail-yb1-f175.google.com with SMTP id
 3f1490d57ef6-e38938a55e7so4672711276.2
 for <74524 <at> debbugs.gnu.org>; Mon, 25 Nov 2024 18:33:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1732588370; x=1733193170; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=josWvJBaM8w5Bpqq0Swc/y1BV0v9sEnXJnpNQ6lx3ig=;
 b=fnZEgO2k9skKum1srEn6a2Uj6ucDm5dk9kNdyLyprGuAjpisO4q/wgxfqqYHem6n/W
 yMliEJijV5lOxlVgc0ddkfUgcw8Z4DXFShhQP6ul4z2Uu9nB4+iXxa8NqRZ+9GOskGxk
 U4M9U1deyhUrhYK846qt3qxTcA7KiXYfuCm/ybprvWz/T22NWHcF531czyDJPhXPfQhf
 RoCdWXHji8lGoBOVPdRwV5/GCS7v+1dU03mM7E0jaAHGF/uHj/L/y2uvrWUXzdaP4aTh
 91JFoNot7VZY9CW3R8LZNTcYHFerFwBsVVD9UPokCxMQUN8NLpKj9JSLSZhmaxueuxFu
 RwzA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1732588370; x=1733193170;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=josWvJBaM8w5Bpqq0Swc/y1BV0v9sEnXJnpNQ6lx3ig=;
 b=agp0CHnJIqnYuuVJvggNvqKUb/Nyv0LfwmjUmmSopEoV2zPi5RG60Rnnj0D0gf7LMV
 fWCcRADyIbeHXRAEN8UytR4JzOT1zMRVbOKe4t3WkeSsVA4Oe66JZ0wLB6P7/nUwlQwN
 wjun0mAsVl6G39U3hqopVncPstSCYetBVHYX+tfv4WIdLi6veWAU+Ne9Om+eviK2ejtC
 3QsIuLK2/evXOTkY+k0Kk7reQq/S13uns7veI/K+oAqUnHCT243CPJUbQ0Iu5p6OhtiE
 XMl3yCsDx6+N2E/aq29xd8wHYdvF1zlcT6l+7mWYS1Dc08BzTEePoLdMouBlu7chsPY1
 dAYA==
X-Forwarded-Encrypted: i=1;
 AJvYcCVCertHYxxYhc7AzC+Xkkr0tAofmNRZ2FdrKRBuXk9b4En3iaa6W+J6uZLRxzRFrorcefFUqg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxEEsKqMtMZr4AGG75hXHzUGnVmOUNThJ6tZvG+4sgmah4sZ3gl
 WR/coVARtA8zd1w50spMN8TKG3KR3sOcqDOW0C9t1MJmxpcu6GXq1E0fHPiSgb9kh5Gois4elUM
 fa0u0gKcy5UvyidhoC1wm5PXnepg=
X-Gm-Gg: ASbGncuYDZSOEUSCTtBUlG9MckjODz1nJZMSqKYk7lCaZ6pPMDPQ8dD/wyiqDLQsW+O
 QR0ntAH7uU337AA4MOWgJfBkTTtMsUtN6q76qRieyDUOn/j9d3o0Ods4vgWHcG2L7QA==
X-Google-Smtp-Source: AGHT+IEAmKIPl+3kZZsONCLKc8N+CqAwyn7H+FtKcgaTp03j2P0mlo5kdHKsAS9e1kyJ2OrBmZnPvmNwvjd+kOklh70=
X-Received: by 2002:a05:6902:701:b0:e38:901b:602d with SMTP id
 3f1490d57ef6-e38f8af7c41mr12896547276.9.1732588370176; Mon, 25 Nov 2024
 18:32:50 -0800 (PST)
MIME-Version: 1.0
References: <CAJkz86tpBc2SNUveo_SCsRD2RWsP93HZJpqRWo3KXiG0ejtgaQ@HIDDEN>
 <86iksbij3m.fsf@HIDDEN>
 <CAJkz86vppc+XYrcB_3wzX1LNXQkd6OweQWmE7aQ+GL+0DodYPA@HIDDEN>
 <867c8ri1o8.fsf@HIDDEN>
 <CAN+1HbqBaMnaZ6jC+Eftedy+OwrYU73gy4zUBgGWE=0U5SkVkg@HIDDEN>
In-Reply-To: <CAN+1HbqBaMnaZ6jC+Eftedy+OwrYU73gy4zUBgGWE=0U5SkVkg@HIDDEN>
From: Colton Goates <coltongoates@HIDDEN>
Date: Mon, 25 Nov 2024 19:32:14 -0700
Message-ID: <CAJkz86uLm3vSv8Kcohrt_avQxBysWukjcNTFa1j+O4htwkKEVA@HIDDEN>
Subject: Re: bug#74524: 29.4; dirtrack-mode
To: Ship Mints <shipmints@HIDDEN>
Content-Type: multipart/alternative; boundary="00000000000058ba870627c7aa14"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 74524
X-Mailman-Approved-At: Tue, 26 Nov 2024 03:15:01 -0500
Cc: Eli Zaretskii <eliz@HIDDEN>, 74524 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--00000000000058ba870627c7aa14
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I did what Ship Mints suggested, and it didn't work on my macbook i.e. no
directory tracking is happening. I checked directory tracking via the
`default-directory` variable and it did not change in response to cd
commands. I made sure to restart emacs to ensure that everything got
loaded. I have Emacs 29.4 (installed with brew) and I'm running macOS
Sequoia 15.1.1. See below for my configuration:

Here is my .bashrc:



*function myprompt () {  printf "\e]7;file://%s%s\e\\" "$HOSTNAME"
"$PWD"}export PROMPT_COMMAND=3Dmyprompt*

And I added this to my init.el
*(add-hook 'comint-output-filter-functions #'comint-osc-process-output)*

Does anyone have debugging tips?

On Mon, Nov 25, 2024 at 12:08=E2=80=AFPM Ship Mints <shipmints@HIDDEN> w=
rote:

> If you're using a shell that can support the following ansi osc 7 escape
> sequence excerpt I took from my bashrc, just disable dirtrack via
> (shell-dirtrack-mode -1).
>
> function myprompt () {
>   printf "\e]7;file://%s%s\e\\" "$HOSTNAME" "$PWD"
> }
>
> # Do these only if we're in an interactive shell
> case $- in
> *i*)
> # ...snip...
>   export PROMPT_COMMAND=3Dmyprompt
>
> On Mon, Nov 25, 2024 at 1:56=E2=80=AFPM Eli Zaretskii <eliz@HIDDEN> wrot=
e:
>
>> > From: Colton Goates <coltongoates@HIDDEN>
>> > Date: Mon, 25 Nov 2024 10:27:00 -0700
>> > Cc: 74524 <at> debbugs.gnu.org
>> >
>> > Coltons-MacBook-Pro:/Users/coltongoates/software-dev/$ isn't intended
>> to be a directory name, it's a string
>> > that's intended to look exactly like my prompt. (I know it's pretty
>> contrived.)
>> >
>> > So, if someone prints something that resembles their prompt, dirtrack
>> will change the directory, because
>> > dirtrack thinks it just saw the shell prompt appear, but it really jus=
t
>> saw a string that resembles the prompt.
>> > Does that make more sense now?
>>
>> What do you expect dirtrack to do when you deliberately try to deceive
>> it?  AFAIU, dirtrack is a piece of heuristic ad-hocery (as explained
>> in its commentary), so it cannot be expected to survive such
>> deception.  What kind of changes would you suggest to consider to
>> handle the cases such as this one?
>>
>>
>>
>>

--00000000000058ba870627c7aa14
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I did what Ship Mints suggested, and it didn&#39;t wo=
rk on my macbook i.e. no directory tracking is happening. I checked directo=
ry tracking via the `default-directory` variable and it did not change in r=
esponse to cd commands. I made sure to restart emacs to ensure that everyth=
ing got loaded. I have Emacs 29.4 (installed with brew) and I&#39;m running=
 macOS Sequoia 15.1.1. See below for my configuration:<br><br>Here is my .b=
ashrc:<br><b><span style=3D"font-family:monospace">function myprompt () {<b=
r>=C2=A0 printf &quot;\e]7;file://%s%s\e\\&quot; &quot;$HOSTNAME&quot; &quo=
t;$PWD&quot;<br>}<br>export PROMPT_COMMAND=3Dmyprompt</span></b><br><br>And=
 I added this to my init.el<br><div><b><span style=3D"font-family:monospace=
">(add-hook &#39;comint-output-filter-functions #&#39;comint-osc-process-ou=
tput)</span></b></div><div><b><span style=3D"font-family:monospace"><br></s=
pan></b></div><div>Does anyone have debugging tips?</div><div><b><span styl=
e=3D"font-family:monospace"><br></span></b></div><div class=3D"gmail_quote"=
><div dir=3D"ltr" class=3D"gmail_attr">On Mon, Nov 25, 2024 at 12:08=E2=80=
=AFPM Ship Mints &lt;<a href=3D"mailto:shipmints@HIDDEN">shipmints@gmail=
.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1=
ex"><div dir=3D"ltr"><div style=3D"font-family:monospace">If you&#39;re usi=
ng a shell that can support the following ansi osc 7 escape sequence excerp=
t I took from my bashrc, just disable dirtrack=C2=A0via (shell-dirtrack-mod=
e -1).</div><div style=3D"font-family:monospace"><br></div><div style=3D"fo=
nt-family:monospace">function myprompt () {<br>=C2=A0 printf &quot;\e]7;fil=
e://%s%s\e\\&quot; &quot;$HOSTNAME&quot; &quot;$PWD&quot;<br>}<br><br># Do =
these only if we&#39;re in an interactive shell<br>case $- in<br>*i*)<br># =
...snip...</div><div style=3D"font-family:monospace">=C2=A0 export PROMPT_C=
OMMAND=3Dmyprompt<br></div></div><br><div class=3D"gmail_quote"><div dir=3D=
"ltr" class=3D"gmail_attr">On Mon, Nov 25, 2024 at 1:56=E2=80=AFPM Eli Zare=
tskii &lt;<a href=3D"mailto:eliz@HIDDEN" target=3D"_blank">eliz@HIDDEN</a=
>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px=
 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">&gt=
; From: Colton Goates &lt;<a href=3D"mailto:coltongoates@HIDDEN" target=
=3D"_blank">coltongoates@HIDDEN</a>&gt;<br>
&gt; Date: Mon, 25 Nov 2024 10:27:00 -0700<br>
&gt; Cc: <a href=3D"mailto:74524 <at> debbugs.gnu.org" target=3D"_blank">74524@d=
ebbugs.gnu.org</a><br>
&gt; <br>
&gt; Coltons-MacBook-Pro:/Users/coltongoates/software-dev/$ isn&#39;t inten=
ded to be a directory name, it&#39;s a string<br>
&gt; that&#39;s intended to look exactly like my prompt. (I know it&#39;s p=
retty contrived.) <br>
&gt; <br>
&gt; So, if someone prints something that resembles their prompt, dirtrack =
will change the directory, because<br>
&gt; dirtrack thinks it just saw the shell prompt appear, but it really jus=
t saw a string that resembles the prompt.<br>
&gt; Does that make more sense now?<br>
<br>
What do you expect dirtrack to do when you deliberately try to deceive<br>
it?=C2=A0 AFAIU, dirtrack is a piece of heuristic ad-hocery (as explained<b=
r>
in its commentary), so it cannot be expected to survive such<br>
deception.=C2=A0 What kind of changes would you suggest to consider to<br>
handle the cases such as this one?<br>
<br>
<br>
<br>
</blockquote></div>
</blockquote></div></div></div>

--00000000000058ba870627c7aa14--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#74524; Package emacs. Full text available.

Message received at 74524 <at> debbugs.gnu.org:


Received: (at 74524) by debbugs.gnu.org; 26 Nov 2024 08:15:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 26 03:15:03 2024
Received: from localhost ([127.0.0.1]:45570 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tFqit-0004RB-9X
	for submit <at> debbugs.gnu.org; Tue, 26 Nov 2024 03:15:03 -0500
Received: from mail-yb1-f174.google.com ([209.85.219.174]:48272)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <coltongoates@HIDDEN>) id 1tFl4C-0003PJ-DY
 for 74524 <at> debbugs.gnu.org; Mon, 25 Nov 2024 21:12:40 -0500
Received: by mail-yb1-f174.google.com with SMTP id
 3f1490d57ef6-e382ed3ee45so4470841276.0
 for <74524 <at> debbugs.gnu.org>; Mon, 25 Nov 2024 18:12:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1732587100; x=1733191900; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=6XAB4m/B2RUTnW0pGegz72BYw3y4WtHELTNkTTP5/f8=;
 b=l73RQtkbMBHBamxHaZCqy3fb6sfm2nnepR6322EMEhCOzbQixREvZPAzlFoAKpbBJ5
 BenqjUfREVPF2934PEvAyEhbRHYQs5AE5QnKgjo5Vhewuj4jdET98ilRA3TigG/sVLmx
 XxAub1kAKjRalq7KYVTHbNLmoUOPbrtD+uThHQMrWo7sN6SK9S8BGKgG1XQ01wXakfOU
 CE/DQT5fJsK6NlRJeqO0+NCG43H0XQNPcbcv9sa2MZr0Z6DFXhr0oKC1EKniW1gNNeRW
 UFhZzITIdW5yiU+8HnX3lpp5HOgRFWZTbOIsDbZ3MP4XcZxuyGyWlWa/Zn1n2nSWEOlc
 TRbw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1732587100; x=1733191900;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=6XAB4m/B2RUTnW0pGegz72BYw3y4WtHELTNkTTP5/f8=;
 b=e4NK7fJ1ak0PBL0p6w6+YOtFnbPKMogs6qoy5RDosGXpuJQbQtPJE9GxQoHYHNgkNh
 26NBBWRwTvyId0145D7epj1qCN9KO6VYX+o2DNvU2mhmFvsToUm2kZr8iL09RnzLmWfH
 rloGgyCJtHSEuVeXy8ugi/lstJpX66YpQGh47VO0gs/7flhfQWNq7t6wKAwQ9/wZpeSR
 +/Qk5XMKi9ttOTR6skwwepcuAsvALQOJyIOFNr8fYcunokAXLjqejH0Rbde1sMf4Wnjx
 LWtNEilF9bvlwTv5XSZ5ZeaRDOLZR6BEzTWCR0d26S8ozluapRvxy1LJJ4XsxlV64TOM
 kPlw==
X-Gm-Message-State: AOJu0Yx6wxKOy1VkLW6p2fiwho2LnoylGowEmxQE/RxpJz8l8hhuTHje
 KvY1e00eStZkfxmJc9RzbT1IRuq0+ctYvX6rOBJN/I2KY0f6WP8oxjaEc1lXo7maURMSGuingu+
 pG5kN7U3LNpSgMj4Lnwunc4TauNA=
X-Gm-Gg: ASbGncsAPzx2bZotjtJ3vY+E976bkdh+n8s56dF09oT0aZWZ4AeOvvmv0yYPxcMXrJ8
 rUlc/oudttzxM8TdcG0dt3PQW2ZVfa3j8u8oOtUlkLtTI0CwQik+gIbqqLnFXzUUKcA==
X-Google-Smtp-Source: AGHT+IE06gzrJz96zvVc+3MYdIAdL8agJsoY8BoxciCP2vWhJqJx4WteUGYya0M1qwg84xNdWxPquAVak7guQWHBggQ=
X-Received: by 2002:a05:6902:120d:b0:e38:b72d:704e with SMTP id
 3f1490d57ef6-e38f8bded8cmr10064051276.42.1732587099594; Mon, 25 Nov 2024
 18:11:39 -0800 (PST)
MIME-Version: 1.0
References: <CAJkz86tpBc2SNUveo_SCsRD2RWsP93HZJpqRWo3KXiG0ejtgaQ@HIDDEN>
 <86iksbij3m.fsf@HIDDEN>
 <CAJkz86vppc+XYrcB_3wzX1LNXQkd6OweQWmE7aQ+GL+0DodYPA@HIDDEN>
 <867c8ri1o8.fsf@HIDDEN>
In-Reply-To: <867c8ri1o8.fsf@HIDDEN>
From: Colton Goates <coltongoates@HIDDEN>
Date: Mon, 25 Nov 2024 19:11:03 -0700
Message-ID: <CAJkz86v4Hygd-fhbfJsr2WqQEigWo7uRw+ePA8O7MSA6BHpJDg@HIDDEN>
Subject: Re: bug#74524: 29.4; dirtrack-mode
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000009d29d70627c75eda"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 74524
X-Mailman-Approved-At: Tue, 26 Nov 2024 03:15:01 -0500
Cc: 74524 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--0000000000009d29d70627c75eda
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I don't know how dirtrack would tell the difference between a prompt output
and other printed output. I just thought of the edge case and decided to
point it out in case someone knew of a solution. Thanks for responding.

On Mon, Nov 25, 2024 at 11:55=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wrote=
:

> > From: Colton Goates <coltongoates@HIDDEN>
> > Date: Mon, 25 Nov 2024 10:27:00 -0700
> > Cc: 74524 <at> debbugs.gnu.org
> >
> > Coltons-MacBook-Pro:/Users/coltongoates/software-dev/$ isn't intended t=
o
> be a directory name, it's a string
> > that's intended to look exactly like my prompt. (I know it's pretty
> contrived.)
> >
> > So, if someone prints something that resembles their prompt, dirtrack
> will change the directory, because
> > dirtrack thinks it just saw the shell prompt appear, but it really just
> saw a string that resembles the prompt.
> > Does that make more sense now?
>
> What do you expect dirtrack to do when you deliberately try to deceive
> it?  AFAIU, dirtrack is a piece of heuristic ad-hocery (as explained
> in its commentary), so it cannot be expected to survive such
> deception.  What kind of changes would you suggest to consider to
> handle the cases such as this one?
>

--0000000000009d29d70627c75eda
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I don&#39;t know how dirtrack would tell the difference be=
tween a prompt output and other printed output. I just thought of the edge =
case and decided to point it out in case someone knew of a solution. Thanks=
 for responding.<br></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" c=
lass=3D"gmail_attr">On Mon, Nov 25, 2024 at 11:55=E2=80=AFAM Eli Zaretskii =
&lt;<a href=3D"mailto:eliz@HIDDEN">eliz@HIDDEN</a>&gt; wrote:<br></div><b=
lockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-le=
ft:1px solid rgb(204,204,204);padding-left:1ex">&gt; From: Colton Goates &l=
t;<a href=3D"mailto:coltongoates@HIDDEN" target=3D"_blank">coltongoates@=
gmail.com</a>&gt;<br>
&gt; Date: Mon, 25 Nov 2024 10:27:00 -0700<br>
&gt; Cc: <a href=3D"mailto:74524 <at> debbugs.gnu.org" target=3D"_blank">74524@d=
ebbugs.gnu.org</a><br>
&gt; <br>
&gt; Coltons-MacBook-Pro:/Users/coltongoates/software-dev/$ isn&#39;t inten=
ded to be a directory name, it&#39;s a string<br>
&gt; that&#39;s intended to look exactly like my prompt. (I know it&#39;s p=
retty contrived.) <br>
&gt; <br>
&gt; So, if someone prints something that resembles their prompt, dirtrack =
will change the directory, because<br>
&gt; dirtrack thinks it just saw the shell prompt appear, but it really jus=
t saw a string that resembles the prompt.<br>
&gt; Does that make more sense now?<br>
<br>
What do you expect dirtrack to do when you deliberately try to deceive<br>
it?=C2=A0 AFAIU, dirtrack is a piece of heuristic ad-hocery (as explained<b=
r>
in its commentary), so it cannot be expected to survive such<br>
deception.=C2=A0 What kind of changes would you suggest to consider to<br>
handle the cases such as this one?<br>
</blockquote></div>

--0000000000009d29d70627c75eda--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#74524; Package emacs. Full text available.

Message received at 74524 <at> debbugs.gnu.org:


Received: (at 74524) by debbugs.gnu.org; 26 Nov 2024 08:15:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 26 03:15:03 2024
Received: from localhost ([127.0.0.1]:45568 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tFqis-0004R8-P8
	for submit <at> debbugs.gnu.org; Tue, 26 Nov 2024 03:15:03 -0500
Received: from mail-yb1-f177.google.com ([209.85.219.177]:47148)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <coltongoates@HIDDEN>) id 1tFct3-0002do-11
 for 74524 <at> debbugs.gnu.org; Mon, 25 Nov 2024 12:28:37 -0500
Received: by mail-yb1-f177.google.com with SMTP id
 3f1490d57ef6-e38866c8b2dso4050303276.2
 for <74524 <at> debbugs.gnu.org>; Mon, 25 Nov 2024 09:28:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1732555656; x=1733160456; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=foD+WWQgDousovYhWqX+94HHmKWj8dqNOG3gkfnKxUE=;
 b=kZ7n6cdl9FA5awZ9UO2Kxgj4dm5xgpNra8CKzX3ac3IglCpMgdXAU+jpLohIIatgd2
 vfMCO6zRLDsiStpNMm4PK2i5B4YD5k43tSKSiS5B+VylujEw5QK5lbi6zfDr7P8pCO7r
 dwZYqtXsAbC4lcWwuJf1ArGjNM2dqz7kgpkeBa7H9v5tpyrKiHaKZDBrlWckHGgKJgT/
 4mFZeeEj9DDFw/jQqcduSenKfdwVASIzF9pPR/IyT4Of02Rn4qxhcCYp0Kkgzy0njot4
 h2l2LU/xhAh67Tx0Fy7kG/9QCsWkyjPMQw68EFMvnFHM2DOK1/Lwe0+VEoIrdLacRqtq
 H4fA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1732555656; x=1733160456;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=foD+WWQgDousovYhWqX+94HHmKWj8dqNOG3gkfnKxUE=;
 b=o4/l3cFSvPj0Uo+mxBilnOnxYOtsMCBxEPbZ1FJMw5m3t+msEn2x8ZPJUU1MOt8aYm
 rLOM+riBKt1WJ8bsdIZWKDA4h19oR6kpRkkFKJHw2hMevu7OcEka4D1UBDQgtj2tz1qf
 tN1afW89S00c3YdKUXkA34SATK5bcvNsA0QlK7UuwwzAAetrdWxaVMWOnBIieek7CEw5
 iiTFedubgIdgvl9Yi1Ybj6koM9YBOklKH4PGSL8hdk10MS1mCfhmddc3sQcnFY/CJs0h
 isuoSnhEYmjnBaR88NckcnLXxI4cGpGK36WuFwAMfUq0U9ee1I/f5aloPNZzOifaakK2
 f2jg==
X-Gm-Message-State: AOJu0Yw3UmwJv+cawbaHcySZdwjPBVQODTy4f94RmoPiSuDJFnvB0tU9
 Rsjh4d0YgWeU6+VfdUYVDYdw2IcXCQ8LG0kEw79u4x1UhTda26Z6+Pt2+yBSq48Os17fpKS1XeD
 XAqssZyjXwbR7CzR4H7MiOCILmRg=
X-Gm-Gg: ASbGncuo/23bJ7VYqJGo3TEi9evYw8ziI2WM+B9gQ2tiFGLPyKrUMYvxlKXmJkyM3jb
 ozmeEVClx/q6dPm5GUNT6aIv4ieIMKVgnLhIMCQqvQd3RA0SfhSCQRcTJ3K1AHCoyog==
X-Google-Smtp-Source: AGHT+IEkIRCQFzs95x4FMLOS0MOHJ9ORl2mMdlhEocyFcRIVlYFWsyu1XiHl8qDN3SuQCMgwxiJW2I+ULUh7k6mA9S4=
X-Received: by 2002:a05:6902:c09:b0:e38:b44d:a959 with SMTP id
 3f1490d57ef6-e38f8bfe60fmr12105963276.42.1732555656216; Mon, 25 Nov 2024
 09:27:36 -0800 (PST)
MIME-Version: 1.0
References: <CAJkz86tpBc2SNUveo_SCsRD2RWsP93HZJpqRWo3KXiG0ejtgaQ@HIDDEN>
 <86iksbij3m.fsf@HIDDEN>
In-Reply-To: <86iksbij3m.fsf@HIDDEN>
From: Colton Goates <coltongoates@HIDDEN>
Date: Mon, 25 Nov 2024 10:27:00 -0700
Message-ID: <CAJkz86vppc+XYrcB_3wzX1LNXQkd6OweQWmE7aQ+GL+0DodYPA@HIDDEN>
Subject: Re: bug#74524: 29.4; dirtrack-mode
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000714e710627c00c11"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 74524
X-Mailman-Approved-At: Tue, 26 Nov 2024 03:15:01 -0500
Cc: 74524 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000714e710627c00c11
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Coltons-MacBook-Pro:/Users/coltongoates/software-dev/$ isn't intended to be
a directory name, it's a string that's intended to look exactly like my
prompt. (I know it's pretty contrived.)

So, if someone prints something that resembles their prompt, dirtrack will
change the directory, because dirtrack thinks it just saw the shell prompt
appear, but it really just saw a string that resembles the prompt. Does
that make more sense now?

On Mon, Nov 25, 2024 at 5:38=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wrote:

> > From: Colton Goates <coltongoates@HIDDEN>
> > Date: Sun, 24 Nov 2024 20:55:37 -0700
> >
> > In a shell, running a command like the following causes a problem with
> dirtrack-mode:
> >
> >     echo 'Coltons-MacBook-Pro:/Users/coltongoates/software-dev/$'
> >
> > After running this command, dirtrack thinks I changed to a different
> > directory based on the output, and it sets the default-directory
> > variable to the output of the echo command. Thus, the actual working
> > directory and shell directory are out of sync.
>
> Isn't that because the colon in this (unusual) directory name?  If so,
> you could perhaps customize the regexp in dirtrack-list to solve this?
>

--000000000000714e710627c00c11
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><span style=3D"font-family:monospace">Coltons-MacBook=
-Pro:/Users/coltongoates/software-dev/$</span> isn&#39;t intended to be a d=
irectory name, it&#39;s a string that&#39;s intended to look exactly like m=
y prompt. (I know it&#39;s pretty contrived.)=C2=A0</div><div><br></div><di=
v>So, if someone prints something that resembles their prompt, dirtrack wil=
l change the directory, because dirtrack thinks it just saw the shell promp=
t appear, but it really just saw a string that resembles the prompt. Does t=
hat make more sense now?</div></div><br><div class=3D"gmail_quote"><div dir=
=3D"ltr" class=3D"gmail_attr">On Mon, Nov 25, 2024 at 5:38=E2=80=AFAM Eli Z=
aretskii &lt;<a href=3D"mailto:eliz@HIDDEN">eliz@HIDDEN</a>&gt; wrote:<br=
></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;=
border-left:1px solid rgb(204,204,204);padding-left:1ex">&gt; From: Colton =
Goates &lt;<a href=3D"mailto:coltongoates@HIDDEN" target=3D"_blank">colt=
ongoates@HIDDEN</a>&gt;<br>
&gt; Date: Sun, 24 Nov 2024 20:55:37 -0700<br>
&gt; <br>
&gt; In a shell, running a command like the following causes a problem with=
 dirtrack-mode:<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 =C2=A0echo &#39;Coltons-MacBook-Pro:/Users/coltongoates/s=
oftware-dev/$&#39;<br>
&gt; <br>
&gt; After running this command, dirtrack thinks I changed to a different<b=
r>
&gt; directory based on the output, and it sets the default-directory<br>
&gt; variable to the output of the echo command. Thus, the actual working<b=
r>
&gt; directory and shell directory are out of sync.<br>
<br>
Isn&#39;t that because the colon in this (unusual) directory name?=C2=A0 If=
 so,<br>
you could perhaps customize the regexp in dirtrack-list to solve this?<br>
</blockquote></div>

--000000000000714e710627c00c11--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#74524; Package emacs. Full text available.

Message received at 74524 <at> debbugs.gnu.org:


Received: (at 74524) by debbugs.gnu.org; 25 Nov 2024 19:09:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 25 14:09:53 2024
Received: from localhost ([127.0.0.1]:40747 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tFeT3-0007T5-CJ
	for submit <at> debbugs.gnu.org; Mon, 25 Nov 2024 14:09:53 -0500
Received: from mail-ot1-f53.google.com ([209.85.210.53]:50584)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <shipmints@HIDDEN>) id 1tFeT1-0007Sv-FU
 for 74524 <at> debbugs.gnu.org; Mon, 25 Nov 2024 14:09:52 -0500
Received: by mail-ot1-f53.google.com with SMTP id
 46e09a7af769-71d554dedc6so418138a34.1
 for <74524 <at> debbugs.gnu.org>; Mon, 25 Nov 2024 11:09:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1732561730; x=1733166530; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=nc+EQgyVPb7KfW/bp7TESnIO3XtdLwVOkJUNVw9uIqM=;
 b=dcQx6XnxuD9N29C5WthrxPabsYWe8iqlucTGQkYEx0CdqUZxM0qR+FLNg4KD1ACjbO
 lv89F+i1VOb+NP3EFVBPXXKgdKN4Mm1EzTm28ZZ7/gvdTzCtN/c8NBGbb72++u+CSIYt
 5jJn1JLn5Sp8E0x6o2S7kYYronXMfEBJ2T9Z3bN/I8rUFLmcuD/O3eCVsTGMxB5a+i8K
 lBKeVaMDkZsHiqFFLA9JdCXM3ndb//pRH4mnRD4E24U2rENZf081te8Hi4ffK0Z4tp5b
 qjAZ4WuiN/t6KHkrLmlI+UhEjVIG5dcrnXmSIjv3AiRtOUbDv56WLs1bLfHam2ayJ+ST
 sg6g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1732561730; x=1733166530;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=nc+EQgyVPb7KfW/bp7TESnIO3XtdLwVOkJUNVw9uIqM=;
 b=QEdOIJLK+P114WLprBumTIcWyp6UgMgfveVx2ZTXFs8Ud95GUcuRgtEzS9cw+bLzIf
 MsZo36pELcrWxREZ1AZ8XRdzt8DySQa1lPRG2se5eCQy2BLvTOi2llRnDgluxCYuB14E
 3et+/zBUc19dv9bGQBSbRsKc/RqdUXQ0J0W7fKT7DoVu9WNBnKEXACqUrPzDlwQ5Dr9i
 N9T2ZNXmT9CB0WcsaydclLmvhxEZxffC1PrRpZVejruOxek2bk/iWlb2+KyZISRwXmFJ
 CykXvkWQv44f7jRSXC7BxCv469ASJH3Ihn8tRsDjiNWEMOXsHOa3ouTwwolc7sovwdAP
 6WtQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCWBtCX89DkgbW6woo8CvC1kQjhrOdowDKkUtQ2OrSNo19qFV4mHw+Cd7GTQ0plwDRxFP2Oamg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxOx8TBUQF7WLlyJnv+P4jG4aIl88wzWbMmUZ9zGYrVLNm7IPvx
 e3PhLCEjDb15O6gzrA6lKiTSXroLm9ZDYxN+kpZGnsL9zuNibUpGIZJFlYUpC9lNG4X0uxRLBp8
 3B6wlsk4m1QzJ++7IiMVlwKE2c3Q=
X-Gm-Gg: ASbGncscGbLh/1HO1E5z5Zo0TKsnNLy8MN8z1b2oZ2qx9ngqZLvU95Jo3b5Om7uHxoZ
 bvOXJJOTg73acFWRTcat9Ir4XmD9+lSI=
X-Google-Smtp-Source: AGHT+IEswzysM9Fthniu04vFfACOYYa0+wxbx4zWfxnN7roAzzmzDgkHf7L1h4p5Ckn2ZfRnrV8nr9j34qRYmSf9iKU=
X-Received: by 2002:a05:6218:260a:b0:1c3:9d1e:842 with SMTP id
 e5c5f4694b2df-1ca797d4f1cmr679410555d.20.1732561730238; Mon, 25 Nov 2024
 11:08:50 -0800 (PST)
MIME-Version: 1.0
References: <CAJkz86tpBc2SNUveo_SCsRD2RWsP93HZJpqRWo3KXiG0ejtgaQ@HIDDEN>
 <86iksbij3m.fsf@HIDDEN>
 <CAJkz86vppc+XYrcB_3wzX1LNXQkd6OweQWmE7aQ+GL+0DodYPA@HIDDEN>
 <867c8ri1o8.fsf@HIDDEN>
In-Reply-To: <867c8ri1o8.fsf@HIDDEN>
From: Ship Mints <shipmints@HIDDEN>
Date: Mon, 25 Nov 2024 14:08:30 -0500
Message-ID: <CAN+1HbqBaMnaZ6jC+Eftedy+OwrYU73gy4zUBgGWE=0U5SkVkg@HIDDEN>
Subject: Re: bug#74524: 29.4; dirtrack-mode
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000007b85330627c17651"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 74524
Cc: Colton Goates <coltongoates@HIDDEN>, 74524 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--0000000000007b85330627c17651
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

If you're using a shell that can support the following ansi osc 7 escape
sequence excerpt I took from my bashrc, just disable dirtrack via
(shell-dirtrack-mode -1).

function myprompt () {
  printf "\e]7;file://%s%s\e\\" "$HOSTNAME" "$PWD"
}

# Do these only if we're in an interactive shell
case $- in
*i*)
# ...snip...
  export PROMPT_COMMAND=3Dmyprompt

On Mon, Nov 25, 2024 at 1:56=E2=80=AFPM Eli Zaretskii <eliz@HIDDEN> wrote:

> > From: Colton Goates <coltongoates@HIDDEN>
> > Date: Mon, 25 Nov 2024 10:27:00 -0700
> > Cc: 74524 <at> debbugs.gnu.org
> >
> > Coltons-MacBook-Pro:/Users/coltongoates/software-dev/$ isn't intended t=
o
> be a directory name, it's a string
> > that's intended to look exactly like my prompt. (I know it's pretty
> contrived.)
> >
> > So, if someone prints something that resembles their prompt, dirtrack
> will change the directory, because
> > dirtrack thinks it just saw the shell prompt appear, but it really just
> saw a string that resembles the prompt.
> > Does that make more sense now?
>
> What do you expect dirtrack to do when you deliberately try to deceive
> it?  AFAIU, dirtrack is a piece of heuristic ad-hocery (as explained
> in its commentary), so it cannot be expected to survive such
> deception.  What kind of changes would you suggest to consider to
> handle the cases such as this one?
>
>
>
>

--0000000000007b85330627c17651
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:monospac=
e">If you&#39;re using a shell that can support the following ansi osc 7 es=
cape sequence excerpt I took from my bashrc, just disable dirtrack=C2=A0via=
 (shell-dirtrack-mode -1).</div><div class=3D"gmail_default" style=3D"font-=
family:monospace"><br></div><div class=3D"gmail_default" style=3D"font-fami=
ly:monospace">function myprompt () {<br>=C2=A0 printf &quot;\e]7;file://%s%=
s\e\\&quot; &quot;$HOSTNAME&quot; &quot;$PWD&quot;<br>}<br><br># Do these o=
nly if we&#39;re in an interactive shell<br>case $- in<br>*i*)<br># ...snip=
...</div><div class=3D"gmail_default" style=3D"font-family:monospace">=C2=
=A0 export PROMPT_COMMAND=3Dmyprompt<br></div></div><br><div class=3D"gmail=
_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, Nov 25, 2024 at 1:56=
=E2=80=AFPM Eli Zaretskii &lt;<a href=3D"mailto:eliz@HIDDEN">eliz@HIDDEN<=
/a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0=
px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">&=
gt; From: Colton Goates &lt;<a href=3D"mailto:coltongoates@HIDDEN" targe=
t=3D"_blank">coltongoates@HIDDEN</a>&gt;<br>
&gt; Date: Mon, 25 Nov 2024 10:27:00 -0700<br>
&gt; Cc: <a href=3D"mailto:74524 <at> debbugs.gnu.org" target=3D"_blank">74524@d=
ebbugs.gnu.org</a><br>
&gt; <br>
&gt; Coltons-MacBook-Pro:/Users/coltongoates/software-dev/$ isn&#39;t inten=
ded to be a directory name, it&#39;s a string<br>
&gt; that&#39;s intended to look exactly like my prompt. (I know it&#39;s p=
retty contrived.) <br>
&gt; <br>
&gt; So, if someone prints something that resembles their prompt, dirtrack =
will change the directory, because<br>
&gt; dirtrack thinks it just saw the shell prompt appear, but it really jus=
t saw a string that resembles the prompt.<br>
&gt; Does that make more sense now?<br>
<br>
What do you expect dirtrack to do when you deliberately try to deceive<br>
it?=C2=A0 AFAIU, dirtrack is a piece of heuristic ad-hocery (as explained<b=
r>
in its commentary), so it cannot be expected to survive such<br>
deception.=C2=A0 What kind of changes would you suggest to consider to<br>
handle the cases such as this one?<br>
<br>
<br>
<br>
</blockquote></div>

--0000000000007b85330627c17651--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#74524; Package emacs. Full text available.

Message received at 74524 <at> debbugs.gnu.org:


Received: (at 74524) by debbugs.gnu.org; 25 Nov 2024 18:55:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 25 13:55:14 2024
Received: from localhost ([127.0.0.1]:40650 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tFeEs-0006sS-Db
	for submit <at> debbugs.gnu.org; Mon, 25 Nov 2024 13:55:14 -0500
Received: from eggs.gnu.org ([209.51.188.92]:47464)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1tFeEp-0006p1-TE
 for 74524 <at> debbugs.gnu.org; Mon, 25 Nov 2024 13:55:12 -0500
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 <eliz@HIDDEN>)
 id 1tFeEk-0002xy-HY; Mon, 25 Nov 2024 13:55:06 -0500
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=Bmz4Xyw8T2lDZvwQ4nQ6vcqnVRjgzyCE+AHemIkqVxQ=; b=BQqsrBkJ7fzn
 6btVd8CJ+PRiEPfH+y7lUL4xglPc4M5TcG3l9HxAFIPSfYEYro+QkK6HuntAESMyXcOfiBpa3nw/h
 eXC82aiWf9jhZJB1mVhvbK7hJAS0x4vwFu8VZZGpR/TDU9mSQFI1M6USJhiRaPkCQR6bt6een82j1
 spln2NufyflWVaokA3t2k1jjhcU9DfhJX0B+cWV4tkRqi+dQqhKPpnuYrn6qBsxpqGLb7bDg+hWNZ
 4bRFkhnjB0ojZ+LQGz5wWIOv+xjiJqtxJ+F1Fuu1OonrYbUGKYHeFlDYGNBogAL6tX/msBrkHkXu0
 1/NKQ4aq/WUGsVsJuv00Mg==;
Date: Mon, 25 Nov 2024 20:55:03 +0200
Message-Id: <867c8ri1o8.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Colton Goates <coltongoates@HIDDEN>
In-Reply-To: <CAJkz86vppc+XYrcB_3wzX1LNXQkd6OweQWmE7aQ+GL+0DodYPA@HIDDEN>
 (message from Colton Goates on Mon, 25 Nov 2024 10:27:00 -0700)
Subject: Re: bug#74524: 29.4; dirtrack-mode
References: <CAJkz86tpBc2SNUveo_SCsRD2RWsP93HZJpqRWo3KXiG0ejtgaQ@HIDDEN>
 <86iksbij3m.fsf@HIDDEN>
 <CAJkz86vppc+XYrcB_3wzX1LNXQkd6OweQWmE7aQ+GL+0DodYPA@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 74524
Cc: 74524 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Colton Goates <coltongoates@HIDDEN>
> Date: Mon, 25 Nov 2024 10:27:00 -0700
> Cc: 74524 <at> debbugs.gnu.org
> 
> Coltons-MacBook-Pro:/Users/coltongoates/software-dev/$ isn't intended to be a directory name, it's a string
> that's intended to look exactly like my prompt. (I know it's pretty contrived.) 
> 
> So, if someone prints something that resembles their prompt, dirtrack will change the directory, because
> dirtrack thinks it just saw the shell prompt appear, but it really just saw a string that resembles the prompt.
> Does that make more sense now?

What do you expect dirtrack to do when you deliberately try to deceive
it?  AFAIU, dirtrack is a piece of heuristic ad-hocery (as explained
in its commentary), so it cannot be expected to survive such
deception.  What kind of changes would you suggest to consider to
handle the cases such as this one?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#74524; Package emacs. Full text available.

Message received at 74524 <at> debbugs.gnu.org:


Received: (at 74524) by debbugs.gnu.org; 25 Nov 2024 12:38:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 25 07:38:57 2024
Received: from localhost ([127.0.0.1]:38251 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tFYMj-0005Xz-3q
	for submit <at> debbugs.gnu.org; Mon, 25 Nov 2024 07:38:57 -0500
Received: from eggs.gnu.org ([209.51.188.92]:42510)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1tFYMg-0005Xl-QV
 for 74524 <at> debbugs.gnu.org; Mon, 25 Nov 2024 07:38:55 -0500
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 <eliz@HIDDEN>)
 id 1tFYMa-0006Kx-NW; Mon, 25 Nov 2024 07:38:49 -0500
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=+FH0yxGjaRwK3eBnDbCL6UscGBN/oeC6IjFLAstVCYE=; b=K5ZRWeShgj61
 7tWU3GGZ2HLDwFHz2vm2ZMXWYFhb/J+07FufAvaXgaMPvADMkpPtq7K4DP5nZbUeRSS/ulRISfZoz
 EEgS6mIYGixiVQXpjaFd2FVq7DeMbVMcU6j8vGZBGZAAveUGhZzSm74BSr1rLaf1pH8lb+7A1hChi
 or07BVSLyGf3iiYxtUUvHsFlVkzSZQ3pRT6LAhRMjhEbiuh+PBplGRpNOLYPYN3S4liWVIdoITShn
 UJbVm6eeHoyxcqL6d3kkH+ggl2qheorO14KI/sNNn7DRLntEs2TPmx7ydtJOPFdPH7/QsSYIMw9EU
 /tyuwGa3XrnYRNtoy/uGDg==;
Date: Mon, 25 Nov 2024 14:38:37 +0200
Message-Id: <86iksbij3m.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Colton Goates <coltongoates@HIDDEN>
In-Reply-To: <CAJkz86tpBc2SNUveo_SCsRD2RWsP93HZJpqRWo3KXiG0ejtgaQ@HIDDEN>
 (message from Colton Goates on Sun, 24 Nov 2024 20:55:37 -0700)
Subject: Re: bug#74524: 29.4; dirtrack-mode
References: <CAJkz86tpBc2SNUveo_SCsRD2RWsP93HZJpqRWo3KXiG0ejtgaQ@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 74524
Cc: 74524 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Colton Goates <coltongoates@HIDDEN>
> Date: Sun, 24 Nov 2024 20:55:37 -0700
> 
> In a shell, running a command like the following causes a problem with dirtrack-mode:
> 
>     echo 'Coltons-MacBook-Pro:/Users/coltongoates/software-dev/$'
> 
> After running this command, dirtrack thinks I changed to a different
> directory based on the output, and it sets the default-directory
> variable to the output of the echo command. Thus, the actual working
> directory and shell directory are out of sync.

Isn't that because the colon in this (unusual) directory name?  If so,
you could perhaps customize the regexp in dirtrack-list to solve this?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#74524; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Nov 2024 08:18:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 25 03:18:41 2024
Received: from localhost ([127.0.0.1]:37748 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tFUIq-00022J-7n
	for submit <at> debbugs.gnu.org; Mon, 25 Nov 2024 03:18:41 -0500
Received: from lists.gnu.org ([209.51.188.17]:41138)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <coltongoates@HIDDEN>) id 1tFQCw-0006FO-Ar
 for submit <at> debbugs.gnu.org; Sun, 24 Nov 2024 22:56:22 -0500
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 <coltongoates@HIDDEN>)
 id 1tFQCw-0007HA-4k
 for bug-gnu-emacs@HIDDEN; Sun, 24 Nov 2024 22:56:18 -0500
Received: from mail-yb1-xb2a.google.com ([2607:f8b0:4864:20::b2a])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <coltongoates@HIDDEN>)
 id 1tFQCt-0001PS-RN
 for bug-gnu-emacs@HIDDEN; Sun, 24 Nov 2024 22:56:17 -0500
Received: by mail-yb1-xb2a.google.com with SMTP id
 3f1490d57ef6-e3889bc7ec6so3724178276.1
 for <bug-gnu-emacs@HIDDEN>; Sun, 24 Nov 2024 19:56:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1732506974; x=1733111774; darn=gnu.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=XHKXYevxsw5pGomR+gx77G1mC1X5ysV27Y3JqCvqz+4=;
 b=PBypr7toIzBba6uI3cbrZPggqh0EVYF4++zd553TOH1EVCA1fCodR0WsuQy96424sG
 9GW9p/0NfcOa4y7v1/5wuE0cno5LiuBBA1ii7EConHIO06yyvbxaRmBhQHR4IN1xxUxQ
 SHYXCSUW7E+/KbG5M/rwqeDCr1srN2tfHzqEOHmjHifE1y1f14aHLaHGJPT6AEPR/e0Z
 r4Ca4/1WvZoDiXExhMSKmoqvC8BzheqgpinbOBoxHEZg0vDgDDm8BPMEBLpqWvvbl65q
 Y93MXZsDI+FSlzn70ny0HyXVxnvVpsMxiWPElUKvXw7dOPHEB9op3aipl6VAL7TRZTtj
 wAVg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1732506974; x=1733111774;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=XHKXYevxsw5pGomR+gx77G1mC1X5ysV27Y3JqCvqz+4=;
 b=AbFvCkJPuiJ7f7MyK9Kkig2zRXOvMYqL5jYohHDLKBxJt+k11Q6+h7othFqFWUckI8
 WFAAzBLM1NDKdCiF62e8DwAVSivo4mUSiqDe3j1xHNxRj83qh/XayFxyAzEKRZsrvzXr
 BOlphvUCQeOec061ZKpqcaBnG2Ntm15T/kSJfn3OG9yRHS+6osZuCc1MDrIxb4jGZzkI
 BisF+TrQrrJAf3LPb9kN9Q3ytQZp9O7d7jzzCRWsPn6tRThiKp06t5QJFHuGMVEokvHH
 RobtWrakRpsZV+sC9GOiXUeXV84wyQBB3xBdXMj/zMmJGm6Xa70wStyKBG44R4euCDib
 X0Ug==
X-Gm-Message-State: AOJu0YyHG7EUDfSNMpqRjtJGSlDcwhbPJ7NpSNQBkD1QVR3cgN/im/Of
 ixG030hLjZhKfJQtCCnaUmE50Ey+5+moIzpRYFcfHVSO7+g5CsMzMy2hqtSoMKlv1NecNghPOB9
 KGs7q7pQ7vYZ3dLvt+xYAQRk+dXR81Nem
X-Gm-Gg: ASbGncuCvsKlOcp97kBQzy+/cQL/oZkCPmcBXRYeH8YhTZMY0N/fJFd8R+6U8INPvFh
 ugNWQL6WJ8k8WA4pRIEFauGYm2RC4mFmMFPisa31nNsJnl19dGUS9WhMpOgQCyw==
X-Google-Smtp-Source: AGHT+IGtKPVoTAq9atgccox9PriwAWz530YiBWZEs0Kdk0+/zoT0gktHW8iKysqit0PcmR/QQ+u71STKdL8PlifFIdI=
X-Received: by 2002:a05:6902:2e84:b0:e2e:4315:5503 with SMTP id
 3f1490d57ef6-e38f8c27a78mr9516173276.51.1732506973854; Sun, 24 Nov 2024
 19:56:13 -0800 (PST)
MIME-Version: 1.0
From: Colton Goates <coltongoates@HIDDEN>
Date: Sun, 24 Nov 2024 20:55:37 -0700
Message-ID: <CAJkz86tpBc2SNUveo_SCsRD2RWsP93HZJpqRWo3KXiG0ejtgaQ@HIDDEN>
Subject: 29.4; dirtrack-mode
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary="000000000000bf65350627b4b670"
Received-SPF: pass client-ip=2607:f8b0:4864:20::b2a;
 envelope-from=coltongoates@HIDDEN; helo=mail-yb1-xb2a.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,
 HTML_MESSAGE=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-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 25 Nov 2024 03:18:39 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

--000000000000bf65350627b4b670
Content-Type: text/plain; charset="UTF-8"

In a shell, running a command like the following causes a problem with
dirtrack-mode:

    echo 'Coltons-MacBook-Pro:/Users/coltongoates/software-dev/$'

After running this command, dirtrack thinks I changed to a different
directory based on the output, and it sets the default-directory
variable to the output of the echo command. Thus, the actual working
directory and shell directory are out of sync.

In GNU Emacs 29.4 (build 1, x86_64-apple-darwin23.4.0) of 2024-10-04
built on Sonoma
System Description:  macOS 15.1.1

Configured using:
'configure --disable-silent-rules
--enable-locallisppath=/usr/local/share/emacs/site-lisp
--infodir=/usr/local/Cellar/emacs/29.4_1/share/info/emacs
--prefix=/usr/local/Cellar/emacs/29.4_1 --with-gnutls --without-x
--with-xml2 --without-dbus --with-modules --without-ns
--without-imagemagick --without-selinux --with-tree-sitter'

Configured features:
ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE PDUMPER SQLITE3
THREADS TREE_SITTER ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Shell

Minor modes in effect:
  dirtrack-debug-mode: t
  dirtrack-mode: t
  comint-fontify-input-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dnd dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg
rfc6068 epg-config gnus-util text-property-search time-date mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils pp
cl-print cl-extra mode-local find-func thingatpt help-fns radix-tree
help-mode tool-bar misearch multi-isearch vc-git diff-mode easy-mmode
vc-dispatcher pcmpl-unix sh-script rx smie treesit cl-seq cl-loaddefs
cl-lib executable dirtrack files-x shell subr-x pcomplete comint
regexp-opt ansi-osc ansi-color ring term/xterm xterm byte-opt gv
bytecomp byte-compile ls-lisp mwheel rmc iso-transl tooltip cconv eldoc
paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode
tabulated-list replace newcomment text-mode lisp-mode prog-mode register
page tab-bar menu-bar rfn-eshadow isearch easymenu timer select mouse
jit-lock font-lock syntax font-core term/tty-colors frame minibuffer
nadvice seq simple cl-generic indonesian philippine cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop
case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote
threads kqueue multi-tty make-network-process emacs)

Memory information:
((conses 16 80404 8799)
(symbols 48 8210 0)
(strings 32 27749 1825)
(string-bytes 1 749593)
(vectors 16 14814)
(vector-slots 8 174891 10453)
(floats 8 40 600)
(intervals 56 668 0)
(buffers 984 17))

--000000000000bf65350627b4b670
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">In a shell, running a command like the following causes a =
problem with dirtrack-mode:<br><br>=C2=A0=C2=A0=C2=A0 echo &#39;Coltons-Mac=
Book-Pro:/Users/coltongoates/software-dev/$&#39;<br><br>After running this =
command, dirtrack thinks I changed to a different<br>directory based on the=
 output, and it sets the default-directory<br>variable to the output of the=
 echo command. Thus, the actual working<br>directory and shell directory ar=
e out of sync.<br><br>In GNU Emacs 29.4 (build 1, x86_64-apple-darwin23.4.0=
) of 2024-10-04<br>built on Sonoma<br>System Description: =C2=A0macOS 15.1.=
1<br><br>Configured using:<br>&#39;configure --disable-silent-rules<br>--en=
able-locallisppath=3D/usr/local/share/emacs/site-lisp<br>--infodir=3D/usr/l=
ocal/Cellar/emacs/29.4_1/share/info/emacs<br>--prefix=3D/usr/local/Cellar/e=
macs/29.4_1 --with-gnutls --without-x<br>--with-xml2 --without-dbus --with-=
modules --without-ns<br>--without-imagemagick --without-selinux --with-tree=
-sitter&#39;<br><br>Configured features:<br>ACL GMP GNUTLS JSON LIBXML2 MOD=
ULES NOTIFY KQUEUE PDUMPER SQLITE3<br>THREADS TREE_SITTER ZLIB<br><br>Impor=
tant settings:<br>=C2=A0 value of $LANG: en_US.UTF-8<br>=C2=A0 locale-codin=
g-system: utf-8-unix<br><br>Major mode: Shell<br><br>Minor modes in effect:=
<br>=C2=A0 dirtrack-debug-mode: t<br>=C2=A0 dirtrack-mode: t<br>=C2=A0 comi=
nt-fontify-input-mode: t<br>=C2=A0 tooltip-mode: t<br>=C2=A0 global-eldoc-m=
ode: t<br>=C2=A0 show-paren-mode: t<br>=C2=A0 electric-indent-mode: t<br>=
=C2=A0 file-name-shadow-mode: t<br>=C2=A0 global-font-lock-mode: t<br>=C2=
=A0 font-lock-mode: t<br>=C2=A0 blink-cursor-mode: t<br>=C2=A0 line-number-=
mode: t<br>=C2=A0 indent-tabs-mode: t<br>=C2=A0 auto-composition-mode: t<br=
>=C2=A0 auto-encryption-mode: t<br>=C2=A0 auto-compression-mode: t<br><br>L=
oad-path shadows:<br>None found.<br><br>Features:<br>(shadow sort mail-extr=
 emacsbug message mailcap yank-media puny dired<br>dnd dired-loaddefs rfc82=
2 mml mml-sec password-cache epa derived epg<br>rfc6068 epg-config gnus-uti=
l text-property-search time-date mm-decode<br>mm-bodies mm-encode mail-pars=
e rfc2231 mailabbrev gmm-utils mailheader<br>sendmail rfc2047 rfc2045 ietf-=
drums mm-util mail-prsvr mail-utils pp<br>cl-print cl-extra mode-local find=
-func thingatpt help-fns radix-tree<br>help-mode tool-bar misearch multi-is=
earch vc-git diff-mode easy-mmode<br>vc-dispatcher pcmpl-unix sh-script rx =
smie treesit cl-seq cl-loaddefs<br>cl-lib executable dirtrack files-x shell=
 subr-x pcomplete comint<br>regexp-opt ansi-osc ansi-color ring term/xterm =
xterm byte-opt gv<br>bytecomp byte-compile ls-lisp mwheel rmc iso-transl to=
oltip cconv eldoc<br>paren electric uniquify ediff-hook vc-hooks lisp-float=
-type elisp-mode<br>tabulated-list replace newcomment text-mode lisp-mode p=
rog-mode register<br>page tab-bar menu-bar rfn-eshadow isearch easymenu tim=
er select mouse<br>jit-lock font-lock syntax font-core term/tty-colors fram=
e minibuffer<br>nadvice seq simple cl-generic indonesian philippine cham ge=
orgian<br>utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean<=
br>japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european<br=
>ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop<b=
r>case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure<br>cl-prel=
oaded button loaddefs theme-loaddefs faces cus-face macroexp<br>files windo=
w text-properties overlay sha1 md5 base64 format env<br>code-pages mule cus=
tom widget keymap hashtable-print-readable backquote<br>threads kqueue mult=
i-tty make-network-process emacs)<br><br>Memory information:<br>((conses 16=
 80404 8799)<br>(symbols 48 8210 0)<br>(strings 32 27749 1825)<br>(string-b=
ytes 1 749593)<br>(vectors 16 14814)<br>(vector-slots 8 174891 10453)<br>(f=
loats 8 40 600)<br>(intervals 56 668 0)<br>(buffers 984 17))</div>

--000000000000bf65350627b4b670--




Acknowledgement sent to Colton Goates <coltongoates@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#74524; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2025 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.