From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Multiple M-x shells sharing input ring Date: Thu, 04 Sep 2014 22:40:48 +0200 Message-ID: <87bnqvktkf.fsf@web.de> References: <87ppfbkw31.fsf@web.de> <7fba0cb5-c7a9-40ef-9de4-3191a6c52f3a@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1409863287 8677 80.91.229.3 (4 Sep 2014 20:41:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Sep 2014 20:41:27 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 04 22:41:20 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 1XPdqJ-0007E3-OZ for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Sep 2014 22:41:19 +0200 Original-Received: from localhost ([::1]:54074 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPdqJ-0004DS-Cn for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Sep 2014 16:41:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPdq3-0004Bw-0i for help-gnu-emacs@gnu.org; Thu, 04 Sep 2014 16:41:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPdpx-0007tE-Df for help-gnu-emacs@gnu.org; Thu, 04 Sep 2014 16:41:02 -0400 Original-Received: from mout.web.de ([212.227.15.14]:50593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPdpx-0007t9-4a for help-gnu-emacs@gnu.org; Thu, 04 Sep 2014 16:40:57 -0400 Original-Received: from drachen.dragon ([90.186.74.63]) by smtp.web.de (mrweb001) with ESMTPSA (Nemesis) id 0Lp7HY-1Y4DNR0UCq-00er3x; Thu, 04 Sep 2014 22:40:53 +0200 In-Reply-To: <7fba0cb5-c7a9-40ef-9de4-3191a6c52f3a@default> (Drew Adams's message of "Thu, 4 Sep 2014 13:09:42 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-Provags-ID: V03:K0:8sg/0Q0k5+LX7mK9+vltwSYT7+O4CHFKmdrWTkEgg1TWFNNSNRB cumkypMJ2uWg7DRgitN0QEPnnfqaJKhAYAAprjH5DmLUzjD4YMXd94e2Jje3zW+xQh4ccnU K1pmXayUSjnzz3il67Dj9SGz54LNV/R6x2+Y4FoFTaFMvaHefV1icBROUJPkm6gqtdI6fKB I4T0YCP8yAQJPrIpDaAQA== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.15.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:99650 Archived-At: Drew Adams writes: > Too bad that `comint-input-ring' is "permanent local". > Should it be, or is that a bug? The variable is made local in the comint code with `make-local-variable'. Since very different modes are based on comint, making such vars permanently local seems ok in this case. You probably don't want to share an input history between a shell and a scheme buffer. Using a global variable is not a good idea here. > It does not sound to me like `comint-input-ring' fits that description > at all. > > Anyway, presumably you could remove its permanent-local status, by > removing property `permanent-local' from symbol `comint-input-ring'. > > Then you should be able to use `kill-local-variable', to have all > comint buffers share the same variable (value). (Dunno whether that > is what is what Joseph wants.) It's not that easy, since `comint-mode' does a lot of explicit `make-local-variable' calls including for `comint-input-ring'. Michael.