[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7. Upgrading and downloading packages

This chapter describes all aspects of upgrading to a newer version of ECB.

The first section describes how to download and install a new package from the web, where "package" means either ECB itself or the required libraries semantic, eieio and speedbar.

After installing a new ECB-version ECB checks if the values of the customized ECB-options are still compatible. If not ECB does some smart things. This is the topic of the second section.

7.1 Downloading new versions of ECB and/or required packages  How to download newer versions of packages
7.2 Automatic upgrading of options  ECB can auto. upgrade your options

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7.1 Downloading new versions of ECB and/or required packages

ECB offers the possibility to upgrade to newer versions direct from the ECB-website. This can be done if the following requirements are satisfied:

  1. A connection to the web is available
  2. The tools "wget", "tar" and "gzip" are installed

    With Unix-systems these tools are in the standard-distribution. If you are running any Microsoft Windows system then you need cygwin(25) which offers these tools too. On every system these tools must reside in the PATH environment-variable!

    If you are behind a firewall and you have to use a proxy you maybe need the following wget-configuration in your file `~/.wgetrc':

    # Define your proxies (where 8080 and 8081 are examples
    # for the port-numbers)
    http_proxy = http://your.proxy.com:8080
    ftp_proxy  = http://your.ftpproxy.com:8081
    # If you do not want to use proxy at all, set this to off.
    use_proxy = on

If these requirements are satisfied you can download and install both ECB itself and also the required versions of semantic, eieio and speedbar:

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7.2 Automatic upgrading of options

7.2.1 User interface for option-upgrading  Options and commands you should know
7.2.2 Background information  Maybe some interesting informations

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7.2.1 User interface for option-upgrading

There are two interactive commands (see section 4.14 Interactive ECB commands):

If the option ecb-auto-compatibility-check has a non-nil value (which is the default) then ECB does all this stuff automatically at startup. This is very recommended!

If you are interested in some background information, read 7.2.2 Background information!

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7.2.2 Background information

Big packages like ECB will be enhanced and developed continuously so sometimes a new version must be released. Such packages offer in general a lot of customizable options so probably some of these options change the type or are renamed because the old type and/or name of the option makes no sense in the new release.

Especially options which have changed the type of their value are now a problem for the user which want to upgrade to the latest ECB-version: If the user has saved a certain value for option X in its file `.emacs' but the type of this saved value doesn't match the new defined type in the defcustom-form after an ECB-upgrade then there can occur serious problems like ECB can not be started anymore or even Emacs can not be started without errors.

Until now there was only one way to fix these problems: The user must manually edit his file `.emacs' and remove all entries for options which have now another type. After this and after restarting Emacs the new default-values of the type-changed options in the new ECB-release are active and the user can go on using Emacs and ECB. But this approach to fix the incompatible-option-problem has two serious drawbacks:

  1. The user must manually edit the customize-section in his file `.emacs'. This should normally not be done and if then only by old-handed Emacs-users.

  2. The customized value of the option X in the old-release (with the old type) is lost because after removing the related entry from the file `.emacs' the new default-value is active, so the user must re-customize the option X.

OK, this is one half of the option-upgrade-problem but a new ECB-release can also rename a option from name X to name Y because the new name Y makes much more sense and/or is more mnemonic. If only the name has changed but not the type this is not a serious problem like above but also annoying because the customized value of the old-option X takes no effect in the new release but instead the default-value of the new-option Y is now active. But nevertheless this problem has the drawback number 2 (see above).

The last category of upgrade-problems is a renamed option which has also changed its type.

ECB has a solution for all these problems:

All these checks and transformings are done at beginning of activating ECB - if the option ecb-auto-compatibility-check is not nil. If ECB has recognized incompatible or renamed options it does its upgrading/reseting-job so all ECB-options have correct types so ECB can start correct. After ECB is started it displays a list of all upgraded or reseted option with their old and new values.

[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by XEmacs Webmaster on October, 2 2007 using texi2html