Anonymous avatar Anonymous committed df95cd6

Updated docs

Comments (0)

Files changed (5)

 
 Ropemacs is an emacs mode that uses rope_ library to provide features
 like refactorings and code-assists.  You should install rope_ library
-and Pymacs before using ropemacs.
+and pymacs_ before using ropemacs.
 
 .. _`rope`: http://rope.sf.net/
+.. _pymacs: http://www.iro.umontreal.ca/~pinard/pymacs/
 
 
 New Features
 * New file/directory/module/package; ``C-x p n [fdmp]``
 * Edit project config; ``C-x p c``
 * Updating buffers with moved files after refactorings
+* Extracting similar pieces defaults to yes in extract refactorings
 
 
 Setting Up
 ==========
 
-You can get Pymacs from http://www.iro.umontreal.ca/~pinard/pymacs/.
+You can get pymacs_ from http://www.iro.umontreal.ca/~pinard/pymacs/.
 But version 0.22 does not work with Python 2.5 because of the lack of
 file encoding declarations.  A simple patch is included:
 ``docs/pymacs_python25.patch``.
     (require 'pymacs)
     (pymacs-load "ropemacs" "rope-")
     (rope-init)
+    ;; Automatically save project python buffers before refactorings
+    (setq rope-confirm-saving 'nil)
   )
 
 And execute ``load-ropemacs`` whenever you want to use ropemacs.  Also
-if you don't want to install rope library and ropemacs you can put
-them somewhere and add them to the ``PYTHONPATH`` before loading
-ropemacs in your ``.emacs``::
+if you don't want to install rope library and ropemacs you can extract
+them somewhere and add these lines to your ``.emacs``::
 
-  (setenv "PYTHONPATH" (concat (getenv "PYTHONPATH")
-                               ":/path/to/extracted/rope/package"
-                               ":/path/to/extracted/ropemacs/package"))
+  ;; Add this before loading pymacs if you haven't installed rope and ropemacs
+  (setq pymacs-load-path '("/home/ali/projects/rope"
+			   "/home/ali/projects/ropemacs"))
 
 
 Getting Started
 
 After that depending on the refactoring, you'll be asked about the
 essential information a refactoring needs to know (like the new name
-in rename refactoring).
+in rename refactoring).  You can skip it by prefixing the refactoring;
+this can be useful when using batchset command (described later).
 
 Next you'll see the base prompt of a refactoring dialog that shows
-something like "Choose what to do".  You can choose to set other
-optional refactoring options; after setting each option you'll be
-returned back to the base prompt.  Finally, you can ask rope to
-perform, preview or cancel the refactoring.
+something like "Choose what to do".  By entering the name of a
+refactoring option you can set its value.  After setting each option
+you'll be returned back to the base prompt.  Finally, you can ask rope
+to perform, preview or cancel the refactoring.
 
 See keybinding_ section and try the refactorings yourself.
 
  Done
 ======
 
+> Public Release 0.3 : December 5, 2007
+
 - setting many configs using batchset in dialogs : December 1, 2007
 - updating buffers with moved files : December 1, 2007
 - showing the old value of a field in dialogs : November 30, 2007
 
 > Public Release 0.4
 
-* adding a menu
 * including pymacs in ropemacs?
 * change pymacs to accept unicode strings
 * saving the old values of refacturing config
 * showing proposal type in code-assist
-
-> Public Release 0.3 : December 5, 2007
+* adding a menu

ropemacs/__init__.py

 from ropemacs.lisputils import lispfunction, interactive, prefixed, rawprefixed
 
 
-VERSION = '0.3'
-
-
 class RopeInterface(object):
 
     def __init__(self):
-import ropemacs
 from distutils.core import setup
 
 
     return '\n' + '\n'.join(lines[:end]) + '\n'
 
 setup(name='ropemacs',
-      version=ropemacs.VERSION,
+      version="0.3",
       description='An emacs mode for using rope refactoring library',
       long_description=get_long_description(),
       packages=['ropemacs'],
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.