CVSROOT:        /sources/auctex
Module name:    reftex
Changes by:     Ralf Angeli <angeli>    10/10/16 15:27:13

Index: reftex-cite.el
===================================================================
RCS file: /sources/auctex/reftex/lisp/reftex-cite.el,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -b -r1.55 -r1.56
--- reftex-cite.el      14 Sep 2010 18:04:11 -0000      1.55
+++ reftex-cite.el      16 Oct 2010 15:27:13 -0000      1.56
@@ -364,8 +364,8 @@
         (error "No such file %s" file))
       (message "Scanning thebibliography environment in %s" file)
 
+      (with-current-buffer buf
       (save-excursion
-        (set-buffer buf)
         (save-restriction
           (widen)
           (goto-char (point-min))
@@ -384,10 +384,11 @@
                       (mapcar 'reftex-parse-bibitem
                         (delete ""
                                 (split-string
-                                 (buffer-substring-no-properties start end)
-                                 "[ \t\n\r]*\\\\bibitem[ \t]*\\(\\[[^]]*]\\)*\
-\[ \t]*"))))))
-            (goto-char end)))))
+                                              (buffer-substring-no-properties
+                                               start end)
+                                              "[ \t\n\r]*\\\\bibitem\[ \t]*\
+\\(\\[[^]]*]\\)*\[ \t]*"))))))
+             (goto-char end))))))
     (unless entries
       (error "No bibitems found"))
 

_______________________________________________
auctex-diffs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex-diffs

Reply via email to