diff options
| author | Roland McGrath | 1994-10-14 03:26:31 +0000 |
|---|---|---|
| committer | Roland McGrath | 1994-10-14 03:26:31 +0000 |
| commit | c6987f0b9018e7ab5f3483ad33885999e82c4e43 (patch) | |
| tree | 7d752fe3ef48d74fab6004e01df1d9db8c13f2bf | |
| parent | 0a7f697a8d20b2c72b89975882680565a308345a (diff) | |
| download | emacs-c6987f0b9018e7ab5f3483ad33885999e82c4e43.tar.gz emacs-c6987f0b9018e7ab5f3483ad33885999e82c4e43.zip | |
(tags-reset-tags-tables): New function.
| -rw-r--r-- | lisp/progmodes/etags.el | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el index 3f25c09a9e1..7e63bb176b4 100644 --- a/lisp/progmodes/etags.el +++ b/lisp/progmodes/etags.el | |||
| @@ -562,6 +562,19 @@ Returns t if it visits a tags table, or nil if there are no more in the list." | |||
| 562 | (if (eq local-tags-file-name tags-file-name) | 562 | (if (eq local-tags-file-name tags-file-name) |
| 563 | (setq tags-file-name nil)) | 563 | (setq tags-file-name nil)) |
| 564 | (error "File %s is not a valid tags table" local-tags-file-name))))) | 564 | (error "File %s is not a valid tags table" local-tags-file-name))))) |
| 565 | |||
| 566 | (defun tags-reset-tags-tables () | ||
| 567 | "Reset tags state to cancel effect of any previous \\[visit-tags-table] | ||
| 568 | or \\[find-tag]." | ||
| 569 | (interactive) | ||
| 570 | (setq tags-file-name nil | ||
| 571 | tags-location-stack nil | ||
| 572 | tags-table-list nil | ||
| 573 | tags-table-computed-list nil | ||
| 574 | tags-table-computed-list-for nil | ||
| 575 | tags-table-list-pointer nil | ||
| 576 | tags-table-list-started-at nil | ||
| 577 | tags-table-set-list nil)) | ||
| 565 | 578 | ||
| 566 | (defun file-of-tag () | 579 | (defun file-of-tag () |
| 567 | "Return the file name of the file whose tags point is within. | 580 | "Return the file name of the file whose tags point is within. |