[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gtags.el and ido.el
From: |
Shigio Yamaguchi |
Subject: |
Re: gtags.el and ido.el |
Date: |
Sat, 12 Jun 2004 09:07:06 +0900 |
Hi,
> I'm using "ido.el", which is included in the upcoming version of GNU Emacs now
> in CVS together with "gtags.el", but then I can't use the
> "gtags-visit-rootdir"
> function, because "ido.el" changes "read-file-name" so that in a file
> dialogue a
> file in a directory is *always* selected and "gtags-visit-rootdir" returns
> with
> an error, because it needs a directory, not a file.
Why the 'read-file-name' of ido.el cannot read directory name
though the original can do it?
> This is hardly a bug in gtags.el, but since there is a "read-directory-name"
> function defined in GNU and XEmacs and "gtags-visit-rootdir" really asks for a
> directory, not a file, I think maybe this should be changed in "gtags.el". All
> works well when I tested it.
> I only had to change line 213 from
>
> (setq input (read-file-name "Visit root directory: "
>
> to
>
> (setq input (read-directory-name "Visit root directory: "
>
> to make it play together with "ido.el". The function could be simplified,
> because checking if the argument really is a directory then is not necessary
> any
> more.
To our regret, all doesn't work when I tested the followings:
GNU Emacs 20.4.1(FreeBSD 4.3)
GNU Emacs 21.2.1(RedHat GNU/Linux 9.0)
Rewriting gtags.el using new procedure 'read-direcotry-name' makes a lot of
users unhappy. Isn't there something good solution?
Anywary, thank you for your report!
--
Shigio Yamaguchi <address@hidden> - Tama Communications Corporation
PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3