Hirohito Higashi wrote:
> How to reproduce: > - Prepare test.txt with the following contents. > // vim: set filetype=3Dc : > > - Start Vim with test.txt > $ vim --clean test.txt > > > Expected behavior: > - No error occurs. > > > Actual behavior: > - Error occurred with the following messages. > "test.txt" [converted] 1L, 25C > Error detected while processing /path to your vim/runtime/ftplugin/c.vim: > line 26: > E523: Not allowed here: ofu=3Dccomplete#Complete > Press ENTER or type command to continue > > > Investigation result: > Because the call of `do_set()` function is enclosed by `++secure` and `--se= > cure`, autocmd caused by "set" command becomes secure error. > https://github.com/vim/vim/commit/82e8c92ebef5afcac0c0fdb706ff163f9b3366f7#= > diff-a4fc02df73c5e2af124168e5b1436d00 > > In the help (:h 'ft'), there is a description that sets the 'filetype' opti= > on in modeline. > I think it's too mush to enclose `do_set ()` with `++ secure` and` --secure= > `. Thanks for reporting. It's a side effect from being more strict with modelines. Since the value of 'filetype' is checked, using the value doesn't need to be handled in secure mode, even though it was set from a modeline. Keep looking out for side effects of making the option values set in a modeline more strict, it's hard to predict what might go wrong. -- VOICE OVER: As the horrendous Black Beast lunged forward, escape for Arthur and his knights seemed hopeless, when, suddenly ... the animator suffered a fatal heart attack. ANIMATOR: Aaaaagh! VOICE OVER: The cartoon peril was no more ... The Quest for Holy Grail could continue. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
