all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joseph Xu <josephzxu@gmail.com>
To: Subhan Michael Tindall <SubhanT@familycareinc.org>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: Multiple M-x shells sharing input ring
Date: Thu, 4 Sep 2014 08:55:15 -0700	[thread overview]
Message-ID: <CAGvvAh2ddEuvBdRd4gpaZRWukAiLTYEtJR4AHVcu4GB0UtF6fA@mail.gmail.com> (raw)
In-Reply-To: <899d6934d35f4f48b2ac029f0dab069d@fbmailsvr1.familycareinc.org>

I'm using zsh and it is already configured to share history. However, I
thought the input ring and zsh's own history mechanism are two different
things. Am I wrong?

I noticed that each command I execute in an M-x shell is immediately
written to ~/.history. I assume the only problem is that emacs is only
repopulating the input ring from that file when the M-x shell starts, not
after each command. I wonder if it is possible (and not too slow) to
register a hook to make emacs reload from that file after each command.


On Thu, Sep 4, 2014 at 7:58 AM, Subhan Michael Tindall <
SubhanT@familycareinc.org> wrote:

> Read up on 'history' in your shell documentation.
> Different shells handle it differently, and it can be configured in some.
>
>
> > -----Original Message-----
> > From: help-gnu-emacs-bounces+subhant=familycareinc.org@gnu.org
> > [mailto:help-gnu-emacs-bounces+subhant=familycareinc.org@gnu.org] On
> > Behalf Of Joseph Xu
> > Sent: Thursday, September 04, 2014 1:54 AM
> > To: help-gnu-emacs@gnu.org
> > Subject: Multiple M-x shells sharing input ring
> >
> > Hello,
> >
> > Is there a way to have multiple M-x shell buffers share an input ring?
> For
> > example, if I have two shells running, A and B, and I enter a command
> into A,
> > I would like to be able to find it immediately in the input history of B
> using M-
> > p and M-r.
> >
> > Thanks for your help,
> > Joseph
>
> This message is intended for the sole use of the individual and entity to
> which it is addressed and may contain information that is privileged,
> confidential and exempt from disclosure under applicable law. If you are
> not the intended addressee, nor authorized to receive for the intended
> addressee, you are hereby notified that you may not use, copy, disclose or
> distribute to anyone the message or any information contained in the
> message. If you have received this message in error, please immediately
> advise the sender by reply email and delete the message.  Thank you.
>


  reply	other threads:[~2014-09-04 15:55 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-04  8:54 Multiple M-x shells sharing input ring Joseph Xu
2014-09-04 14:58 ` Subhan Michael Tindall
2014-09-04 15:55   ` Joseph Xu [this message]
2014-09-04 19:46 ` Michael Heerdegen
2014-09-04 20:09   ` Drew Adams
2014-09-04 20:40     ` Michael Heerdegen
2014-09-04 20:58       ` Drew Adams
2014-09-04 21:21         ` Michael Heerdegen
2014-09-04 21:33           ` Drew Adams
2014-09-05  7:33             ` Joseph Xu
     [not found]       ` <mailman.8284.1409864361.1147.help-gnu-emacs@gnu.org>
2014-09-04 21:09         ` Stefan Monnier
2014-09-04 21:20           ` Drew Adams

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=CAGvvAh2ddEuvBdRd4gpaZRWukAiLTYEtJR4AHVcu4GB0UtF6fA@mail.gmail.com \
    --to=josephzxu@gmail.com \
    --cc=SubhanT@familycareinc.org \
    --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.