From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Small shell-mode patch to handle auto-cd (e.g. shells like zsh) Date: Sat, 08 May 2021 19:48:46 +0300 Message-ID: <831rah9no1.fsf@gnu.org> References: <83v97we0ey.fsf@gnu.org> <83v97tag0r.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26152"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jason.kim@revtera.com, michael.albinus@gmx.de, shivers@cs.cmu.edu, emacs-devel@gnu.org To: Jason Kim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 08 18:49:24 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lfQ8q-0006g6-2k for ged-emacs-devel@m.gmane-mx.org; Sat, 08 May 2021 18:49:24 +0200 Original-Received: from localhost ([::1]:60148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfQ8p-0000qY-1w for ged-emacs-devel@m.gmane-mx.org; Sat, 08 May 2021 12:49:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38870) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfQ8G-0000B6-Tc for emacs-devel@gnu.org; Sat, 08 May 2021 12:48:48 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40158) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfQ8F-0007gh-FF; Sat, 08 May 2021 12:48:47 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1301 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfQ8E-0003pB-EE; Sat, 08 May 2021 12:48:47 -0400 In-Reply-To: (message from Jason Kim on Sat, 8 May 2021 09:39:48 -0700) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:269056 Archived-At: > Cc: michael.albinus@gmx.de, emacs-devel@gnu.org, shivers@cs.cmu.edu, > jason.kim@revtera.com > From: Jason Kim > 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?