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

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

executable-find vs. locate-library


From: Kevin Rodgers
Subject: executable-find vs. locate-library
Date: Wed, 26 Apr 2006 17:39:13 -0600
User-agent: Thunderbird 1.5.0.2 (Windows/20060308)

I think it would be nice if executable-find could be called interactively with completion and display its result, just
like load-library:

  (interactive
   (list (completing-read "Find executable: "
                          'locate-file-completion
                          (cons exec-path exec-suffixes))))
...
  (when (interactive-p)
    (if result
        (message "Executable is file %s" (abbreviate-file-name result))
      (message "No exectuable %s in search path" command)))

Thanks,
--
Kevin Rodgers





reply via email to

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