🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #832

demacs: fix for tags tables

#832
From: Ralph Finch
Date: Thu, 05 Nov 1992 19:00
32 lines
1684 bytes
Does anybody else have problems with tag tables with demacs?  I
did...here's a routine I modified to fix it.  Seems the 'read'
function in the original wasn't returning quite the right value, so I
avoided it.  Replace tag-table-files in your tags.el file or make sure
this gets loaded after that file.  Warning: this has not been
throughly checked!  It's something I hacked out quickly, and offer
here just in case somebody else has the same problem.



(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
Technical Details
Message-ID: <RFINCH.92Nov5110045@venice.water.ca.gov>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!caldwr.UUCP!rfinch

Show Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!caldwr.UUCP!rfinch
From: rfinch@caldwr.UUCP (Ralph Finch)
Subject: demacs: fix for tags tables
Message-ID: <RFINCH.92Nov5110045@venice.water.ca.gov>
Followup-To: comp.emacs
Sender: gnulists@ai.mit.edu
Organization: Calif. Dept. of Water Resources
Distribution: gnu
Date: Thu, 5 Nov 1992 19:00:45 GMT
Approved: bug-gnu-emacs@prep.ai.mit.edu
Lines: 33