Function: bib-etags-find-noselect
bib-etags-find-noselect is a byte-compiled function defined in
bib-cite.el.
Signature
(bib-etags-find-noselect TAG &optional MASTERDIR)
Documentation
Returns a buffer with point on TAG.
Buffer is not selected. Makes sure TAGS file exists, etc.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/bib-cite.el
(defun bib-etags-find-noselect (tag &optional masterdir)
"Returns a buffer with point on TAG.
Buffer is not selected.
Makes sure TAGS file exists, etc."
(require 'etags)
(let* ((master (or masterdir (bib-master-directory)))
(the-buffer (current-buffer))
(new-buffer)
(the-tags-file-name (expand-file-name bib-etags-filename master)))
(or (file-exists-p the-tags-file-name) ;make sure TAGS exists
(bib-etags master))
(or (equal the-tags-file-name tags-file-name) ;make sure it's current
(visit-tags-table the-tags-file-name))
;; find-tag-noselect should set the TAGS file for the new buffer
;; that's what C-h f visit-tags-table says...
(setq new-buffer (find-tag-noselect tag nil t))
; -> Seems to set buffer to TAGS
(set-buffer the-buffer)
new-buffer))