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 / 6.2.021 < prev    next >
Encoding:
Internet Message Format  |  2003-07-04  |  4.5 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.2.021
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.2.021
  11. Problem:    The user manual section on exceptions contains small mistakes.
  12. Solution:   Give a good example of an error that could be missed and other
  13.         improvements. (Servatius Brandt)
  14. Files:        runtime/doc/usr_41.txt
  15.  
  16.  
  17. *** ../vim-6.2.020/runtime/doc/usr_41.txt    Sun Jun  1 15:11:52 2003
  18. --- runtime/doc/usr_41.txt    Tue Jun  3 13:02:15 2003
  19. ***************
  20. *** 1,4 ****
  21. ! *usr_41.txt*    For Vim version 6.2.  Last change: 2003 Jun 01
  22.   
  23.                VIM USER MANUAL - by Bram Moolenaar
  24.   
  25. --- 1,4 ----
  26. ! *usr_41.txt*    For Vim version 6.2.  Last change: 2003 Jun 03
  27.   
  28.                VIM USER MANUAL - by Bram Moolenaar
  29.   
  30. ***************
  31. *** 819,825 ****
  32.   
  33.       :function
  34.   <    function Show(start, ...) ~
  35. !     function GetVimIndent()~
  36.       function SetSyn(name) ~
  37.   
  38.   To see what a function does, use its name as an argument for ":function": >
  39. --- 819,825 ----
  40.   
  41.       :function
  42.   <    function Show(start, ...) ~
  43. !     function GetVimIndent() ~
  44.       function SetSyn(name) ~
  45.   
  46.   To see what a function does, use its name as an argument for ":function": >
  47. ***************
  48. *** 863,872 ****
  49.   nice message instead.
  50.   
  51.   For the commands in between ":try" and ":endtry" errors are turned into
  52. ! exceptions.  An exception is a string.  In the case of an error the string is
  53. ! the error message.  And every error message has a number.  In this case, the
  54. ! error we catch contains "E484:".  This number is guaranteed to stay the same
  55. ! (the text may change, e.g., it may be translated).
  56.   
  57.   When the ":read" command causes another error, the pattern "E484:" will not
  58.   match in it.  Thus this exception will not be caught and result in the usual
  59. --- 863,872 ----
  60.   nice message instead.
  61.   
  62.   For the commands in between ":try" and ":endtry" errors are turned into
  63. ! exceptions.  An exception is a string.  In the case of an error the string
  64. ! contains the error message.  And every error message has a number.  In this
  65. ! case, the error we catch contains "E484:".  This number is guaranteed to stay
  66. ! the same (the text may change, e.g., it may be translated).
  67.   
  68.   When the ":read" command causes another error, the pattern "E484:" will not
  69.   match in it.  Thus this exception will not be caught and result in the usual
  70. ***************
  71. *** 881,887 ****
  72.       :endtry
  73.   
  74.   This means all errors are caught.  But then you will not see errors that are
  75. ! useful, such as an invalid modeline.
  76.   
  77.   Another useful mechanism is the ":finally" command: >
  78.   
  79. --- 881,887 ----
  80.       :endtry
  81.   
  82.   This means all errors are caught.  But then you will not see errors that are
  83. ! useful, such as "E21: Cannot make changes, 'modifiable' is off".
  84.   
  85.   Another useful mechanism is the ":finally" command: >
  86.   
  87. ***************
  88. *** 897,905 ****
  89.   
  90.   This filters the lines from the cursor until the end of the file through the
  91.   "filter" command, which takes a file name argument.  No matter if the
  92. ! filtering works or something goes wrong in between ":try" and ":finally", the
  93. ! "call delete(tmp)" is always executed.  This makes sure you don't leave the
  94. ! temporary file behind.
  95.   
  96.   More information about exception handling can be found in the reference
  97.   manual: |exception-handling|.
  98. --- 897,905 ----
  99.   
  100.   This filters the lines from the cursor until the end of the file through the
  101.   "filter" command, which takes a file name argument.  No matter if the
  102. ! filtering works, something goes wrong in between ":try" and ":finally" or the
  103. ! user cancels the filtering by pressing CTRL-C, the "call delete(tmp)" is
  104. ! always executed.  This makes sure you don't leave the temporary file behind.
  105.   
  106.   More information about exception handling can be found in the reference
  107.   manual: |exception-handling|.
  108. *** ../vim-6.2.020/src/version.c    Sat Jul  5 19:14:04 2003
  109. --- src/version.c    Sat Jul  5 19:18:00 2003
  110. ***************
  111. *** 632,633 ****
  112. --- 632,635 ----
  113.   {   /* Add new patch number below this line */
  114. + /**/
  115. +     21,
  116.   /**/
  117.  
  118. -- 
  119. ARTHUR:  I am your king!
  120. WOMAN:   Well, I didn't vote for you.
  121. ARTHUR:  You don't vote for kings.
  122. WOMAN:   Well, 'ow did you become king then?
  123.                                   The Quest for the Holy Grail (Monty Python)
  124.  
  125.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  126. ///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
  127. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  128.  \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///
  129.