File: README

package info (click to toggle)
pymacs 0.25-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 756 kB
  • sloc: python: 3,542; lisp: 740; makefile: 80; sh: 34
file content (163 lines) | stat: -rw-r--r-- 7,240 bytes parent folder | download | duplicates (4)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
Pymacs — Notes

This Org file is being published as http://pinard.progiciels-bpi.ca/notes/
Pymacs.html, and the Pymacs README file has been derived from the HTML using
w3m -dump.

Table des matières

  • 1 README contents
      □ 1.1 Notes for 0.25
      □ 1.2 Notes for 0.24
      □ 1.3 Notes for 0.23
  • 2 Informal notes
      □ 2.1 python-mode.el difficulty
      □ 2.2 Using packagers

1 README contents

    There exists a Belorussian translation of this file by Paul Bukhovko, and a
    Romanian translation of the Pymacs manual by Alexander Ovsov.

Pymacs is a powerful tool which, once started from Emacs, allows both-way
communication between Emacs Lisp and Python. Pymacs aims Python as an extension
language for Emacs rather than the other way around, and this asymmetry is
reflected in some design choices. Within Emacs Lisp code, one may load and use
Python modules. Python functions may themselves use Emacs services, and handle
Emacs Lisp objects kept in Emacs Lisp space.

The Pymacs manual (either in HTML format or PDF format) has installation
instructions, a full description of the API, pointers to documented examples,
to resources, and to other Pymacs sites or projects. The distribution also
includes the Poor's Python Pre-Processor (pppp) and its manual (either in HTML
format or PDF format).

Source files and various distributions are available through https://github.com
/pinard/Pymacs/. Please report problems, comments and suggestions to François
Pinard.

1.1 Notes for 0.25

2012-05-07 lun Hi everybody.

Pymacs 0.25 is now available. You may fetch it as one of:

  • https://github.com/pinard/Pymacs/tarball/v0.25
  • https://github.com/pinard/Pymacs/zipball/v0.25

depending on if you want a tar or zip archive.

There installation process was modified:

  • Python 3 is now supported. This required new installation mechanics, and a
    Python pre-processor written for the circumstance (named pppp).
  • Pymacs now installs a single Python file instead of a Python module. This
    does not affect users — except maybe a few who chose to depend on
    undocumented internals.

The specifications are pretty stable. A few additions occurred:

  • Variable pymacs-python-command may select which Python interpreter to use.
  • A pymacs-auto-restart variable lets the user decide what to do if the
    Pymacs helper aborts.
  • The Let class got a pops method which pops everything in a single call.
  • A new API function pymacs-autoload serves lazy imports.

There also are miscellaneous changes:

  • Some errors have been corrected, both in the code and in the manual.
  • The Emacs Lisp source has been massaged so to become uploadable in ELPA's
    (Emacs Lisp Packages Archives).

XEmacs support seems to be broken, and Jython 2.2 support does not work yet. As
I am not much of a user of either, this is kept on ice currently. Interested
collaborators and testers, contact me if you feel like pushing in these areas!

Nice thanks to Pymacs contributors. It surely has been fun working with you
all!

1.2 Notes for 0.24

Whenever I tag a version -betaN or such, it might not be fully ready for public
distribution, this is a welcome defect that ELPA cannot grok such versions.
Someone wanting to upload Pymacs nevertheless found his way around the
limitation by renaming the version, I guess from 0.24-beta2 to 0.24. It would
also have been polite to check with me first… As beta releases come before real
releases, it should really have been 0.23. Anyway, Marmelade now has a Pymacs
0.24. For avoiding any more confusion, I'm skipping 0.24. Such a version does
not officially exist.

1.3 Notes for 0.23

2008-02-15 ven Hello to everybody, and Emacs users in the Python community.

Here is Pymacs 0.23! There has been a while, so I advise current Pymacs users
to switch with caution. All reported bugs have been squashed, if we except one
about Emacs quit (C-g) not being obeyed gracefully. A few suggestions have been
postponed, to be pondered later.

The manual is now in reST format, and everything Allout is gone. Postscript and
PDF files are not anymore part of the distribution, you may find them on the
Web site, or use the Makefile if you have needed tools. Examples have been
moved out of the manual into a new contrib/ subdirectory, which also holds a
few new contributions. The example of a Python back-end for Emacs Gnus has been
deleted.

Python 1.5.2 compatibility has been dropped; use Python 2.2 or better. The
Pymacs manual explains installation procedure, now simplified. The
pymacs-services script is gone, this should ease installing Pymacs on MS
Windows. There is also a small, still naive validation suite.

The communication protocol has been revised: more clarity, less magic. Zombie
objects are less dreadful by default. The API now supports False and True
constants, and Unicode strings (within limits set by Emacs).

Special thanks to those who helped me at creating or testing this release.

2 Informal notes

2.1 python-mode.el difficulty

2012-05-07 lun After I recently acquired a new machine and installed a flurry
of software on it, I was saluted with:

pymacs-report-error: Pymacs helper did not start within 30 seconds

The problem turns out to come from python-mode.el (a development copy), which
insists on providing and using its own older copy of Pymacs. The problem shows
in the Pymacs communication buffer: a failed attempt at importing Pymacs/
__init__.py. Indeed, this file does not exist anymore. Pymacs now stands as a
single file on the Python side, not as a module. This yields confusion at run
time. The problem vanishes if I comment out python-mode.el initialization, or
more simply (thanks holmboe) if py-load-pymacs-p is set to nil. I'll talk to
Andreas Röhler about this.

2.2 Using packagers

2012-05-07 lun Gleb Peregud suggests on GitHub that we prepare an ELPA/
Marmalade package for Pymacs. There is also a Python side to be addressed, and
I've been lucky enough to recently meet Éric Araujo, the distutils2 / package
maintainer. The time might be proper to push a bit on the idea on getting
Pymacs on installers.

I saved a few notes on Emacs Packagers. After having pondering them, I'll
follow Gleb's advice, at least to get started and experiment. Emacs packagers
do not care about Python, and Python packagers ignore Emacs Lisp installation
problems. The pre-processing step in Pymacs is another source of concern. In a
word, I'll save the bottle of champagne for some later time! ☺

The same that there is some complexity in installers on the Emacs Lisp side,
there might be some complexity in installers on the Python side. Emacs
proponents would see the need of an ELPA and dismiss the problem of properly
installing on the Python side (resorting to PYTHONPATH mangling or such),
Python proponents would do exactly the contrary. Seeing one side as complex,
and the other side as trivially simple. My feeling is that to do nicely for
everybody, we should use an Emacs installer and an Python installer. If I
really was seeking simplicity, I would use neither…

Auteur: François Pinard <pinard@progiciels-bpi.ca>

Date: 2012-05-07 17:51:54 EDT

HTML generated by org-mode 6.33x in emacs 23