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: Jason Kim
Subject: Re: Small shell-mode patch to handle auto-cd (e.g. shells like zsh)
Date: Thu, 27 May 2021 10:09:25 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2

Woops is all I can say.
After reading the CONTRIBUTE more carefully (and trying out git am locally and comparing to existing commit logs, I think I finally get it :-)

Profuse apologies for wasted bandwidth.
Updated :version to 28.1 as requested, and now I believe the commit log is finally up to snuff.

Thanks again!



On 5/25/21 12:38 AM, Michael Albinus wrote:
Jason Kim <jason.kim@revtera.com> writes:

Hi Jason,

 From bbdd6f2665c70e15ccc23f48d664eb6e20df7fa6 Mon Sep 17 00:00:00 2001
From: Jason Kim <jason.kim@revtera.com>
Date: Mon, 24 May 2021 10:04:54 -0700
Subject: [PATCH] Auto-cd support for lisp/shell.el

Added a new defcustom shell-has-auto-cd (default: nil) for
users with shells like zsh that can auto-cd into a directory
without typing in the "cd" command.
If set to true and the command is a directory, then
shell-directory-tracker processes the command (which happens to be a
directory) as if it were prepended with "cd"

FTR, the commit message shall have a ChangeLog style.

+(defcustom shell-has-auto-cd nil
+  "If non-nil, `shell-mode' handles implicit \"cd\" commands.
+Implicit \"cd\" is changing the directory if the command is a directory.
+You can make this variable buffer-local to change it, per shell-mode instance
+Useful for shells like zsh that has this feature."
+  :type 'boolean
+  :group 'shell-directories
+  :version "28")

This should be "28.1".

Thanks!
-Jason

Best regards, Michael.

Attachment: 0001-Auto-cd-support-for-shells-like-zsh.patch
Description: Text Data


reply via email to

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