[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC] path name in [GTAGS SELECT MODE]
From: |
Shigio YAMAGUCHI |
Subject: |
[RFC] path name in [GTAGS SELECT MODE] |
Date: |
Tue, 07 Nov 2006 19:18:25 +0900 |
Hello all,
This is a RFC about gtags.el (gtags mode).
1. Problem
Though I thought that path names in [GTAGS SELECT MODE] should be relative
to shorten the names, it seems not to be necessarily preferably.
For instance, there is a possiblity that the following displays happen.
(GTAGS in /usr/src)
o absolute path name
+----------------------------------------------------------------------
|funca 122 /usr/src/long1/long/long/long/long/file1.c funca() {
|funcb 133 /usr/src/long2/long/long/long/long/file2.c funcb() {
|
-----------------------------------------------------------------------
[GTAGS SELECT MODE]
o relative path name
+----------------------------------------------------------------------
|funca 122 ../../../../../long1/long/long/long/long/file1.c funca()
{
|funcb 133 ../../../../../long2/long/long/long/long/file2.c funcb()
{
|
-----------------------------------------------------------------------
[GTAGS SELECT MODE]
Understanding from this example, you cannot say that a relative path name is
always shorter than an absolute path name.
In addition, displays are different according to the place where you begin
retrieval.
This might confuse the users.
2. Suggestion
How about the relative path name from the root directory of project?
For instance, if 'gtags-visit-rootdir /usr/src' is invoked, we can see
the following displays:
(GTAGS in /usr/src)
o relative path name from the root directory of project (=/usr/src)
+----------------------------------------------------------------------
|funca 122 long1/long/long/long/long/file1.c funca() {
|funcb 133 long2/long/long/long/long/file2.c funcb() {
|
-----------------------------------------------------------------------
[GTAGS SELECT MODE]
The reason to require 'gtags-visit-rootdir' is that there might be two or more
GTAGS.
I think this is simple and desireble.
Therefore my suggestion is:
o By default, gtags.el print absolute path name in [GTAGS SELECT MODE],
o If you invoke 'gtags-visit-rootdir <project directory>', gtags.el print
relative path name from the project directory.
What do you think?
--
Shigio YAMAGUCHI <address@hidden> - Tama Communications Corporation
PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [RFC] path name in [GTAGS SELECT MODE],
Shigio YAMAGUCHI <=