4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: ":setglobal fenc=anything" gives an error message in a buffer
12 where 'modifiable' is off. (Ben Schmidt)
13 Solution: Don't give an error if 'modifiable' doesn't matter.
17 *** ../vim-7.1.249/src/option.c Sat Jan 19 15:55:51 2008
18 --- src/option.c Wed Feb 13 18:31:39 2008
24 ! if (!curbuf->b_p_ma)
25 errmsg = e_modifiable;
26 else if (vim_strchr(*varp, ',') != NULL)
27 /* No comma allowed in 'fileencoding'; catches confusing it
32 ! if (!curbuf->b_p_ma && opt_flags != OPT_GLOBAL)
33 errmsg = e_modifiable;
34 else if (vim_strchr(*varp, ',') != NULL)
35 /* No comma allowed in 'fileencoding'; catches confusing it
36 *** ../vim-7.1.249/src/version.c Wed Feb 13 15:20:59 2008
37 --- src/version.c Wed Feb 13 18:34:24 2008
41 { /* Add new patch number below this line */
47 How To Keep A Healthy Level Of Insanity:
48 3. Every time someone asks you to do something, ask if they want fries
51 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
52 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
53 \\\ download, build and distribute -- http://www.A-A-P.org ///
54 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///