From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joseph Xu Newsgroups: gmane.emacs.help Subject: Re: Multiple M-x shells sharing input ring Date: Thu, 4 Sep 2014 08:55:15 -0700 Message-ID: References: <899d6934d35f4f48b2ac029f0dab069d@fbmailsvr1.familycareinc.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1409846175 12550 80.91.229.3 (4 Sep 2014 15:56:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Sep 2014 15:56:15 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Subhan Michael Tindall Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 04 17:56:10 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XPZOI-00062S-GH for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Sep 2014 17:56:06 +0200 Original-Received: from localhost ([::1]:52098 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPZOH-0003gY-SI for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Sep 2014 11:56:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPZNZ-0003UU-JL for help-gnu-emacs@gnu.org; Thu, 04 Sep 2014 11:55:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPZNU-0008Kb-8W for help-gnu-emacs@gnu.org; Thu, 04 Sep 2014 11:55:21 -0400 Original-Received: from mail-oi0-x229.google.com ([2607:f8b0:4003:c06::229]:35930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPZNU-0008KX-20 for help-gnu-emacs@gnu.org; Thu, 04 Sep 2014 11:55:16 -0400 Original-Received: by mail-oi0-f41.google.com with SMTP id u20so6817474oif.14 for ; Thu, 04 Sep 2014 08:55:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=KqFm/CsWPewY6n6eFFKtw7Tto6CKh7wZNcOKhnUUmGs=; b=1GCvy0mg/inS6C4CCTS54yZEb4TalIPmf8A2KqUcavNOq/6YUsFByAkdtifgcyz1Wk ar0HjrlyNWnc7iwa3Skj2nJAS09nNeCp0EaC1XSZLjbto6U/UH1BswkfUxlO5zfLtdbL O7kEyQtCHnNCSgdoCZ8Piledo4B5MpE48H5w1HxIPaYEYCw87YQsdR8Hqf7UYR1IuJIU DysUHOrjf+DLoiS0j05lc52KDaWKetMwnU5HP23dUdDBN1A5ufKZqtiQFq4R2qdFVvdd 07EXhOh72S0roPUOpRUFcAEXsZI21fvtSHJg5P4iP0ppf7HUuGtq3NH6zunT0yXcRvCv L7Dw== X-Received: by 10.182.94.204 with SMTP id de12mr6397330obb.66.1409846115243; Thu, 04 Sep 2014 08:55:15 -0700 (PDT) Original-Received: by 10.182.92.137 with HTTP; Thu, 4 Sep 2014 08:55:15 -0700 (PDT) In-Reply-To: <899d6934d35f4f48b2ac029f0dab069d@fbmailsvr1.familycareinc.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c06::229 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99637 Archived-At: 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. >