bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#74524: 29.4; dirtrack-mode


From: Eli Zaretskii
Subject: bug#74524: 29.4; dirtrack-mode
Date: Mon, 25 Nov 2024 20:55:03 +0200

> From: Colton Goates <coltongoates@gmail.com>
> Date: Mon, 25 Nov 2024 10:27:00 -0700
> Cc: 74524@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?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]