diff options
| author | Gerd Moellmann | 1999-11-04 20:42:27 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-11-04 20:42:27 +0000 |
| commit | 12de1411b399f3cd4bd2c99c7bdf914e818de652 (patch) | |
| tree | 7ac37d5920e7e799183ce09da303e0e60ea0524f | |
| parent | 98cbb9a3dda5d5ef84ab5c81c49886d8ec274e0c (diff) | |
| download | emacs-12de1411b399f3cd4bd2c99c7bdf914e818de652.tar.gz emacs-12de1411b399f3cd4bd2c99c7bdf914e818de652.zip | |
(previous-matching-history-element)
(next-history-element): Use delete-field instead of erase-field.
| -rw-r--r-- | lisp/simple.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 1fb214cc6c0..6ba3783477b 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -747,7 +747,7 @@ See also `minibuffer-history-case-insensitive-variables'." | |||
| 747 | (setq n (+ n (if (< n 0) 1 -1))))) | 747 | (setq n (+ n (if (< n 0) 1 -1))))) |
| 748 | (setq minibuffer-history-position pos) | 748 | (setq minibuffer-history-position pos) |
| 749 | (goto-char (point-max)) | 749 | (goto-char (point-max)) |
| 750 | (erase-field) | 750 | (delete-field) |
| 751 | (let ((elt (nth (1- pos) history))) | 751 | (let ((elt (nth (1- pos) history))) |
| 752 | (insert (if (eq minibuffer-history-sexp-flag (minibuffer-depth)) | 752 | (insert (if (eq minibuffer-history-sexp-flag (minibuffer-depth)) |
| 753 | (let ((print-level nil)) | 753 | (let ((print-level nil)) |
| @@ -796,7 +796,7 @@ An uppercase letter in REGEXP makes the search case-sensitive." | |||
| 796 | (if (> narg (length (symbol-value minibuffer-history-variable))) | 796 | (if (> narg (length (symbol-value minibuffer-history-variable))) |
| 797 | (error "Beginning of history; no preceding item")) | 797 | (error "Beginning of history; no preceding item")) |
| 798 | (goto-char (point-max)) | 798 | (goto-char (point-max)) |
| 799 | (erase-field) | 799 | (delete-field) |
| 800 | (setq minibuffer-history-position narg) | 800 | (setq minibuffer-history-position narg) |
| 801 | (cond ((= narg -1) | 801 | (cond ((= narg -1) |
| 802 | (setq elt minibuffer-default)) | 802 | (setq elt minibuffer-default)) |