X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/b35f288d478ef137a4d9e8e5a6a5f368a86b01f5..7031be6d49cb78d4cc4a2604b899144824abfeca:/lisp/textmodes/reftex-dcr.el diff --git a/lisp/textmodes/reftex-dcr.el b/lisp/textmodes/reftex-dcr.el index b01424cbc8..68202440e1 100644 --- a/lisp/textmodes/reftex-dcr.el +++ b/lisp/textmodes/reftex-dcr.el @@ -1,11 +1,11 @@ ;;; reftex-dcr.el --- viewing cross references and citations with RefTeX -;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, -;; 2006, 2007, 2008 Free Software Foundation, Inc. +;; Copyright (C) 1997-2011 Free Software Foundation, Inc. ;; Author: Carsten Dominik ;; Maintainer: auctex-devel@gnu.org ;; Version: 4.31 +;; Package: reftex ;; This file is part of GNU Emacs. @@ -276,8 +276,7 @@ With argument, actually select the window showing the cross reference." (message "ref(%s): %s" (nth 1 entry) (nth 2 entry))) (let ((buf (get-buffer " *Echo Area*"))) (when buf - (save-excursion - (set-buffer buf) + (with-current-buffer buf (run-hooks 'reftex-display-copied-context-hook))))))) (defun reftex-echo-cite (key files item) @@ -313,8 +312,7 @@ With argument, actually select the window showing the cross reference." (unless (or (null string) (equal string "")) (message "cite: %s" string)) (when (setq buf (get-buffer " *Echo Area*")) - (save-excursion - (set-buffer buf) + (with-current-buffer buf (run-hooks 'reftex-display-copied-context-hook))))) (defvar reftex-use-itimer-in-xemacs nil @@ -373,7 +371,7 @@ Calling this function several times find successive citation locations." ;; Establish connection to reference buffer (unless ref-buffer (setq ref-buffer - (save-excursion + (save-current-buffer (completing-read "Reference buffer: " (delq nil @@ -483,5 +481,4 @@ Calling this function several times find successive citation locations." (move-marker reftex-global-search-marker nil) (error "All files processed")))) -;; arch-tag: d2f52b56-744e-44ad-830d-1fc193b90eda ;;; reftex-dcr.el ends here