4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: The "Syntax/Set syntax only" menu item causes an error message.
13 Solution: Set the script-local variable in a function. (Benji Fisher)
14 Files: runtime/synmenu.vim
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
21 " This file is normally sourced from menu.vim.
23 " Maintainer: Bram Moolenaar <Bram@vim.org>
24 ! " Last Change: 2002 Oct 01
26 " Define the SetSyn function, used for the Syntax menu entries.
27 " Set 'filetype' and also 'syntax' if it is manually selected.
29 " This file is normally sourced from menu.vim.
31 " Maintainer: Bram Moolenaar <Bram@vim.org>
32 ! " Last Change: 2003 Jun 22
34 " Define the SetSyn function, used for the Syntax menu entries.
35 " Set 'filetype' and also 'syntax' if it is manually selected.
39 an 50.195 &Syntax.-SEP1- <Nop>
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>
44 if exists("s:syntax_menu_synonly")
47 an 50.195 &Syntax.-SEP1- <Nop>
49 ! an <silent> 50.200 &Syntax.Set\ '&syntax'\ only :call <SID>Setsynonly()<CR>
51 ! let s:syntax_menu_synonly = 1
53 an <silent> 50.202 &Syntax.Set\ '&filetype'\ too :call <SID>Nosynonly()<CR>
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
61 { /* Add new patch number below this line */
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)
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 ///