help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: always local shell?


From: Thibaut Verron
Subject: Re: always local shell?
Date: Sun, 24 Apr 2022 19:21:34 +0200

Isn't that essentially the same thing as

(with-current-buffer "*Messages*"
   (shell))
?

I think something like

(let (default-directory user-emacs-directory)
  (shell))

should also work.

Le dim. 24 avr. 2022 à 18:55, Emanuel Berg via Users list for the GNU Emacs
text editor <help-gnu-emacs@gnu.org> a écrit :

> > stay tuned for the O(1) solution ...
>
> (defun shell-local-2 ()
>   (interactive)
>   (let ((buf (get-buffer "*Messages*")))
>     (when (bufferp buf)
>       (set-buffer buf)
>       (shell) )))
> (defalias 'sh #'shell-local-2)
>
> ?
>
> PS. Why don't you stop delaying my messages?
>
> --
> underground experts united
> https://dataswamp.org/~incal
>
>
>


reply via email to

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