[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

some additional thoughts on NEARNESS SORT option

From: Gautam Thaker
Subject: some additional thoughts on NEARNESS SORT option
Date: Sun, 07 Jun 2015 07:06:18 -0400
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

Hi Shigio:

I am not sure I updated you that I was able to down load from repo, do the build and test things out a bit. Worked very well. ( I am now waiting for Leo Liu of ggtags-mode in emacs to incorporate this feature in ggtags.el, which he has agreed to do as be also believes that "nearness" sort is a good feature to exploit.

I had one more thought on this.

1) the highest priority is to find definitions in current directory or below this directory. But it seems we can do a little better. How about:

a) highest prio is if the definition appears in the same file as where M-. is being done. b) 2nd highest would be other entries from other files at this directory level.
c) 3rd highest would be any entries in subdirectory/subdirectories(?)
d) start to move up on directory at a time as per rules prev. given for -N option.

2) And here is yet another "wild" idea. suppose you are looking for definition of method "foo()". THe "which-func-mode" can tell you that you are sitting in Class A::method bar(). In this case it seems that first choice would be if there is a Class A::method foo() since that is one most likely is being sought. However, this gets into having to deal w/ which-func-mode to learn more about where the point is. I think 1a) above may get us this indirectly.

Take care and have a good weekend. If possible let me know when a new release (v6.5?) will have this in it.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]