home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ukma!wupost!csus.edu!ucdavis!caldwr!rfinch
- From: rfinch@water.ca.gov (Ralph Finch)
- Newsgroups: comp.emacs
- Subject: demacs: tags table fix
- Message-ID: <RFINCH.92Nov5211057@venice.water.ca.gov>
- Date: 6 Nov 92 05:10:57 GMT
- Sender: root@caldwr.water.ca.gov
- Organization: Calif. Dept. of Water Resources
- Lines: 25
-
- Anybody else have problems with tag files with demacs? The supplied
- detags works fine, but there was a problem in tags.el...replacement
- below for tag-table-files seems to fix it.
-
- (defun tag-table-files ()
- "Return a list of files in the current tag table.
- File names returned are absolute."
- (save-excursion
- (visit-tags-table-buffer)
- (or tag-table-files
- (let (files)
- (goto-char (point-min))
- (while (re-search-forward "\n\\([^,]+\\),[0-9]+$" nil t)
- (setq files (cons (expand-file-name
- (buffer-substring (match-beginning 1) (match-end 1))
- (file-name-directory tags-file-name))
- files))
- (goto-char (match-end 0))
- )
- (setq tag-table-files (nreverse files))))))
-
- --
- Ralph Finch 916-653-8268
- rfinch@water.ca.gov ...ucbvax!ucdavis!caldwr!rfinch
- Any opinions expressed are my own; they do not represent the DWR
-