Mercurial > emacs
comparison lisp/comint.el @ 6886:d4010211153e
(comint-replace-by-expanded-history-before-point): Advance point
unconditionally.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Thu, 14 Apr 1994 20:16:54 +0000 |
parents | 9481abcaa7de |
children | 7462c6006494 |
comparison
equal
deleted
inserted
replaced
6885:3c007de39916 | 6886:d4010211153e |
---|---|
922 (pref (if (save-match-data (looking-at "!\\?")) "" "^")) | 922 (pref (if (save-match-data (looking-at "!\\?")) "" "^")) |
923 (pos (save-match-data | 923 (pos (save-match-data |
924 (comint-previous-matching-input-string-position | 924 (comint-previous-matching-input-string-position |
925 (concat pref (regexp-quote exp)) 1)))) | 925 (concat pref (regexp-quote exp)) 1)))) |
926 (if (null pos) | 926 (if (null pos) |
927 (or silent | 927 (progn |
928 (progn (message "Not found") | 928 (goto-char (match-end 0)) |
929 (goto-char (match-end 0)) | 929 (or silent |
930 (ding))) | 930 (progn (message "Not found") |
931 (ding)))) | |
931 (setq comint-input-ring-index pos) | 932 (setq comint-input-ring-index pos) |
932 (replace-match | 933 (replace-match |
933 (comint-args (ring-ref comint-input-ring pos) | 934 (comint-args (ring-ref comint-input-ring pos) |
934 (match-beginning 4) (match-end 4)) | 935 (match-beginning 4) (match-end 4)) |
935 t t) | 936 t t) |