File: README_DEVEL.org

package info (click to toggle)
python-mode 1%3A6.2.3-1.1~deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,032 kB
  • sloc: lisp: 28,389; python: 781; sh: 72; makefile: 43
file content (77 lines) | stat: -rw-r--r-- 2,363 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
* General 

  python-mode.el is composed from components-python-mode directory
  using `components2pythonmode' shell-script

  Get its source-files doing
  
  bzr branch lp:python-mode/components-python-mode
  
  An effective way users may contribute is telling
  us how Python-mode is used and which command is missing
  still.
  
  For people who want to dig into the code:
  
  Major parts deal with editing and running of
  Python code - start with edit-commands.
  It's built around the notion of a statement.
  Putting `py-end-of-statement',
  `py-beginning-of-statement' under edebug should deliver
  a way into the code.

  No need for compiling. However when compiled files exist, don't
  forget to re-compile before running it, else an existing older
  compiled file is loaded - see docstring of `load'.

* Output buffers
  There will be
  - one set internally to process, where the real work is done:
    py-buffer-name
  - a generic one, results may arrive finally, visible for user:
    py-output-buffer
  Commands might set their output-buffers, "*Python Completions*" for example.

* Organizing source code to edit Python
  Commands are grouped by action WRT Python forms
  
** backward FORM / forward of FORM
*** forward FORM left corner
** mark FORM
**  copy FORM
**  kill FORM
**  delete FORM
** up Form
** down form

   Basically use `backward' and `forward' instead of beginning/end of
   `py-beginning-of-statement' aliased `py-backward-statement' etc.
   beginning/end of forms are reserved for booleans.
   A separating convention, intended to make sripting easier.

* Organizing source code to run Python
  A `py-python-' form may have a `py-ipython' sibling
  Likewise `py--python'

* Bugs, feature requests
  Please use bug-tracker at
  http://launchpad.net/python-mode

* Testing

  Tests in batch-mode are run via run-travis-ci.sh 

  However, there is no need to use batch-mode for a single
  test. Batch-mode has some quirks and bugs. Tests in
  test/py-ert-interactive-tests.el are expected to succeed when called
  interactively, not in batch-mode.

  Start tests from emacs -Q
  All needed beside python-mode.el is
  test/setup-ert-tests.el
  and the file, which contains the test.
  Run the test M-x ert TESTNAME RET

  Instruments it for the debugger with M-x edebug-defun RET after or
  inside the test . Use <space> to step.