From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Seb Newsgroups: gmane.emacs.help Subject: changing comint-input-ring-file-name in process in shell Date: Fri, 06 Nov 2009 18:50:05 -0600 Organization: Church of Emacs Message-ID: <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 1257555066 22220 80.91.229.12 (7 Nov 2009 00:51:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Nov 2009 00:51:06 +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 01:50:59 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 1N6ZW6-0006wz-IW for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Nov 2009 01:50:58 +0100 Original-Received: from localhost ([127.0.0.1]:54245 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N6ZW6-0000Lr-7Q for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Nov 2009 19:50:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N6ZVj-0000Kf-DQ for help-gnu-emacs@gnu.org; Fri, 06 Nov 2009 19:50:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N6ZVe-0000Fm-TY for help-gnu-emacs@gnu.org; Fri, 06 Nov 2009 19:50:35 -0500 Original-Received: from [199.232.76.173] (port=52632 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N6ZVe-0000Fj-Nx for help-gnu-emacs@gnu.org; Fri, 06 Nov 2009 19:50:30 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:60540) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N6ZVe-0008A5-8E for help-gnu-emacs@gnu.org; Fri, 06 Nov 2009 19:50:30 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1N6ZVc-0006ke-AI for help-gnu-emacs@gnu.org; Sat, 07 Nov 2009 01:50:28 +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 01:50:28 +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 01:50:28 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 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:MWidSb9ecFKpNF1zhM2kxS8HAAw= 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:69566 Archived-At: Hi, A program that runs in shell mode uses a local history file. Therefore, I'd like to set `comint-input-ring-file-name' to that file. I use the program by doing "M-x shell", and then start the program in the shell buffer by typing its name and hitting ENTER. The program's prompt replaces the shell's at this point. I thought that subsequently evaluating the following in the shell buffer would allow me to cycle through the local history file: (setq comint-input-ring-file-name "/path/to/local/.bash_history")) However, cycling with "M-p" or "M-n" cycles the input through the initial `comint-input-ring-file-name' set by the shell buffer, in my case ~/.bash_history since I'm using bash. Doing "C-h v comint-input-ring-file-name" does show the new value ("/path/to/loca/.bash_history"), so I don't understand what is going on. Any help would be appreciated. Cheers, -- Seb