From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Seb Newsgroups: gmane.emacs.help Subject: Re: changing comint-input-ring-file-name in process in shell Date: Sat, 07 Nov 2009 15:44:09 -0600 Organization: Church of Emacs Message-ID: <87vdhm6mdy.fsf@kolob.sebmags.homelinux.org> References: <87my2z88g2.fsf@kolob.sebmags.homelinux.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1257630304 12355 80.91.229.12 (7 Nov 2009 21:45:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Nov 2009 21:45:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 07 22:44:57 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N6t5c-0003wJ-EU for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Nov 2009 22:44:56 +0100 Original-Received: from localhost ([127.0.0.1]:54845 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N6t5b-0003e7-Vl for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Nov 2009 16:44:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N6t5G-0003dq-83 for help-gnu-emacs@gnu.org; Sat, 07 Nov 2009 16:44:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N6t5B-0003d9-Ok for help-gnu-emacs@gnu.org; Sat, 07 Nov 2009 16:44:33 -0500 Original-Received: from [199.232.76.173] (port=42304 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N6t5B-0003d6-GK for help-gnu-emacs@gnu.org; Sat, 07 Nov 2009 16:44:29 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:33206) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N6t5B-0002mD-1n for help-gnu-emacs@gnu.org; Sat, 07 Nov 2009 16:44:29 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1N6t58-0003jd-8L for help-gnu-emacs@gnu.org; Sat, 07 Nov 2009 22:44:26 +0100 Original-Received: from s01060015e975d7fb.wp.shawcable.net ([24.77.73.195]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 07 Nov 2009 22:44:26 +0100 Original-Received: from spluque by s01060015e975d7fb.wp.shawcable.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 07 Nov 2009 22:44:26 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: s01060015e975d7fb.wp.shawcable.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:2MezPR3exDrM02D3DgX2NsxlFrI= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:69596 Archived-At: On Sat, 07 Nov 2009 00:10:28 -0700, Kevin Rodgers wrote: [...] > How about: > (let ((comint-input-ring-file-name "/path/to/local/.bash_history")) > (shell)) Thanks for the explanation Kevin. There is no difference with your suggestion, however. In the resulting shell buffer I see: ,-----[ C-h v comint-input-ring-file-name RET ] | comint-input-ring-file-name's value is "~/.bash_history" | Local in buffer *shell*; global value is nil | | Documentation: | If non-nil, name of the file to read/write input history. | See also `comint-read-input-ring' and `comint-write-input-ring'. | | This variable is buffer-local, and is a good thing to set in mode hooks. | | You can customize this variable. | | [back] `----- and cycling shows that: i.e. "M-n" and "M-p" cycle through ~/bash_history, rather than the value in the `let' statement. This is strange. This is on Emacs 23. -- Seb