Hi Bram and developer,

How to reproduce:
- Prepare test.txt with the following contents.
  // vim: set filetype=c :

- 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=ccomplete#Complete
Press ENTER or type command to continue


Investigation result:
Because the call of `do_set()` function is enclosed by `++secure` and 
`--secure`, 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' option 
in modeline.
I think it's too mush to enclose `do_set ()` with `++ secure` and` --secure`.

PS
See you later in VimConf 2018👍
--
Best regards,
Hirohito Higashi (h_east)

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui