Mercurial > emacs
changeset 11526:885c533e786e
(isearch-update-ring): Use STRING arg, not isearch-ring.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 24 Apr 1995 15:27:35 +0000 |
parents | 3bd7735bba9b |
children | 7956811d4d9a |
files | lisp/isearch.el |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/isearch.el Mon Apr 24 15:26:19 1995 +0000 +++ b/lisp/isearch.el Mon Apr 24 15:27:35 1995 +0000 @@ -4,7 +4,7 @@ ;; Author: Daniel LaLiberte <liberte@cs.uiuc.edu> -;; |$Date: 1995/04/07 01:23:30 $|$Revision: 1.87 $ +;; |$Date: 1995/04/14 17:59:59 $|$Revision: 1.88 $ ;; This file is part of GNU Emacs. @@ -595,17 +595,17 @@ REGEXP says which ring to use." (if regexp (if (or (null regexp-search-ring) - (not (string= isearch-string (car regexp-search-ring)))) + (not (string= string (car regexp-search-ring)))) (progn (setq regexp-search-ring - (cons isearch-string regexp-search-ring)) + (cons string regexp-search-ring)) (if (> (length regexp-search-ring) regexp-search-ring-max) (setcdr (nthcdr (1- search-ring-max) regexp-search-ring) nil)))) (if (or (null search-ring) - (not (string= isearch-string (car search-ring)))) + (not (string= string (car search-ring)))) (progn - (setq search-ring (cons isearch-string search-ring)) + (setq search-ring (cons string search-ring)) (if (> (length search-ring) search-ring-max) (setcdr (nthcdr (1- search-ring-max) search-ring) nil))))))