Function: reftex-create-tags-file
reftex-create-tags-file is an autoloaded, interactive and
byte-compiled function defined in reftex-global.el.gz.
Signature
(reftex-create-tags-file)
Documentation
Create TAGS file by running etags on the current document.
The TAGS file is also immediately visited with visit-tags-table.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/reftex-global.el.gz
;;;
;;;###autoload
(defun reftex-create-tags-file ()
"Create TAGS file by running `etags' on the current document.
The TAGS file is also immediately visited with `visit-tags-table'."
(interactive)
(reftex-access-scan-info current-prefix-arg)
(let ((master (reftex-TeX-master-file)))
(if (bufferp master)
(user-error "Cannot create TAGS file for non-file buffers")
(let* ((files (reftex-all-document-files))
(cmd (format "%s %s"
etags-program-name
(mapconcat #'shell-quote-argument
files " "))))
(with-current-buffer (reftex-get-file-buffer-force master)
(message "Running etags to create TAGS file...")
(shell-command cmd)
(visit-tags-table "TAGS"))))))