<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -31,6 +31,7 @@ require 'rubygems'
   s.rdoc_options &lt;&lt; '--title' &lt;&lt; 'Arcadia Documentation' &lt;&lt;  '--main'  &lt;&lt; 'README' &lt;&lt; '-q'
   s.extra_rdoc_files = [&quot;README&quot;]
 #  s.add_dependency(&quot;ruby-debug&quot;, &quot;&gt;= 0.9.3&quot;) # TODO 
+#  s.add_dependency(&quot;rdp-rbeautify&quot;) # prettifier plugin TODO uncomment once published
   s.add_dependency(&quot;rogerdpack-whichr&quot;)
 #  s.add_dependency(&quot;ruby-wmi&quot;) # doesn't build on linux
 #  s.add_dependency(&quot;win32-process&quot;) # same here</diff>
      <filename>arcadia.gemspec</filename>
    </modified>
    <modified>
      <diff>@@ -2427,6 +2427,7 @@ class AgEditor
   end
 
 
+  # modify in this instance means the (...) in the tab header of each file
   def modified?
     return !(@buffer === text_value)
   end
@@ -2751,9 +2752,8 @@ class AgEditor
           if Tk.messageBox('icon' =&gt; 'error', 'type' =&gt; 'yesno',
             'title' =&gt; '(Arcadia) Libs', 'parent' =&gt; @text,
             'message' =&gt; msg) == 'yes'
-            @text.delete('1.0','end')
-            reset_highlight if @highlighting
-            load_file(@file)
+            reload
+            
           else
             @file_last_access_time = ftime
           end
@@ -2761,6 +2761,12 @@ class AgEditor
     end
   end
   
+  def reload
+    @text.delete('1.0','end')
+            reset_highlight if @highlighting
+            load_file(@file)
+   end
+  
   def languages_hash(_ext=nil)
     @@langs_hash = Hash.new if !defined?(@@langs_hash)
     return nil if _ext.nil?
@@ -3186,7 +3192,13 @@ class AgMultiEditor &lt; ArcadiaExt
           @find.show_go_to_line_dialog
         end
       when CloseCurrentTabEvent
-         close_raised         
+         close_raised
+      when PrettifyTextEvent
+        require 'rbeautify.rb' # gem
+        self.raised.save # so we can beautify it kludgely here...
+        path = raised.file
+        RBeautify.beautify_file(path)
+        self.raised.reload
       when MoveBufferEvent
         if _event.old_file &amp;&amp; _event.new_file &amp;&amp; editor_exist?(_event.old_file)
           #close_file(_event.old_file)</diff>
      <filename>ext/ae-editor/ae-editor.rb</filename>
    </modified>
    <modified>
      <diff>@@ -101,6 +101,10 @@ class GoToLineBufferEvent &lt; BufferEvent
   attr_accessor :line
 end
 
+class PrettifyTextEvent &lt; BufferEvent
+
+end
+
 class SearchBufferEvent &lt; BufferEvent
   class Result &lt; Result
     attr_accessor :row, :col</diff>
      <filename>lib/a-contracts.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,8 +8,6 @@
 #   &amp;require_omissis=tk/label
 #   &amp;require_omissis=tk/toplevel
 
-
-
 require &quot;conf/arcadia.res&quot;
 require 'tkextlib/bwidget'
 require &quot;lib/a-tkcommons&quot;
@@ -951,7 +949,9 @@ class ArcadiaMainMenu &lt; ArcadiaUserControl
       menu_spec_edit = [['Edit', 0],
       ['Cut', $arcadia['main.action.edit_cut'], 2],
       ['Copy', $arcadia['main.action.edit_copy'], 0],
-      ['Paste', $arcadia['main.action.edit_paste'], 0]]
+      ['Paste', $arcadia['main.action.edit_paste'], 0],
+      ['Prettify Current', proc{Arcadia.process_event(PrettifyTextEvent.new(self))}, 0]]
+      
       menu_spec_search = [['Search', 0],
       ['Find/Replace ...', proc{Arcadia.process_event(SearchBufferEvent.new(self))}, 2],
       ['Find in files...', proc{Arcadia.process_event(SearchInFilesEvent.new(self))}, 2],</diff>
      <filename>lib/a-core.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9c32acdb52346fdf1d26f212262dca11d9838e67</id>
    </parent>
  </parents>
  <author>
    <name>rdp</name>
    <email>rogerpack2005@gmail.com</email>
  </author>
  <url>http://github.com/angal/arcadia/commit/24bd68907662c8d505878a4dffd3adb786e7aa06</url>
  <id>24bd68907662c8d505878a4dffd3adb786e7aa06</id>
  <committed-date>2009-10-07T17:20:06-07:00</committed-date>
  <authored-date>2009-10-07T17:20:06-07:00</authored-date>
  <message>add prettify option</message>
  <tree>a56de67d468fc893302c65a2105a5350a095403f</tree>
  <committer>
    <name>rdp</name>
    <email>rogerpack2005@gmail.com</email>
  </committer>
</commit>
