[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: Kevin Rodgers
Subject: Re: changing comint-input-ring-file-name in process in shell
Date: Wed, 11 Nov 2009 07:47:02 -0700
User-agent: Thunderbird (Macintosh/20090812)

Seb wrote:
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"))

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.

How do you set comint-input-ring-file-name to "~/.bash_history"?

i.e. at the top-level or within shell-mode-hook?

If the latter, the hook will override the let binding.

Kevin Rodgers
Denver, Colorado, USA

reply via email to

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