]> git.pld-linux.org Git - packages/vim.git/blob - 7.3.698
- add patches 7.3.619-743
[packages/vim.git] / 7.3.698
1 To: vim_dev@googlegroups.com
2 Subject: Patch 7.3.698
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.3.698
11 Problem:    Python 3 does not preserve state beween commands.
12 Solution:   Preserve the state. (Paul Ollis)
13 Files:      src/if_python.c, src/if_python3.c
14
15
16 *** ../vim-7.3.697/src/if_python.c      2012-10-14 05:20:05.000000000 +0200
17 --- src/if_python.c     2012-10-21 01:44:10.000000000 +0200
18 ***************
19 *** 740,748 ****
20   #else
21         PyMac_Initialize();
22   #endif
23 !       /* Initialise threads and save the state using PyGILState_Ensure.
24 !        * Without this call, thread-specific state (such as the system trace
25 !        * hook), will be lost between invocations of Python code.  */
26         PyEval_InitThreads();
27         pygilstate = PyGILState_Ensure();
28   #ifdef DYNAMIC_PYTHON
29 --- 740,749 ----
30   #else
31         PyMac_Initialize();
32   #endif
33 !       /* Initialise threads, and save the state using PyGILState_Ensure.
34 !        * Without the call to PyGILState_Ensure, thread specific state (such
35 !        * as the system trace hook), will be lost between invocations of
36 !        * Python code. */
37         PyEval_InitThreads();
38         pygilstate = PyGILState_Ensure();
39   #ifdef DYNAMIC_PYTHON
40 *** ../vim-7.3.697/src/if_python3.c     2012-10-14 03:22:49.000000000 +0200
41 --- src/if_python3.c    2012-10-21 01:44:37.000000000 +0200
42 ***************
43 *** 731,738 ****
44   #else
45         PyMac_Initialize();
46   #endif
47 !       /* initialise threads, must be after Py_Initialize() */
48         PyEval_InitThreads();
49   
50   #ifdef DYNAMIC_PYTHON3
51         get_py3_exceptions();
52 --- 731,742 ----
53   #else
54         PyMac_Initialize();
55   #endif
56 !       /* Initialise threads, and save the state using PyGILState_Ensure.
57 !        * Without the call to PyGILState_Ensure, thread specific state (such
58 !        * as the system trace hook), will be lost between invocations of
59 !        * Python code. */
60         PyEval_InitThreads();
61 +       pygilstate = PyGILState_Ensure();
62   
63   #ifdef DYNAMIC_PYTHON3
64         get_py3_exceptions();
65 *** ../vim-7.3.697/src/version.c        2012-10-21 01:40:24.000000000 +0200
66 --- src/version.c       2012-10-21 01:42:44.000000000 +0200
67 ***************
68 *** 721,722 ****
69 --- 721,724 ----
70   {   /* Add new patch number below this line */
71 + /**/
72 +     698,
73   /**/
74
75 -- 
76 ALL:   A witch!  A witch!
77 WITCH: It's a fair cop.
78 ALL:   Burn her!  Burn her!  Let's make her into a ladder.
79                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
80
81  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
82 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
83 \\\  an exciting new programming language -- http://www.Zimbu.org        ///
84  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
This page took 0.138334 seconds and 3 git commands to generate.