|
Karsten Hopp |
8c2633 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
8c2633 |
Subject: Patch 7.1.250
|
|
Karsten Hopp |
8c2633 |
Fcc: outbox
|
|
Karsten Hopp |
8c2633 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
8c2633 |
Mime-Version: 1.0
|
|
Karsten Hopp |
8c2633 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
8c2633 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
8c2633 |
------------
|
|
Karsten Hopp |
8c2633 |
|
|
Karsten Hopp |
8c2633 |
Patch 7.1.250
|
|
Karsten Hopp |
8c2633 |
Problem: ":setglobal fenc=anything" gives an error message in a buffer
|
|
Karsten Hopp |
8c2633 |
where 'modifiable' is off. (Ben Schmidt)
|
|
Karsten Hopp |
8c2633 |
Solution: Don't give an error if 'modifiable' doesn't matter.
|
|
Karsten Hopp |
8c2633 |
Files: src/option.c
|
|
Karsten Hopp |
8c2633 |
|
|
Karsten Hopp |
8c2633 |
|
|
Karsten Hopp |
8c2633 |
*** ../vim-7.1.249/src/option.c Sat Jan 19 15:55:51 2008
|
|
Karsten Hopp |
8c2633 |
--- src/option.c Wed Feb 13 18:31:39 2008
|
|
Karsten Hopp |
8c2633 |
***************
|
|
Karsten Hopp |
8c2633 |
*** 5671,5677 ****
|
|
Karsten Hopp |
8c2633 |
{
|
|
Karsten Hopp |
8c2633 |
if (gvarp == &p_fenc)
|
|
Karsten Hopp |
8c2633 |
{
|
|
Karsten Hopp |
8c2633 |
! if (!curbuf->b_p_ma)
|
|
Karsten Hopp |
8c2633 |
errmsg = e_modifiable;
|
|
Karsten Hopp |
8c2633 |
else if (vim_strchr(*varp, ',') != NULL)
|
|
Karsten Hopp |
8c2633 |
/* No comma allowed in 'fileencoding'; catches confusing it
|
|
Karsten Hopp |
8c2633 |
--- 5671,5677 ----
|
|
Karsten Hopp |
8c2633 |
{
|
|
Karsten Hopp |
8c2633 |
if (gvarp == &p_fenc)
|
|
Karsten Hopp |
8c2633 |
{
|
|
Karsten Hopp |
8c2633 |
! if (!curbuf->b_p_ma && opt_flags != OPT_GLOBAL)
|
|
Karsten Hopp |
8c2633 |
errmsg = e_modifiable;
|
|
Karsten Hopp |
8c2633 |
else if (vim_strchr(*varp, ',') != NULL)
|
|
Karsten Hopp |
8c2633 |
/* No comma allowed in 'fileencoding'; catches confusing it
|
|
Karsten Hopp |
8c2633 |
*** ../vim-7.1.249/src/version.c Wed Feb 13 15:20:59 2008
|
|
Karsten Hopp |
8c2633 |
--- src/version.c Wed Feb 13 18:34:24 2008
|
|
Karsten Hopp |
8c2633 |
***************
|
|
Karsten Hopp |
8c2633 |
*** 668,669 ****
|
|
Karsten Hopp |
8c2633 |
--- 668,671 ----
|
|
Karsten Hopp |
8c2633 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
8c2633 |
+ /**/
|
|
Karsten Hopp |
8c2633 |
+ 250,
|
|
Karsten Hopp |
8c2633 |
/**/
|
|
Karsten Hopp |
8c2633 |
|
|
Karsten Hopp |
8c2633 |
--
|
|
Karsten Hopp |
8c2633 |
How To Keep A Healthy Level Of Insanity:
|
|
Karsten Hopp |
8c2633 |
3. Every time someone asks you to do something, ask if they want fries
|
|
Karsten Hopp |
8c2633 |
with that.
|
|
Karsten Hopp |
8c2633 |
|
|
Karsten Hopp |
8c2633 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
8c2633 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
8c2633 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
8c2633 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|