From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.devel Subject: Re: M-x shell question Date: Wed, 17 Aug 2016 15:12:55 -0400 Message-ID: References: Reply-To: rswgnu@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113d173872b61b053a4942cd X-Trace: blaine.gmane.org 1471461245 21352 195.159.176.226 (17 Aug 2016 19:14:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Aug 2016 19:14:05 +0000 (UTC) Cc: emacs-devel To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 17 21:14:01 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ba6Hp-0005IU-4Z for ged-emacs-devel@m.gmane.org; Wed, 17 Aug 2016 21:14:01 +0200 Original-Received: from localhost ([::1]:49222 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ba6Hm-0005Q6-84 for ged-emacs-devel@m.gmane.org; Wed, 17 Aug 2016 15:13:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ba6Hc-0005Px-M1 for emacs-devel@gnu.org; Wed, 17 Aug 2016 15:13:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ba6HW-0005CS-JJ for emacs-devel@gnu.org; Wed, 17 Aug 2016 15:13:47 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ba6HW-0005CM-Fj for emacs-devel@gnu.org; Wed, 17 Aug 2016 15:13:42 -0400 Original-Received: from mail-oi0-f48.google.com ([209.85.218.48]:32922) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ba6HG-0000fQ-4J; Wed, 17 Aug 2016 15:13:26 -0400 Original-Received: by mail-oi0-f48.google.com with SMTP id c15so149936524oig.0; Wed, 17 Aug 2016 12:13:26 -0700 (PDT) X-Gm-Message-State: AEkoouv5a7fepC4yxGIH5Uybyad4XB3tIjSeOarhXPlb2EUjNm+j1F5My7ANOMcAXmC3Pf4Xxxwt3CvscnrVMQ== X-Received: by 10.157.11.80 with SMTP id p16mr21512786otd.131.1471461205388; Wed, 17 Aug 2016 12:13:25 -0700 (PDT) Original-Received: by 10.202.170.137 with HTTP; Wed, 17 Aug 2016 12:12:55 -0700 (PDT) In-Reply-To: X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:206638 Archived-At: --001a113d173872b61b053a4942cd Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Aug 17, 2016 at 1:45 PM, Richard Stallman wrote: > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > I'm thinking that M-x shell should cd the subshell > to the current directory of the buffer you're in > when you type M-x shell. I often want to do that. > =E2=80=8BIt does do that when it creates a new shell buffer. Typically, th= at is the only time I want it to do that as I work with buffers in many different directories and then come back to the same shell that I want pointing to the same directory.=E2=80=8B > > Or perhaps C-u M-x shell should do that. > > The current behavior of C-u M-x shell, to use a different buffer name > for the shell buffer, is not very useful; if you want to make multiple > shell buffers, the easiest way is to make each one as *shell* and > rename it. > =E2=80=8BI like being able to quickly create multiple shells without having= to rename them, so I do think this behavior is useful. I think a new command would be appropriate in this case that did both the cd and the jump to the shell buffer, maybe cd-shell. Bob --001a113d173872b61b053a4942cd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Wed, Aug 17, 2= 016 at 1:45 PM, Richard Stallman <= rms@gnu.org> wro= te:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">[[[ To any NSA and FBI agents reading my emai= l: please consider=C2=A0 =C2=A0 ]]]
[[[ whether defending the US Constitution against all enemies,=C2=A0 =C2=A0= =C2=A0]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]<= br>
I'm thinking that M-x shell should cd the subshell
to the current directory of the buffer you're in
when you type M-x shell.=C2=A0 I often want to do that.

=E2=80=8BIt does do that when it creates a new = shell buffer.=C2=A0 Typically, that is the only time I want it to do that a= s I work with buffers in many different directories and then come back to t= he same shell that I want pointing to the same directory.=E2=80=8B
=C2= =A0

Or perhaps C-u M-x shell should do that.

The current behavior of C-u M-x shell, to use a different buffer name
for the shell buffer, is not very useful; if you want to make multiple
shell buffers, the easiest way is to make each one as *shell* and
rename it.

=E2=80=8BI like b= eing able to quickly create multiple shells without having to rename them, = so I do think this behavior is useful.

I think a new command would be appropriate in this c= ase that did both the cd and the jump to the shell buffer, maybe cd-shell.<= /div>

Bob
<= div>
--001a113d173872b61b053a4942cd--