comparison lisp/isearch.el @ 17139:37acf21ce6f6

(isearch-yank): Handle case when CHUNK is `x-sel'.
author Karl Heuer <kwzh@gnu.org>
date Sat, 08 Mar 1997 19:08:39 +0000
parents 8d4650e49e36
children b63c3782cb4c
comparison
equal deleted inserted replaced
17138:b29d903ca993 17139:37acf21ce6f6
889 (isearch-update)) 889 (isearch-update))
890 890
891 891
892 (defun isearch-yank (chunk) 892 (defun isearch-yank (chunk)
893 ;; Helper for isearch-yank-word and isearch-yank-line 893 ;; Helper for isearch-yank-word and isearch-yank-line
894 ;; CHUNK should be word, line or kill. 894 ;; CHUNK should be word, line, kill, or x-sel.
895 (let ((string (cond 895 (let ((string (cond
896 ((eq chunk 'kill) 896 ((eq chunk 'kill)
897 (current-kill 0)) 897 (current-kill 0))
898 ((eq chunk 'x-sel)
899 (x-get-selection))
898 (t 900 (t
899 (save-excursion 901 (save-excursion
900 (and (not isearch-forward) isearch-other-end 902 (and (not isearch-forward) isearch-other-end
901 (goto-char isearch-other-end)) 903 (goto-char isearch-other-end))
902 (buffer-substring 904 (buffer-substring