Friday, October 16, 2015

Re: Capture output of :make

On 2015-10-16 07:06:11 +0000, LCD 47 said:

>> Are you sure this is a bug? There is no reason for the result of
>> cexpr / lexpr to depend on the current buffer. The change you suggest
>> would be backwards incompatible, for no real gain as far as I can tell.
>
> The current behaviour is even documented:
>
> : If {expr} is a String, then each new-line terminated
> : line in the String is processed using the global value
> : of 'errorformat' and the result is added to the
> : quickfix list.
>
> /lcd

That may be fine for cexpr, but wouldn't make more sense if lexpr used a
buffer-local value instead? Say I have opened two different file types:
one would expect that lexpr would populate the location list using the
errorformat associated to the current buffer. In my tests, this is not the
case.

@Christian: I'll try the patch on the weekend.

Nicola


--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: