From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jason Kim Newsgroups: gmane.emacs.devel Subject: Re: Small shell-mode patch to handle auto-cd (e.g. shells like zsh) Date: Sat, 8 May 2021 09:39:48 -0700 Message-ID: References: <83v97we0ey.fsf@gnu.org> <83v97tag0r.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26195"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 Cc: michael.albinus@gmx.de, emacs-devel@gnu.org, shivers@cs.cmu.edu, jason.kim@revtera.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 08 18:40:49 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 1lfQ0W-0006ic-OY for ged-emacs-devel@m.gmane-mx.org; Sat, 08 May 2021 18:40:48 +0200 Original-Received: from localhost ([::1]:54264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfQ0V-0004to-Pn for ged-emacs-devel@m.gmane-mx.org; Sat, 08 May 2021 12:40:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfPze-0003V7-R9 for emacs-devel@gnu.org; Sat, 08 May 2021 12:39:54 -0400 Original-Received: from mr85p00im-zteg06021901.me.com ([17.58.23.194]:34067) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfPzd-0006Ui-C1 for emacs-devel@gnu.org; Sat, 08 May 2021 12:39:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1620491989; bh=CsWfZjfKpV6GlDeD0TW16ERBeFOxFdkCdJ/5dCeuCLU=; h=Subject:To:From:Message-ID:Date:MIME-Version:Content-Type; b=me9EgCgDdlCSM3CQtPc3nGNt/EeEIUD88JiIlqwMCRCnHPJMUyR2UGzcnckHkPpvm OYGIrnjKWuy9VUJHLI7DXbqtT4OzaS1wMXKYzBm6GSkFBzBYJ1AzyTVNKsIkMHcc0A NMo45c03UqeXS0Kw/VlWr2ASsd31zaVlkVQzcR1gUd3A4RIESReqlHv6WxGBd76FCJ 4dzSXuro4MpPuqqJSOknKbR7gZcxWJmsfeNfNUjF/jgHV1ZJt7qBQIa80xc+PqaJA8 g6J0X1TUXSIVWsGzqAcbIH5R8emP+oTNwVq7Qb12cQf63lPA055Oprx6h7kDvVFRb7 5zIfWky8LaftA== Original-Received: from [10.26.18.5] (unknown [143.244.48.87]) by mr85p00im-zteg06021901.me.com (Postfix) with ESMTPSA id 6F7CF7205CA; Sat, 8 May 2021 16:39:49 +0000 (UTC) In-Reply-To: <83v97tag0r.fsf@gnu.org> Content-Language: en-US X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.391,18.0.761,17.0.607.475.0000000_definitions?= =?UTF-8?Q?=3D2021-05-08=5F07:2021-05-06=5F01,2021-05-08=5F07,2020-04-07?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1015 spamscore=0 suspectscore=0 mlxlogscore=999 mlxscore=0 bulkscore=0 phishscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2105080131 Received-SPF: pass client-ip=17.58.23.194; envelope-from=jason.w.kim@icloud.com; helo=mr85p00im-zteg06021901.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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:269055 Archived-At: On 5/7/21 11:36 PM, Eli Zaretskii wrote: >> Cc: emacs-devel@gnu.org, shivers@cs.cmu.edu, jason.kim@revtera.com >> From: Jason Kim >> Date: Fri, 7 May 2021 09:35:16 -0700 >> >>> Should this variable's value be computed automatically based on the >>> shell's name? >> >> I don't think so... If only because its an option that needs enabling in >> zsh as well? > > 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. I think having this as a switch that individual users can set is probably the simplest way to handle this. AFAIK other common shells (bash, csh) doesn't yet have this feature either. In other words, it's the user's choice to use zsh, and the user's choice whether to turn that feature on. I do cd's all the time (prolly same for most folks), and I hate repeatedly typing a command to do it, so it's a neat feature in zsh that would be nice to support within emacs shell mode. Thanks for reading. I hope I made it clear. Thank you! -Jason > Thanks. >