home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.3 / 7.3.1312 < prev    next >
Encoding:
Internet Message Format  |  2013-07-05  |  2.1 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.1312
  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.1312 (after 7.3.1287)
  11. Problem:    Not giving correct error messages for SystemExit().
  12. Solution:   Move E858 into an else. (Ken Takata)
  13. Files:        src/if_py_both.h
  14.  
  15.  
  16. *** ../vim-7.3.1311/src/if_py_both.h    2013-07-01 22:02:58.000000000 +0200
  17. --- src/if_py_both.h    2013-07-06 12:57:36.000000000 +0200
  18. ***************
  19. *** 5103,5116 ****
  20.       run_ret = PyRun_String((char *)cmd, Py_eval_input, globals, globals);
  21.       if (run_ret == NULL)
  22.       {
  23. !     if (PyErr_ExceptionMatches(PyExc_SystemExit))
  24.       {
  25.           EMSG2(_(e_py_systemexit), "python");
  26.           PyErr_Clear();
  27.       }
  28. !     if (PyErr_Occurred() && !msg_silent)
  29. !         PyErr_PrintEx(0);
  30. !     EMSG(_("E858: Eval did not return a valid python object"));
  31.       }
  32.       else
  33.       {
  34. --- 5103,5119 ----
  35.       run_ret = PyRun_String((char *)cmd, Py_eval_input, globals, globals);
  36.       if (run_ret == NULL)
  37.       {
  38. !     if (PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_SystemExit))
  39.       {
  40.           EMSG2(_(e_py_systemexit), "python");
  41.           PyErr_Clear();
  42.       }
  43. !     else
  44. !     {
  45. !         if (PyErr_Occurred() && !msg_silent)
  46. !         PyErr_PrintEx(0);
  47. !         EMSG(_("E858: Eval did not return a valid python object"));
  48. !     }
  49.       }
  50.       else
  51.       {
  52. *** ../vim-7.3.1311/src/version.c    2013-07-05 20:09:08.000000000 +0200
  53. --- src/version.c    2013-07-06 12:58:53.000000000 +0200
  54. ***************
  55. *** 730,731 ****
  56. --- 730,733 ----
  57.   {   /* Add new patch number below this line */
  58. + /**/
  59. +     1312,
  60.   /**/
  61.  
  62. -- 
  63. ROBIN:  (warily) And if you get a question wrong?
  64. ARTHUR: You are cast into the Gorge of Eternal Peril.
  65. ROBIN:  Oh ... wacho!
  66.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  67.  
  68.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  69. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  70. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  71.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  72.