From: "Juan José García-Ripoll" <juanjose.garciaripoll@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Error in project-shell?
Date: Wed, 16 Mar 2022 16:15:36 +0100 [thread overview]
Message-ID: <861qz2vsh3.fsf@csic.es> (raw)
In-Reply-To: 7fc361d6-2df4-aa2a-4f02-1ae1e03ebb6a@yandex.ru
I have been doing further tests and I think that the actual definition
should read as follows
(defun project-shell-fix ()
"Fixed version for project-shell"
(interactive)
(require 'comint)
(let* ((default-directory (expand-file-name (project-root (project-current t))))
(default-project-shell-name (project-prefixed-buffer-name "shell"))
(shell-buffer (get-buffer default-project-shell-name)))
(if (comint-check-proc shell-buffer)
(pop-to-buffer shell-buffer (bound-and-true-p display-comint-buffer-action))
(shell (or shell-buffer default-project-shell-name)))))
The change in the last line is needed, because otherwise the shell is
created with the wrong name.
--
Juan José García Ripoll
http://juanjose.garciaripoll.com
http://quinfog.hbar.es
next prev parent reply other threads:[~2022-03-16 15:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-28 14:58 Error in project-shell? Juan José García-Ripoll
2022-03-02 2:30 ` Dmitry Gutov
2022-03-02 7:59 ` Juan José García-Ripoll
2022-03-05 2:34 ` Dmitry Gutov
2022-03-16 15:15 ` Juan José García-Ripoll [this message]
2022-03-19 2:14 ` Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=861qz2vsh3.fsf@csic.es \
--to=juanjose.garciaripoll@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).