+2008-04-27 Glenn Morris <rgm@gnu.org>
+
+ * textmodes/reftex-global.el (reftex-isearch-switch-to-next-file):
+ Remove un-needed local `orig-list'. Replace cl `copy-list'.
+
2008-04-27 Carsten Dominik <dominik@science.uva.nl>
* org/org.el (org-html-level-start): Always have id's in HTML
;;; 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)