home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.programming      Programming issues that transcend langua      57,431 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 55,668 of 57,431   
   Ben Bacarisse to Malcolm McLean   
   Re: Undo / Redo design pattern.   
   05 Apr 22 02:25:39   
   
   From: ben.usenet@bsb.me.uk   
      
   Malcolm McLean  writes:   
      
   > You need two stacks because after a series of undos, you have a series   
   > of redos.   
      
   This is just a random observation that might trigger something useful in   
   more complex situations...   
      
   Emacs has what I find to be a very useful refinement of undo/redo: it   
   can be limited to a region of the text.   
      
   Say I delete most of the quoted material in a reply (Emacs is my Usenet   
   client), and then make a few remarks at the end of the post, maybe doing   
   some undo or redo operations.  If I now realise I need some of the stuff   
   I delete for context, I can highlight the top of my reply and undo in   
   the selected region only.  The big delete will be undone, and I can then   
   do the more selective editing I now know I need.   
      
   --   
   Ben.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca