]>
Commit | Line | Data |
---|---|---|
47612863 AF |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 6.2.020 | |
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.020 | |
11 | Problem: The "Syntax/Set syntax only" menu item causes an error message. | |
12 | (Oyvind Holm) | |
13 | Solution: Set the script-local variable in a function. (Benji Fisher) | |
14 | Files: runtime/synmenu.vim | |
15 | ||
16 | ||
17 | *** ../vim-6.2.019/runtime/synmenu.vim Sun Jun 1 16:15:47 2003 | |
18 | --- runtime/synmenu.vim Sun Jun 22 15:41:42 2003 | |
19 | *************** | |
20 | *** 2,8 **** | |
21 | " This file is normally sourced from menu.vim. | |
22 | " | |
23 | " Maintainer: Bram Moolenaar <Bram@vim.org> | |
24 | ! " Last Change: 2002 Oct 01 | |
25 | ||
26 | " Define the SetSyn function, used for the Syntax menu entries. | |
27 | " Set 'filetype' and also 'syntax' if it is manually selected. | |
28 | --- 2,8 ---- | |
29 | " This file is normally sourced from menu.vim. | |
30 | " | |
31 | " Maintainer: Bram Moolenaar <Bram@vim.org> | |
32 | ! " Last Change: 2003 Jun 22 | |
33 | ||
34 | " Define the SetSyn function, used for the Syntax menu entries. | |
35 | " Set 'filetype' and also 'syntax' if it is manually selected. | |
36 | *************** | |
37 | *** 404,410 **** | |
38 | ||
39 | an 50.195 &Syntax.-SEP1- <Nop> | |
40 | ||
41 | ! an 50.200 &Syntax.Set\ '&syntax'\ only :let s:syntax_menu_synonly=1<CR> | |
42 | an <silent> 50.202 &Syntax.Set\ '&filetype'\ too :call <SID>Nosynonly()<CR> | |
43 | fun! s:Nosynonly() | |
44 | if exists("s:syntax_menu_synonly") | |
45 | --- 404,413 ---- | |
46 | ||
47 | an 50.195 &Syntax.-SEP1- <Nop> | |
48 | ||
49 | ! an <silent> 50.200 &Syntax.Set\ '&syntax'\ only :call <SID>Setsynonly()<CR> | |
50 | ! fun! s:Setsynonly() | |
51 | ! let s:syntax_menu_synonly = 1 | |
52 | ! endfun | |
53 | an <silent> 50.202 &Syntax.Set\ '&filetype'\ too :call <SID>Nosynonly()<CR> | |
54 | fun! s:Nosynonly() | |
55 | if exists("s:syntax_menu_synonly") | |
56 | *** ../vim-6.2.019/src/version.c Sat Jul 5 19:11:14 2003 | |
57 | --- src/version.c Sat Jul 5 19:13:07 2003 | |
58 | *************** | |
59 | *** 632,633 **** | |
60 | --- 632,635 ---- | |
61 | { /* Add new patch number below this line */ | |
62 | + /**/ | |
63 | + 20, | |
64 | /**/ | |
65 | ||
66 | -- | |
67 | ARTHUR: Be quiet! | |
68 | DENNIS: --but by a two-thirds majority in the case of more-- | |
69 | ARTHUR: Be quiet! I order you to be quiet! | |
70 | WOMAN: Order, eh -- who does he think he is? | |
71 | ARTHUR: I am your king! | |
72 | The Quest for the Holy Grail (Monty Python) | |
73 | ||
74 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
75 | /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ | |
76 | \\\ Project leader for A-A-P -- http://www.A-A-P.org /// | |
77 | \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html /// |