Changes between Version 13 and Version 14 of EmacsInterface/Undo


Ignore:
Timestamp:
May 26, 2012, 2:11:43 PM (13 years ago)
Author:
manualwiki
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • EmacsInterface/Undo

    v13 v14  
    11=== Undo === 
    22 
    3 RefactorErl had an undo operation for refactorings, but with this method  
     3!RefactorErl had an undo operation for refactorings, but with this method  
    44could you lose some modifications. Namely if the you edit the text after a 
    55refactoring, then undo the changes, all changes since the last 
     
    1717This extended undo is implemented by a stand alone Haskell program, so we need ghci Haskell Compiler  
    1818and cabal packaging system, that makes easier the installation of the required packages, modules. 
    19 The Haskell compiler can be downloaded from the website http://www.haskell.org/ghc/download. Cabal is 
    20 available at  http://www.haskell.org/cabal/download.html or on Linux systems with cabal-install package.  
    21 The files of this component can be found in ''lib/referl_ui'' directory within the ''tool'' under ''emacs''. In this directory 
    22 you have to run ''make'' for compiling the source. To enable the new undo mode you had to set the  
    23 refactorerl-undo-mode to selective-undo. 
     19* The Haskell compiler can be downloaded from the website http://www.haskell.org/ghc/download.  
     20* Cabal is available at  http://www.haskell.org/cabal/download.html or on Linux systems with cabal-install package.  
     21* The files of this component can be found in ''lib/referl_ui'' directory within the ''tool'' under ''emacs''. In this directory you have to run ''make'' for compiling the source.  
     22* To enable the new undo mode you had to set the refactorerl-undo-mode to selective-undo. 
    2423 
    2524==== Usage ==== 
    2625 
    2726The undo (redo) function is available in the Refactor menu with Undo 
    28 (Redo) menu item [[Image(sel-undo.png)]]. Calling the last change point in the Undo menu,  
     27(Redo) menu item. Calling the last change point in the Undo menu,  
    2928the program undoes the last change in the current file. Case refactoring the modifications will be rejected in  
    3029every affected file, but in some cases can conflits arise. When you edit an affected file, or make one another  
     
    3231overlapped, the undo reverts also this change, otherwise only the first one, and you get a merged state of the file.  
    3332At more complex changes can also more changes get reversed. In both cases the changes can be redone until a newer modification. 
     33 
     34[[Image(sel-undo.png, 500px, align=center)]] 
    3435 
    3536You can undo also older changes, not only the last one. This operation is called selective undo. In the undo menu under last  
     
    4142algorithm of the conflicts. 
    4243 
    43 Example 1. [[Image(ex-1-merge.png)]] 
     44Example 1.  
    4445 
    45461. we move the ''pzip'' function from module ''from'' to 
     
    5051 successful, the edited text is unchanged 
    5152 
    52 Example 2. [[Image(ex-2-confl.png)]] 
     53[[Image(ex-1-merge.png, 500px, align=center)]] 
     54 
     55 
     56Example 2. 
    5357 
    54581. we move the ''pzip'' function from module ''from'' to module ''xlists'' 
    55592. item we edit the module ''xlists'' after refactoring in area, that is affected by refactoring (''pzip'') 
    56603. then we undo the refactoring in the module ''from'': conflict arises, the change by editing is rejected 
     61 
     62[[Image(ex-2-confl.png, 500px, align=center)]]