Mercurial > emacs
changeset 94415:8173b23112ae
(reftex-isearch-switch-to-next-file): Remove un-needed local `orig-list'.
Replace cl `copy-list'.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sun, 27 Apr 2008 18:42:45 +0000 |
parents | d86cb59eea9f |
children | bfff356815e9 |
files | lisp/textmodes/reftex-global.el |
diffstat | 1 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/textmodes/reftex-global.el Sun Apr 27 18:33:39 2008 +0000 +++ b/lisp/textmodes/reftex-global.el Sun Apr 27 18:42:45 2008 +0000 @@ -406,21 +406,19 @@ ;;; beginning/end of the file list, depending of the search direction. (defun reftex-isearch-switch-to-next-file (crt-buf &optional wrapp) (reftex-access-scan-info) - (let* ((cb (buffer-file-name crt-buf)) - (flist (reftex-all-document-files)) - (orig-flist flist)) + (let ((cb (buffer-file-name crt-buf)) + (flist (reftex-all-document-files))) (when flist (if wrapp (unless isearch-forward (setq flist (last flist))) (unless isearch-forward - (setq flist (nreverse (copy-list flist))) - (setq orig-flist flist)) + (setq flist (reverse flist))) (while (not (string= (car flist) cb)) (setq flist (cdr flist))) (setq flist (cdr flist))) (when flist - (find-file (car flist)))))) + (find-file (car flist)))))) ;;;###autoload (defun reftex-isearch-minor-mode (&optional arg)