-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shell-pop-default-directory changes buffer default-directory #64
Comments
Sorry to revive the dead thread. @dwrz did you find a fix for this perhaps? |
@prasoon2211 Sorry, I no longer use |
@prasoon2211 I've had this issue too. It seems to be fixable by advising #'shell-pop--cd-to-cwd-eshell to only run in eshell buffers and only auto-cd when necessary. I've also had to work around another, possibly related, bug involving the buffer directory not being detected properly. Taking the directory part of buffer-file-name seems to work much better then default-directory.
config:
|
I found the issue to be problematic when running shell-pop while in an org file with code blocks. If a code block tangles to a relative path, for example I haven't tried @SirVolta's solution yet, but i might just use popper.el instead, which can turn any buffer into a pop-up window, so i'll use that and script together a makeshift pop-up terminal instead. Update: the package multi-term provides a command to create a dedicated pop-up terminal window ( |
When I invoke
shell-pop
, it changes thedefault-directory
of the current buffer toshell-pop-default-directory
.Is it possible to just have
shell-pop-default-directory
apply to the pop up shell, and not to the previously selected buffer?This is with Emacs 26.2 on Linux 5.2.5, x86_64.
Following is my config:
The text was updated successfully, but these errors were encountered: