comparison lisp/simple.el @ 11961:b5efbe330c86

(previous-matching-history-element): No longer remove empty string from history. Better error message if history is empty.
author Karl Heuer <kwzh@gnu.org>
date Sat, 27 May 1995 00:40:31 +0000
parents 09d49f6e0af9
children dd80dd6aa77f
comparison
equal deleted inserted replaced
11960:5d3f2639cf3a 11961:b5efbe330c86
561 minibuffer-local-map 561 minibuffer-local-map
562 nil 562 nil
563 'minibuffer-history-search-history))) 563 'minibuffer-history-search-history)))
564 ;; Use the last regexp specified, by default, if input is empty. 564 ;; Use the last regexp specified, by default, if input is empty.
565 (list (if (string= regexp "") 565 (list (if (string= regexp "")
566 (setcar minibuffer-history-search-history 566 (if minibuffer-history-search-history
567 (nth 1 minibuffer-history-search-history)) 567 (car minibuffer-history-search-history)
568 (error "No previous history search regexp"))
568 regexp) 569 regexp)
569 (prefix-numeric-value current-prefix-arg)))) 570 (prefix-numeric-value current-prefix-arg))))
570 (let ((history (symbol-value minibuffer-history-variable)) 571 (let ((history (symbol-value minibuffer-history-variable))
571 prevpos 572 prevpos
572 (pos minibuffer-history-position)) 573 (pos minibuffer-history-position))