Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quickfix list should not process modelines #245

Closed
GoogleCodeExporter opened this issue Aug 18, 2015 · 6 comments
Closed

quickfix list should not process modelines #245

GoogleCodeExporter opened this issue Aug 18, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. open a quickfix list with the first entry having a string like "vim: foo"
2. vim tries to process "foo" as a modeline


What is the expected output? What do you see instead?

There's no reason for the quickfix list to recognize modelines.


What version of the product are you using? On what operating system?

7.4, linux/mac/windows.



Original issue reported on code.google.com by justi...@gmail.com on 3 Aug 2014 at 4:45

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Precise steps to reproduce:

:cexpr ['vim: foo']

Vim reports "E518: Unknown option: foo"

Original comment by justi...@gmail.com on 3 Aug 2014 at 4:48

@GoogleCodeExporter
Copy link
Author

I am sorry, but I don't see this problem. Running 
vim -u NONE -N -c 'cexpr ["vim: foo"]'
Doesn't report an error message.

Original comment by chrisbr...@googlemail.com on 4 Aug 2014 at 12:13

@GoogleCodeExporter
Copy link
Author

You're right, there's some extra step that is needed. I see this issue often, 
but somehow I can't reproduce it at all now. I will report once I find the 
cause.

Original comment by justi...@gmail.com on 4 Aug 2014 at 2:02

@GoogleCodeExporter
Copy link
Author

Closing as invalid. If you can reproduce the issue, feel free to open a new 
issue (or report at the vim-dev mailinglist) then.

Original comment by chrisbr...@googlemail.com on 2 Oct 2014 at 7:44

  • Changed state: Invalid

@GoogleCodeExporter
Copy link
Author

This might happen when some plugin calls `doautocmd`, e.g. fugitive does this 
for its `:Glog`:

    BufRead Auto commands for "*"
    cmd: call fugitive#detect(expand('<amatch>:p'))

(reported at https://github.com/tpope/vim-fugitive/issues/580)

Modelines currently get executed unconditionally in this case, but even with 
the patch to only do so when commands have been called 
(https://groups.google.com/d/msg/vim_dev/DidKMDAsppw/RHedJGM-G6EJ) this is an 
issue.

It's not really a Vim issue though - except if Vim would decide to skip 
modelines for &buftype != "".

Original comment by dhahler@gmail.com on 20 Nov 2014 at 8:38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant