comparison lisp/progmodes/etags.el @ 32324:581b490bcb94

Maintainer line updated. (tags-table-format-functions): Renamed from tags-table-format-hooks.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 09 Oct 2000 01:58:38 +0000
parents 035ce2227d76
children 5908c0927a3e
comparison
equal deleted inserted replaced
32323:4e67c00e093a 32324:581b490bcb94
1 ;;; etags.el --- etags facility for Emacs 1 ;;; etags.el --- etags facility for Emacs
2 ;; Copyright (C) 1985, 86, 88, 89, 92, 93, 94, 95, 96, 98, 2000 2 ;; Copyright (C) 1985, 86, 88, 89, 92, 93, 94, 95, 96, 98, 2000
3 ;; Free Software Foundation, Inc. 3 ;; Free Software Foundation, Inc.
4 4
5 ;; Author: Roland McGrath <roland@gnu.org> 5 ;; Author: Roland McGrath <roland@gnu.org>
6 ;; Maintainer: FSF
6 ;; Keywords: tools 7 ;; Keywords: tools
7 8
8 ;; This file is part of GNU Emacs. 9 ;; This file is part of GNU Emacs.
9 10
10 ;; GNU Emacs is free software; you can redistribute it and/or modify 11 ;; GNU Emacs is free software; you can redistribute it and/or modify
188 (defvar next-file-list nil 189 (defvar next-file-list nil
189 "List of files for \\[next-file] to process.") 190 "List of files for \\[next-file] to process.")
190 191
191 ;; Hooks for file formats. 192 ;; Hooks for file formats.
192 193
193 (defvar tags-table-format-hooks '(etags-recognize-tags-table 194 (defvar tags-table-format-functions '(etags-recognize-tags-table
194 tags-recognize-empty-tags-table) 195 tags-recognize-empty-tags-table)
195 "Hook to be called in a tags table buffer to identify the type of tags table. 196 "Hook to be called in a tags table buffer to identify the type of tags table.
196 The functions are called in order, with no arguments, 197 The functions are called in order, with no arguments,
197 until one returns non-nil. The function should make buffer-local bindings 198 until one returns non-nil. The function should make buffer-local bindings
198 of the format-parsing tags function variables if successful.") 199 of the format-parsing tags function variables if successful.")
199 200
240 ;; We used to initialize find-tag-marker-ring and tags-location-ring 241 ;; We used to initialize find-tag-marker-ring and tags-location-ring
241 ;; here, to new empty rings. But that is wrong, because those 242 ;; here, to new empty rings. But that is wrong, because those
242 ;; are global. 243 ;; are global.
243 244
244 ;; Value is t if we have found a valid tags table buffer. 245 ;; Value is t if we have found a valid tags table buffer.
245 (run-hook-with-args-until-success 'tags-table-format-hooks)) 246 (run-hook-with-args-until-success 'tags-table-format-functions))
246 247
247 ;;;###autoload 248 ;;;###autoload
248 (defun visit-tags-table (file &optional local) 249 (defun visit-tags-table (file &optional local)
249 "Tell tags commands to use tags table file FILE. 250 "Tell tags commands to use tags table file FILE.
250 FILE should be the name of a file created with the `etags' program. 251 FILE should be the name of a file created with the `etags' program.