help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: helpex.el 0.2 --- useful extensions for the C-h prefix


From: Stefan Monnier
Subject: Re: helpex.el 0.2 --- useful extensions for the C-h prefix
Date: Tue, 20 Jan 2004 17:16:28 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> (defun helpex-find-library (library)

Emacs-CVS has `find-library' which does the same (with completion and all).

> (defun helpex-locate-library (library)
>   "Show the precise file name of Emacs library LIBRARY.
> This command uses `locate-library', so see there for more
> information.  The only difference is that it uses completion when
> called interactively."

In Emacs-CVS, locate-library does completion as well.

I think (fboundp 'locate-file-completion) is a good way to tell whether to
use your own code or the built-in one (I think the built-in's completion is
slightly better because it is more complete (e.g. works when the user has
entered /foo/bar/baz<TAB>) and it is "on-the-fly" (i.e. it only searches the
file-system when you press TAB rather than when you call locate-library)).


        Stefan


reply via email to

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