summaryrefslogtreecommitdiff
path: root/source/ap/vim/patches/7.3.288
blob: d1f662681b93a3eac08aaee268a72b64578d36c4 (plain)
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
To: vim_dev@googlegroups.com
Subject: Patch 7.3.288
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 7.3.288
Problem:    has('python') may give an error message for not being able to load
	    the library after using python3.
Solution:   Only give the error when the verbose argument is true.
Files:	    src/if_python.c, src/if_python3.c


*** ../vim-7.3.287/src/if_python.c	2011-06-19 00:27:46.000000000 +0200
--- src/if_python.c	2011-08-21 17:03:52.000000000 +0200
***************
*** 368,374 ****
       * standard C extension libraries of one or both python versions. */
      if (python3_loaded())
      {
! 	EMSG(_("E836: This Vim cannot execute :python after using :py3"));
  	return FAIL;
      }
  #endif
--- 368,375 ----
       * standard C extension libraries of one or both python versions. */
      if (python3_loaded())
      {
! 	if (verbose)
! 	    EMSG(_("E836: This Vim cannot execute :python after using :py3"));
  	return FAIL;
      }
  #endif
*** ../vim-7.3.287/src/if_python3.c	2011-07-15 15:54:39.000000000 +0200
--- src/if_python3.c	2011-08-21 17:05:19.000000000 +0200
***************
*** 367,373 ****
       * standard C extension libraries of one or both python versions. */
      if (python_loaded())
      {
! 	EMSG(_("E837: This Vim cannot execute :py3 after using :python"));
  	return FAIL;
      }
  # endif
--- 367,374 ----
       * standard C extension libraries of one or both python versions. */
      if (python_loaded())
      {
! 	if (verbose)
! 	    EMSG(_("E837: This Vim cannot execute :py3 after using :python"));
  	return FAIL;
      }
  # endif
*** ../vim-7.3.287/src/version.c	2011-08-27 15:10:00.000000000 +0200
--- src/version.c	2011-08-28 15:59:11.000000000 +0200
***************
*** 711,712 ****
--- 711,714 ----
  {   /* Add new patch number below this line */
+ /**/
+     288,
  /**/

-- 
FIRST SOLDIER:  So they wouldn't be able to bring a coconut back anyway.
SECOND SOLDIER: Wait a minute! Suppose two swallows carried it together?
FIRST SOLDIER:  No, they'd have to have it on a line.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///