Function: initialize-new-tags-table

initialize-new-tags-table is a byte-compiled function defined in etags.el.gz.

Signature

(initialize-new-tags-table)

Documentation

Initialize the tags table in the current buffer.

Return non-nil if it is a valid tags table, and in that case, also make the tags table state variables buffer-local and set them to nil.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/etags.el.gz
(defun initialize-new-tags-table ()
  "Initialize the tags table in the current buffer.
Return non-nil if it is a valid tags table, and
in that case, also make the tags table state variables
buffer-local and set them to nil."
  (setq-local tags-table-files nil)
  (setq-local tags-completion-table nil)
  (setq-local tags-included-tables nil)
  ;; We used to initialize find-tag-marker-ring and tags-location-ring
  ;; here, to new empty rings.  But that is wrong, because those
  ;; are global.

  ;; Value is t if we have found a valid tags table buffer.
  (run-hook-with-args-until-success 'tags-table-format-functions))