Re: Proposed patch - Better choice of default for gtags-visit-rootdir

Shigio YAMAGUCHI <[email protected]>
Newsgroups gmane.comp.gnu.global.bugs
Message-ID <CADJmJYpSNt7czQOAXLV1O3-ipa3TXTPrjebr197ytd9bLQFwQA@mail.gmail.com>
It was reproduced. Sure, it is a bug.
Your fix will be included in the next version of GLOBAL.
Thank you for the report and code!

(reproduce procedure)

[Shell command line]
$ cp /dev/null main.c
$ ls
main.c
$ emacs -f gtags-mode main.c

[Emacs mini buffer]
M-x gtags-visit-rootdir[ENTER]
v
Visit root directory: /tmp/test/[ENTER]
v
/tmp/test/main.c is not directory.      <= MYSTERIOUS ERROR

Regards,
Shigio


2015-09-28 12:59 GMT+09:00 Earl Chew <[email protected]>:

> On 27/9/2015 15:38, Shigio YAMAGUCHI wrote:
>
>> Hello,
>> Sorry but I don't understand what is problem.
>> Would you please tell me a method by example which reproduce
>> the situation of the problem?
>>
>
> The key to reproducing this problem is to start in a new directory tree
> that is lacking GTAGS, GRTAGS and GPATH. The order of operations
> is:
>
> 1) gtags-visit-rootdir to establish the correct root directory
> 2) Then issue gtags in shell to establish database
>
> Suppose I have the source directory tree rooted at .../src, and in
> that directory I also have .../src/test.py.
>
> I visit .../src/test.py. In the text buffer, I now issue
> gtags-visit-rootdir and the minibuffer shows me ".../src/"
> so I accept and press RETURN. It is important to accept
> the minibuffer content by only pressing RETURN, and not typing
> anything else. When I do this, I get the error:
>
> ".../src/test.py is not a directory"
>
> I will send to you directly a series of screen shots showing the above
> sequence, to avoid spamming the mailing list.
>
> Earl
>
>


-- 
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3

_______________________________________________
Bug-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-global
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.