When 'efm' is set in a compiler plugin, and the :compile command is
executed in a configuration file, ":verbose set efm?" reports the
file name of the file where :compiler was executed and the line
number of compiler plugin where ":set efm=..." was executed.

I expected to see :verbose report either the name of the file in
which :compiler was executed and the line number of the :compiler
command, or the name of the compiler plugin and the line number
where 'efm' was set.  I would prefer the latter.

Here's an illustration of the problem.

Create a file named vimrc (name doesn't matter) in your home
directory (directory doesn't matter) containing only this command on
line 3 (line doesn't matter but I wanted something other than 1).

    compiler ant

Execute the following command from the shell prompt:

    $ vim -N --noplugin -u vimrc -i NONE

Execute the following command on Vim's command line:

    :verbose set efm?
      errorformat= %#[%.%#] %#%f:%l:%v:%*\d:%*\d: %t%[%^:]%#:%m,%A %#[%.%#] 
%f:%l: %m,%-Z %#[%.%#] %p^,%C %#[%.%#] %#%m
            Last set from ~/vimrc line 32

'efm' is actually set at line 32 of $VIMRUNTIME/compiler/ant.vim.

A similar problem occurs when executing :compiler from Vim's command
line.  For example:

    $ vim -N -u NONE -i NONE
    :compiler ant
    :verbose set efm?
      errorformat= %#[%.%#] %#%f:%l:%v:%*\d:%*\d: %t%[%^:]%#:%m,%A %#[%.%#] 
%f:%l: %m,%-Z %#[%.%#] %p^,%C %#[%.%#] %#%m

In this case, no information at all is given about where 'efm' was
set.  I understand an argument that the user set 'efm' from the
command line via the :compiler command, but it's not helpful for
diagnosing problems.

I'm using the latest vim, 8.2.3582, in an xterm on an Ubuntu 20.04.3
system.

Regards,
Gary

-- 
-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20211104214556.GD2195%40phoenix.

Raspunde prin e-mail lui