Re: Are there ECB-users willing to pretest the nextforthcoming ECB-release with a lot of NEWS?

Daniel Clemente <[email protected]>
Newsgroups gmane.emacs.cedet,gmane.emacs.semantic,gmane.emacs.code-browser
Message-ID <[email protected]>
El dj, mai 07 2009, [email protected] va escriure:
>
> well, after digging a little bit into this code (its still the same as 4 years
> before ;-), i have a assumption: What is the value of `vc-cvs-stay-local' in
> your setup?? For me it's t which means that Emacs stays local with
> CVS-repositories even if they are remote...a recommendable setting, BTW...

  It is:
,----
| vc-cvs-stay-local is a variable defined in `vc-cvs.el'.
| Its value is only-file
| 
| Documentation:
| Non-nil means use local operations when possible for remote repositories.
| This avoids slow queries over the network and instead uses heuristics
| and past information to determine the current status of a file.
| 
| If value is the symbol `only-file' `vc-dir' will connect to the
| server, but heuristics will be used to determine the status for
| all other VC operations.
| …
`----

  'only-file is non-nil but is not equal to t
  I think this check could be changed to (not vc-cvs-stay-local):


(defun ecb-vc-dir-managed-by-CVS (directory)
…
       (if (or (not (boundp 'vc-cvs-stay-local)) ;; XEmacs doesn't have this
               (not (eq vc-cvs-stay-local t)))
…




  It seems to work well after that.


>  
> Well, if you have recommendations for better default values of ECB or changes
> in ecb-vc-dir-managed-by-CVS do not hesitate to tell me......

  ecb-ping-options is by default wrong in many operating systems. For instance GNU/Linux's ping requires -c 1 or -c 4 or any finite number.
  You could use another (ping) function which already knows how to ping on many OSs, for instance:

,----
| ping is an interactive compiled Lisp function in `net-utils.el'.
| 
| (ping host)
| 
| Ping host.
| If your system's ping continues until interrupted, you can try setting
| `ping-program-options'.
| 
| [back]
`----

  (Internally it is doing this:)
,----
|  (defcustom ping-program-options
|   (and (memq system-type (list 'linux 'gnu/linux 'irix))
|        (list "-c" "4"))
`----

  That (ping) does not return the exit status of the program, but a buffer which needs to be parsed.

  Maybe other methods instead of ICMP could be used to check for connection; for instance connect directly to do what you wanted, and in case of connect failure you know there's no connection.



-- Daniel


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Cedet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cedet-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.