I've got helm installed to work with comint mode either in eshell or when running python in an inferior comint process. I'd like to preserve the command line history, especially in the python mode.
(setq savehist-additional-variables '(comint-input-ring))
but that seems to result in the savehist file always containing
(setq comint-input-ring 'nil)
Other fields like search-ring, kill-ring, minibuffer-history save fine. Is there a way to do this?
I know this link answers it for a 'real' shell but it doesn't work in this case.
EDIT As requested, what I've tried is the following, and it describes my use-case
(helm-mode 1) (define-key comint-mode-map (kbd "C-S-l" 'helm-comint-input-ring)
elsewhere in .emacs
(require 'python-mode) ;; Goes to ipython.exe (on windows)
Coding some python, using C-c C-c to send to ipython process.
This now appears if I use C-S-l as a helm-comint-input-ring and I can search on it.
I'd like to preserve these commands as I tend to repeat them across sessions (but with enough variability to not script it away completely).
I agree there could be both eshell, python , other comint buffers running, I suppose you are saying that ipython should preserve the history buffer and I should somehow get savehist to load that? Not sure how.