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

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

Re: Multiple M-x shells sharing input ring


From: Joseph Xu
Subject: Re: Multiple M-x shells sharing input ring
Date: Thu, 4 Sep 2014 08:55:15 -0700

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 <
address@hidden> wrote:

> Read up on 'history' in your shell documentation.
> Different shells handle it differently, and it can be configured in some.
>
>
> > -----Original Message-----
> > From: address@hidden
> > [mailto:address@hidden On
> > Behalf Of Joseph Xu
> > Sent: Thursday, September 04, 2014 1:54 AM
> > To: address@hidden
> > 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 via email to

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