An electronic apparatus which is capable of preventing loss of edited
operation data even if a user fails to perform a saving operation on the
edited operation data. A set of operation data is recalled from either
the original storage or the shadow storage to the current storage.
Changing of the contents of the operation data stored in the current
storage is reflected in the contents of a corresponding set of operation
data of the n sets of operation data stored in the shadow storage. When a
set of the operation data stored in the current storage is saved, the
saved set of operation data is written into a storage area of the
original storage and a corresponding storage area of the shadow storage.