Mercurial > emacs
comparison lisp/replace.el @ 47204:539aabdebd62
(multi-occur): Made "ido-aware":
Changed prompt to use C-j instead of RET to end.
Set ido-ignore-item-temp-list to the selected buffers so far, so
they are automatically excluded from the list of choices.
Use add-to-list instead of push.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Mon, 02 Sep 2002 10:41:25 +0000 |
parents | 454f46344502 |
children | fe8ca2be9fde |
comparison
equal
deleted
inserted
replaced
47203:d7ff55da60cd | 47204:539aabdebd62 |
---|---|
671 "Show all lines in buffers BUFS containing a match for REGEXP. | 671 "Show all lines in buffers BUFS containing a match for REGEXP. |
672 This function acts on multiple buffers; otherwise, it is exactly like | 672 This function acts on multiple buffers; otherwise, it is exactly like |
673 `occur'." | 673 `occur'." |
674 (interactive | 674 (interactive |
675 (cons | 675 (cons |
676 (let ((bufs (list (read-buffer "First buffer to search: " | 676 (let* ((bufs (list (read-buffer "First buffer to search: " |
677 (current-buffer) t))) | 677 (current-buffer) t))) |
678 (buf nil)) | 678 (buf nil) |
679 (ido-ignore-item-temp-list bufs)) | |
679 (while (not (string-equal | 680 (while (not (string-equal |
680 (setq buf (read-buffer "Next buffer to search (RET to end): " | 681 (setq buf (read-buffer |
681 nil t)) | 682 (if (eq read-buffer-function 'ido-read-buffer) |
683 "Next buffer to search (C-j to end): " | |
684 "Next buffer to search (RET to end): ") | |
685 nil t)) | |
682 "")) | 686 "")) |
683 (push buf bufs)) | 687 (add-to-list 'bufs buf) |
688 (setq ido-ignore-item-temp-list bufs)) | |
684 (nreverse (mapcar #'get-buffer bufs))) | 689 (nreverse (mapcar #'get-buffer bufs))) |
685 (occur-read-primary-args))) | 690 (occur-read-primary-args))) |
686 (occur-1 regexp nlines bufs)) | 691 (occur-1 regexp nlines bufs)) |
687 | 692 |
688 (defun multi-occur-by-filename-regexp (bufregexp regexp &optional nlines) | 693 (defun multi-occur-by-filename-regexp (bufregexp regexp &optional nlines) |