aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Leung2021-01-11 16:42:03 +0100
committerLars Ingebrigtsen2021-01-11 16:42:03 +0100
commitd0d5e40a5d90eac440d82fb34e7b470c8d07c004 (patch)
tree78271eca4b8e4f89b619ce94a1bcfb55d45cbc2e /src
parent26ed7c734557043827f02629dbba00031358e64a (diff)
downloademacs-d0d5e40a5d90eac440d82fb34e7b470c8d07c004.tar.gz
emacs-d0d5e40a5d90eac440d82fb34e7b470c8d07c004.zip
Make comint-read-input-ring skip uninteresting text in .zsh_history
* lisp/comint.el (comint-read-input-ring): Simplify (bug#45606). * lisp/shell.el (shell-mode): Add "~/.zsh_history". * lisp/comint.el (comint-read-input-ring): Bind `comint-input-ring-file-prefix' in anticipation of a buffer switch. * lisp/comint.el (comint-read-input-ring): Skip the separator. Because re-search-backward moves point to the beginning of the match, and since we don't want the separator appearing in the output, we skip over it. This is required to properly detect instances of the value that zsh uses for `comint-input-ring-file-prefix'; if the `comint-input-ring-file-prefix' is ':potato', the subsequent invocation `looking-at' sees '\n:potato' for all entries after the one at the very beginning of the history file.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions