|
From: | Jason Kim |
Subject: | Re: Small shell-mode patch to handle auto-cd (e.g. shells like zsh) |
Date: | Sat, 8 May 2021 10:19:41 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 |
On 5/8/21 9:48 AM, Eli Zaretskii wrote:
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 -0700Sorry, 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?
Sure, I suppose, but why do it? I'm a zsh user and I'm perfectly fine with it as a switch that I can put in my .emacs :-)
and hijacking comint like that can add glitches, and introduce irreproducibility (I automate creation of shells, pasting commands to comint etc..).
Auto injecting commands to what should be a user-input space seems a bit wierd just to support this feature, and may not be optimal, because it is unexpected
I'd be happy to help with this improvement, if that's REALLY what you want but it can add glitches to user's automation of shells, but I don't think its necessary (for now), and I humbly request we punt on it.
Thanks! -Jason
[Prev in Thread] | Current Thread | [Next in Thread] |