emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error in project-shell?


From: Dmitry Gutov
Subject: Re: Error in project-shell?
Date: Sat, 19 Mar 2022 04:14:23 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

Hi again,

On 16.03.2022 17:15, Juan José García-Ripoll wrote:
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.

Could you describe what happens in more detail? Which wrong name?

And what about other changes? The version you showed differs from the current code in more than just the last line.



reply via email to

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