GNU bug report logs -
#5148
Lossage in comint history
Previous Next
Reported by: Juri Linkov <juri <at> jurta.org>
Date: Mon, 7 Dec 2009 17:40:05 UTC
Severity: normal
Done: Chong Yidong <cyd <at> stupidchicken.com>
Bug is archived. No further changes may be made.
Full log
Message #15 received at 5148 <at> emacsbugs.donarmstrong.com (full text, mbox):
>> The following patch make `comint-input-ring-size' customizable.
>> The type should be `integer' because this value is used by `make-ring'
>> to create the history ring. The default value increased to 500
>> to be the same as the default value of HISTFILESIZE and HISTSIZE.
>
> Actually, to fix the bug right, comint-read-input-ring should be changed
> to grow the ring so as to accomodate all the saved history. This might
> still truncate it more than bash would have, but at least it won't make
> your .bash_history shorter than it was.
Someone still might want to truncate the history to the length defined
by `comint-input-ring-size'. So adding defcustom is useful in any case.
Later we could add more options to `comint-input-ring-size' e.g. `t'
like in `message-log-max'. It's easy to implement this (by reading
all history in `comint-read-input-ring' and using `ring-insert+extend'
while adding new elements) but I don't think this should be the default
because bash users might prefer `comint-input-ring-size' to have the
same value as `HISTFILESIZE'. Maybe we should add another option
for `comint-input-ring-size' to set it to (getenv "HISTFILESIZE")
when it is used by `M-x shell'.
--
Juri Linkov
http://www.jurta.org/emacs/
This bug report was last modified 15 years and 195 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.