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

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

[h-e-w] RE: ecb-source-path


From: Geert Ribbers
Subject: [h-e-w] RE: ecb-source-path
Date: Thu, 21 Feb 2002 18:37:29 +0100

Hi.

Hi.

I had the same problem: this is an annoying new feature of ECB. It
synchronizes the directory buffer also now whenever you open up a file
without using ECB.
I have changed the function that causes this behaviour and now it
works satisfactory for me (1 question left, prompts made more clear):

(defun ecb-add-source-path (&optional dir alias)
  "Changed function, overridden coz user gets bothered with unexpected
unclear questions.
 Original comment:
 Add a directory to the `ecb-source-path'."
  (interactive)
  ;; we must manually cut a filename because we must not add filenames to
  ;; `ecb-source-path'!
  (let* ((my-dir (ecb-fix-filename
                  (or dir
                      (file-name-directory (read-file-name "Add source path
for ECB: ")))
;;                      (file-name-directory (read-file-name "Add source
path: ")))
                  t))
;;         (my-alias (or alias
;;                       (read-string (format "Alias for \"%s\" (empty = no
alias): "
;;                                            my-dir))))
         )
;;                                            my-dir)))))
    (setq ecb-source-path (append ecb-source-path
                                  (list (if (and alias (> (length alias) 0))
                                            (list my-dir alias) my-dir))))
    (ecb-update-directories-buffer)
    (if (y-or-n-p (format "Added directory %s to the ecb directory window,
add also for future-sessions? " my-dir))
;;    (if (y-or-n-p "Add the new source-path also for future-sessions? ")
        (customize-save-variable 'ecb-source-path ecb-source-path)
      (customize-set-variable 'ecb-source-path ecb-source-path)
      )
  ))

Regards, Geert Ribbers

> Message: 11
> From: "Jeff Rancier" <address@hidden>
> To: "Emacs Help \(Windows\)" <address@hidden>
> Cc: "ecb-list" <address@hidden>
> Date: Thu, 21 Feb 2002 10:43:41 -0500
> Subject: [h-e-w] ecb-source-path
>
> Hello,
>
> I am stuck in some kind of loop where I get prompted in the mini-buffer
> with:
>
> Alias for "h:" (empty = no alias) :
>
> I hit enter, then briefly see in the mini-buffer:
>
> Add the new source-path also for future-sessions? ( y or n )
>
> But ecb doesn't let me answer, and then it goes right back to prompting me
> for:
>
> Alias for "h:" (empty = no alias)
>
> Control-G beep, breaks, and goes right back to the same.  Pretty tight
loop.
>
> Any ideas?  I'm using ecb-1.60 on NTEMacs 20.7 on Windows 2000.
>
> Thanks,
> Jeff
>







reply via email to

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