From: The Quiet Center <thequietcenter@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: shell-current-directory - other window command needed
Date: Wed, 28 Oct 2009 08:34:46 -0700 (PDT) [thread overview]
Message-ID: <b07bac18-0c46-4d3b-b3c0-9f2b649279b4@m20g2000vbp.googlegroups.com> (raw)
Hello,
shell-current-directory is an emacs package which allows one to create
a shell whose starting directory is the same as the buffer the command
'shell-current-directory' was invoked in.
The code for the command is here:
http://github.com/metaperl/emacs/blob/master/shell-current-directory.el#L92
What I would like to have is a command 'shell-current-directory-other-
window' which does the same thing, but opens the shell in the other-
window --- the window you would be in if you typed C-x o in the
current window.
I suppose one way to do it is to:
1 - save the current buffer (name?) as orig-buffer
2 - invoke shell-current-directory
3 - save the shell-buffer (name?) as new-shell-buffer
4 - switch-to-buffer orig-buffer
5 - other-window
6 - switch-to-buffer new-shell-buffer
But I am not quite adept enough at elisp to do this :)
next reply other threads:[~2009-10-28 15:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-28 15:34 The Quiet Center [this message]
2009-10-28 16:14 ` shell-current-directory - other window command needed Andreas Politz
2009-10-28 19:02 ` Peter Dyballa
[not found] ` <mailman.9631.1256746814.2239.help-gnu-emacs@gnu.org>
2009-10-28 19:11 ` The Quiet Center
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b07bac18-0c46-4d3b-b3c0-9f2b649279b4@m20g2000vbp.googlegroups.com \
--to=thequietcenter@gmail.com \
--cc=help-gnu-emacs@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.