bug-global
[Top][All Lists]
Advanced

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

gtags.el and ido.el


From: Thorsten Bonow
Subject: gtags.el and ido.el
Date: Fri, 11 Jun 2004 15:43:57 +0200 (CEST)

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.

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.

Thanks.

Toto

PS: I haven't subscribed to the GNU Global mailing list, so please send responds
    to me, too.

-- 
Contact information and PGP key at
http://www-users.rwth-aachen.de/thorsten.bonow

I'd often felt that a man without a woman was like a neck without a
pain.

Friedman, Kinky (1993), Greenwich Killing Time. New York (Wings
Books), 24





reply via email to

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