agr / ropemacs (http://rope.sf.net/ropemacs.html)
An emacs minor mode for using rope python refactoring library in emacs.
| commit 380: | 4ad6810fe5bc |
| parent 379: | 6f336b1f112f |
| branch: | trunk |
include a fix for pymacs problem when interrupting it
18 months ago
Changed (Δ1.1 KB):
raw changeset »
docs/pymacs_signalrecursion.patch (27 lines added, 0 lines removed)
Up to file-list docs/pymacs_signalrecursion.patch:
1 |
# It can be applied on Pymacs 0.23 or 0.24-beta1. The problem is |
|
2 |
# signal.signal() is called twice for signal.SIGINT. You can use |
|
3 |
# ``patch -p1 < signal_recursion.patch`` in the extracted directory. |
|
4 |
||
5 |
--- a/Pymacs/pymacs.py |
|
6 |
+++ b/Pymacs/pymacs.py |
|
7 |
@@ -69,20 +69,6 @@ |
|
8 |
import signal |
|
9 |
self.original_handler = signal.signal( |
|
10 |
signal.SIGINT, self.interrupt_handler) |
|
11 |
- for counter in range(1, signal.NSIG): |
|
12 |
- if counter == signal.SIGINT: |
|
13 |
- self.original_handler = signal.signal(counter, |
|
14 |
- self.interrupt_handler) |
|
15 |
- |
|
16 |
- # The following few lines of code are reported to create IO |
|
17 |
- # problems within the Pymacs helper itself, so I merely comment |
|
18 |
- # them for now, until we know better. |
|
19 |
- |
|
20 |
- #else: |
|
21 |
- # try: |
|
22 |
- # signal.signal(counter, self.generic_handler) |
|
23 |
- # except RuntimeError: |
|
24 |
- # pass |
|
25 |
self.inhibit_quit = True |
|
26 |
# Start protocol and services. |
|
27 |
from Pymacs import __version__ |
