Re: [CEDET-devel] Are there ECB-users willing to pretest thenextforthcoming ECB-release with a lot of NEWS?

<[email protected]> Thu, 7 May 2009 19:12:15 +0200
Newsgroups gmane.emacs.code-browser
Message-ID <[email protected]>
 Hi,

I have checked in some fixes and also updated the CVS-snapshot on the ECB-website:

- not ecb-ping-options has a new default-value which should work well on most os.
- ecb-vc-dir-managed-by-CVS is now fully compatible with vc-cvs-stay-local of Emacs
  22 and 23 (only the latter one has the new choice 'only-file!)

Please update your ECB and run your tests and tell me if this bug now has been gone.
Thanks a lot!

@bread: this should also fix your bug...

Ciao,
Klaus

-----Ursprüngliche Nachricht-----
Von: Daniel Clemente [mailto:[email protected]] 
Gesendet: Donnerstag, 7. Mai 2009 15:43
An: [email protected]
Cc: [email protected]; [email protected]
Betreff: Re: [CEDET-devel] Are there ECB-users willing to pretest thenextforthcoming ECB-release with a lot of NEWS?

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

------------------------------------------------------------------------------
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