]> git.eshelyaron.com Git - emacs.git/commit
Use buffer-local value of 'comint-input-ring-size'
authorLiu Hui <liuhui1610@gmail.com>
Tue, 16 Jul 2024 10:05:46 +0000 (18:05 +0800)
committerEshel Yaron <me@eshelyaron.com>
Sat, 27 Jul 2024 12:03:11 +0000 (14:03 +0200)
commitf2a866b44949b77f4d3ec72e62d678d1c0af20d5
treeb3b905c0a587103ec6dedbf96a2422176d5d1b7f
parentbaf8cf5835b5ec0f78a7d42edd3f69931a082919
Use buffer-local value of 'comint-input-ring-size'

When 'comint-read-input-ring' was reading history to the ring,
the global value of 'comint-input-ring-size' was used regardless
of the local value, due to the use of a temporary buffer.
This change fixes the problem.
* lisp/comint.el (comint-read-input-ring): Use buffer-local
value of the ring size.  (Bug#72138)

(cherry picked from commit c1436ac64dc3b30af1ee3994ca346b9bb6984228)
lisp/comint.el