emacs-devel
[Top][All Lists]
Advanced

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

Re: Small shell-mode patch to handle auto-cd (e.g. shells like zsh)


From: Eli Zaretskii
Subject: Re: Small shell-mode patch to handle auto-cd (e.g. shells like zsh)
Date: Sat, 08 May 2021 19:48:46 +0300

> Cc: michael.albinus@gmx.de, emacs-devel@gnu.org, shivers@cs.cmu.edu,
>  jason.kim@revtera.com
> From: Jason Kim <jason.w.kim@icloud.com>
> Date: Sat, 8 May 2021 09:39:48 -0700
> 
> > Sorry, I don't think I understand.  My understanding was that this
> > feature is supported by some shells whose names are known in advance
> > (like zsh), so Emacs could compute the value as appropriate for that
> > shell without asking the user to set it.  If this is not a good idea,
> > can you explain why?
> > 
> 
> Hi, sorry for the confusion -
> auto-cd feature in zsh is optional. It is not on by default, and I don't 
> know of a good way to detect whether a zsh process tied to a shell 
> buffer has that option turned on.

Can't you ask zsh itself, by running some command once, when the mode
is turned on?



reply via email to

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