[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: changing comint-input-ring-file-name in process in shell

From: Seb
Subject: Re: changing comint-input-ring-file-name in process in shell
Date: Sat, 07 Nov 2009 15:44:09 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

On Sat, 07 Nov 2009 00:10:28 -0700,
Kevin Rodgers <address@hidden> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]