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

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

Re: ffap-list-directory prompt too like real dired


From: martin rudalics
Subject: Re: ffap-list-directory prompt too like real dired
Date: Tue, 15 May 2007 08:30:48 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

ffap-list-directory is nice but it misleadingly gives the same prompt
as dired, "Dired file or URL:"

You mean "the same prompt as dired-at-point".  I can offer the
attached patch.  Could you try it?

*** ffap.el     Sun Apr  8 09:27:20 2007
--- ffap.el     Tue May 15 08:27:20 2007
***************
*** 1793,1799 ****
    ;; Extra complication for the temporary highlighting.
    (unwind-protect
        (ffap-read-file-or-url
!        (if ffap-url-regexp "Dired file or URL: " "Dired file: ")
         (prog1
           (setq guess (or guess
                             (let ((guess (ffap-guesser)))
--- 1793,1803 ----
    ;; Extra complication for the temporary highlighting.
    (unwind-protect
        (ffap-read-file-or-url
!        (cond
!       ((eq ffap-directory-finder 'list-directory)
!        "List directory (brief): ")
!       (ffap-url-regexp "Dired file or URL: ")
!       (t "Dired file: "))
         (prog1
           (setq guess (or guess
                             (let ((guess (ffap-guesser)))

reply via email to

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