Kana Natsuno wrote:

> On Sun, Feb 12, 2012 at 8:19 AM, Bram Moolenaar <[email protected]> wrote:
> >
> > Patch 7.3.438
> > Problem: There is no way to avoid ":doautoall" reading modelines.
> > Solution:  Add the <nomodeline> argument. Adjust documentation.
> > Files: src/fileio.c, runtime/doc/autocmd.txt
> 
> Thank you for the fix.  But this patch deals with only
> :doautoall.  :doautocmd should be fixed too.

I thought :doautocmd did not read modelines.  But I looked in the wrong
place, the code was inconsistent.  Thanks for pointing out what I
overlooked.

> And the new document does not describe the reason about
> reading modelines.  It might perplex new users who have the
> same question like me.  It's better to add more description.
> 
> I wrote a patch to supplement the above points.
> See the attachement for the details.  How do you think?

I think the check for <nomodeline> should be in one place.

-- 
hundred-and-one symptoms of being an internet addict:
44. Your friends no longer send you e-mail...they just log on to your IRC
    channel.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui