Emacs automatically visit tag table

Is there a way to configure emacs so that whenever I open a file under a certain path it will automatically search (and in case load) a TAGS file in a part of the path? So for instance when opening

/usr/src/foo/baz/bar.c.It will load

/usr/src/foo/TAGS file?

Answers


I'd suggest you going through this wiki. There is a good example of doing the same with etags (Auto refresh of the tags file) (which I won't post here), but hopefully it's no so hard to make it work for ctags.


Check out this package http://www.emacswiki.org/emacs/EtagsTable It's available on MELPA and does exactly what you want.


http://blog.binchen.org/posts/how-to-use-ctags-in-emacs-effectively-3.html

The point is in this case, a little bit elisp code is more versatile, I've been using this solution for two years.


Need Your Help

mysql_real_escape_string in php, where to use it?

php mysql

I just learned about the importance of mysql_real_escape_string to avoid MySQL injections. So i used this in my registration form in php. This is what i got,

Fastest way to convert a possibly-null-terminated ascii byte[] to a string?

c# .net string ascii

I need to convert a (possibly) null terminated array of ascii bytes to a string in C# and the fastest way I've found to do it is by using my UnsafeAsciiBytesToString method shown below. This method...