From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Multiple M-x shells sharing input ring Date: Thu, 04 Sep 2014 17:09:45 -0400 Organization: A noiseless patient Spider Message-ID: References: <87ppfbkw31.fsf@web.de> <7fba0cb5-c7a9-40ef-9de4-3191a6c52f3a@default> <87bnqvktkf.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1409865031 30505 80.91.229.3 (4 Sep 2014 21:10:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Sep 2014 21:10:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 04 23:10:25 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 1XPeIS-0001bV-Ob for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Sep 2014 23:10:24 +0200 Original-Received: from localhost ([::1]:54164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPeIR-0001O7-TE for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Sep 2014 17:10:23 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Injection-Info: mx05.eternal-september.org; posting-host="80f6b1c01f068ad28ca734314fbfaa28"; logging-data="27565"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xwMrpfjtrT9scY10V8lwm" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:J5ZX1Pr4GEEgj3deMf0CpEipOd4= sha1:wG2cjOGbSeBQJSPagaSWPO8BpDU= Original-Xref: usenet.stanford.edu gnu.emacs.help:207381 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:99654 Archived-At: > I don't see how anything in that description applies here. Maybe > the description is faulty. Or maybe this variable should not be > permanent-local. But so far, the description does not seem (to me) > to fit the `comint-input-history' case. permanent-local is used to mark variables as pertaining to the content of a buffer rather than to its mode. The effect it has is that the variable won't be reset if you change major mode (i.e. it's not "killed" by kill-local-variables). It's reasonably common in comint buffer to reset the major mode (typically, you kill the process and re-run it which sets up the comint mode again) and you generally want to preserve the input-history, hence the `permanent-local' property. Note also that the `permanent-local' property does not make a variable buffer-local. It just makes it stay local longer, in case it was made local. Stefan