|
Karsten Hopp |
818852 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
818852 |
Subject: Patch 7.3.468
|
|
Karsten Hopp |
818852 |
Fcc: outbox
|
|
Karsten Hopp |
818852 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
818852 |
Mime-Version: 1.0
|
|
Karsten Hopp |
818852 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
818852 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
818852 |
------------
|
|
Karsten Hopp |
818852 |
|
|
Karsten Hopp |
818852 |
Patch 7.3.468
|
|
Karsten Hopp |
818852 |
Problem: For some compilers the error file is not easily readable.
|
|
Karsten Hopp |
818852 |
Solution: Use QuickFixCmdPre for more commands. (Marcin Szamotulski)
|
|
Karsten Hopp |
818852 |
Files: runtime/doc/autocmd.txt, src/quickfix.c
|
|
Karsten Hopp |
818852 |
|
|
Karsten Hopp |
818852 |
|
|
Karsten Hopp |
818852 |
*** ../vim-7.3.467/runtime/doc/autocmd.txt 2012-02-12 20:13:55.000000000 +0100
|
|
Karsten Hopp |
818852 |
--- runtime/doc/autocmd.txt 2012-03-07 20:07:23.000000000 +0100
|
|
Karsten Hopp |
818852 |
***************
|
|
Karsten Hopp |
818852 |
*** 695,701 ****
|
|
Karsten Hopp |
818852 |
QuickFixCmdPre Before a quickfix command is run (|:make|,
|
|
Karsten Hopp |
818852 |
|:lmake|, |:grep|, |:lgrep|, |:grepadd|,
|
|
Karsten Hopp |
818852 |
|:lgrepadd|, |:vimgrep|, |:lvimgrep|,
|
|
Karsten Hopp |
818852 |
! |:vimgrepadd|, |:lvimgrepadd|, |:cscope|).
|
|
Karsten Hopp |
818852 |
The pattern is matched against the command
|
|
Karsten Hopp |
818852 |
being run. When |:grep| is used but 'grepprg'
|
|
Karsten Hopp |
818852 |
is set to "internal" it still matches "grep".
|
|
Karsten Hopp |
818852 |
--- 699,708 ----
|
|
Karsten Hopp |
818852 |
QuickFixCmdPre Before a quickfix command is run (|:make|,
|
|
Karsten Hopp |
818852 |
|:lmake|, |:grep|, |:lgrep|, |:grepadd|,
|
|
Karsten Hopp |
818852 |
|:lgrepadd|, |:vimgrep|, |:lvimgrep|,
|
|
Karsten Hopp |
818852 |
! |:vimgrepadd|, |:lvimgrepadd|, |:cscope|,
|
|
Karsten Hopp |
818852 |
! |:cfile|, |:cgetfile|, |:caddfile|, |:lfile|,
|
|
Karsten Hopp |
818852 |
! |:lgetfile|, |:laddfile|, |:helpgrep|,
|
|
Karsten Hopp |
818852 |
! |:lhelpgrep|).
|
|
Karsten Hopp |
818852 |
The pattern is matched against the command
|
|
Karsten Hopp |
818852 |
being run. When |:grep| is used but 'grepprg'
|
|
Karsten Hopp |
818852 |
is set to "internal" it still matches "grep".
|
|
Karsten Hopp |
818852 |
***************
|
|
Karsten Hopp |
818852 |
*** 706,712 ****
|
|
Karsten Hopp |
818852 |
*QuickFixCmdPost*
|
|
Karsten Hopp |
818852 |
QuickFixCmdPost Like QuickFixCmdPre, but after a quickfix
|
|
Karsten Hopp |
818852 |
command is run, before jumping to the first
|
|
Karsten Hopp |
818852 |
! location. See |QuickFixCmdPost-example|.
|
|
Karsten Hopp |
818852 |
*RemoteReply*
|
|
Karsten Hopp |
818852 |
RemoteReply When a reply from a Vim that functions as
|
|
Karsten Hopp |
818852 |
server was received |server2client()|. The
|
|
Karsten Hopp |
818852 |
--- 713,722 ----
|
|
Karsten Hopp |
818852 |
*QuickFixCmdPost*
|
|
Karsten Hopp |
818852 |
QuickFixCmdPost Like QuickFixCmdPre, but after a quickfix
|
|
Karsten Hopp |
818852 |
command is run, before jumping to the first
|
|
Karsten Hopp |
818852 |
! location. For |:cfile| and |:lfile| commands
|
|
Karsten Hopp |
818852 |
! it is run after error file is read and before
|
|
Karsten Hopp |
818852 |
! moving to the first error.
|
|
Karsten Hopp |
818852 |
! See |QuickFixCmdPost-example|.
|
|
Karsten Hopp |
818852 |
*RemoteReply*
|
|
Karsten Hopp |
818852 |
RemoteReply When a reply from a Vim that functions as
|
|
Karsten Hopp |
818852 |
server was received |server2client()|. The
|
|
Karsten Hopp |
818852 |
*** ../vim-7.3.467/src/quickfix.c 2012-02-22 14:58:24.000000000 +0100
|
|
Karsten Hopp |
818852 |
--- src/quickfix.c 2012-03-07 20:10:07.000000000 +0100
|
|
Karsten Hopp |
818852 |
***************
|
|
Karsten Hopp |
818852 |
*** 2995,3005 ****
|
|
Karsten Hopp |
818852 |
{
|
|
Karsten Hopp |
818852 |
win_T *wp = NULL;
|
|
Karsten Hopp |
818852 |
qf_info_T *qi = &ql_info;
|
|
Karsten Hopp |
818852 |
|
|
Karsten Hopp |
818852 |
if (eap->cmdidx == CMD_lfile || eap->cmdidx == CMD_lgetfile
|
|
Karsten Hopp |
818852 |
! || eap->cmdidx == CMD_laddfile)
|
|
Karsten Hopp |
818852 |
wp = curwin;
|
|
Karsten Hopp |
818852 |
|
|
Karsten Hopp |
818852 |
#ifdef FEAT_BROWSE
|
|
Karsten Hopp |
818852 |
if (cmdmod.browse)
|
|
Karsten Hopp |
818852 |
{
|
|
Karsten Hopp |
818852 |
--- 2995,3022 ----
|
|
Karsten Hopp |
818852 |
{
|
|
Karsten Hopp |
818852 |
win_T *wp = NULL;
|
|
Karsten Hopp |
818852 |
qf_info_T *qi = &ql_info;
|
|
Karsten Hopp |
818852 |
+ #ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
818852 |
+ char_u *au_name = NULL;
|
|
Karsten Hopp |
818852 |
+ #endif
|
|
Karsten Hopp |
818852 |
|
|
Karsten Hopp |
818852 |
if (eap->cmdidx == CMD_lfile || eap->cmdidx == CMD_lgetfile
|
|
Karsten Hopp |
818852 |
! || eap->cmdidx == CMD_laddfile)
|
|
Karsten Hopp |
818852 |
wp = curwin;
|
|
Karsten Hopp |
818852 |
|
|
Karsten Hopp |
818852 |
+ #ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
818852 |
+ switch (eap->cmdidx)
|
|
Karsten Hopp |
818852 |
+ {
|
|
Karsten Hopp |
818852 |
+ case CMD_cfile: au_name = (char_u *)"cfile"; break;
|
|
Karsten Hopp |
818852 |
+ case CMD_cgetfile: au_name = (char_u *)"cgetfile"; break;
|
|
Karsten Hopp |
818852 |
+ case CMD_caddfile: au_name = (char_u *)"caddfile"; break;
|
|
Karsten Hopp |
818852 |
+ case CMD_lfile: au_name = (char_u *)"lfile"; break;
|
|
Karsten Hopp |
818852 |
+ case CMD_lgetfile: au_name = (char_u *)"lgetfile"; break;
|
|
Karsten Hopp |
818852 |
+ case CMD_laddfile: au_name = (char_u *)"laddfile"; break;
|
|
Karsten Hopp |
818852 |
+ default: break;
|
|
Karsten Hopp |
818852 |
+ }
|
|
Karsten Hopp |
818852 |
+ if (au_name != NULL)
|
|
Karsten Hopp |
818852 |
+ apply_autocmds(EVENT_QUICKFIXCMDPRE, au_name, NULL, FALSE, curbuf);
|
|
Karsten Hopp |
818852 |
+ #endif
|
|
Karsten Hopp |
818852 |
#ifdef FEAT_BROWSE
|
|
Karsten Hopp |
818852 |
if (cmdmod.browse)
|
|
Karsten Hopp |
818852 |
{
|
|
Karsten Hopp |
818852 |
***************
|
|
Karsten Hopp |
818852 |
*** 3031,3040 ****
|
|
Karsten Hopp |
818852 |
--- 3048,3069 ----
|
|
Karsten Hopp |
818852 |
&& (eap->cmdidx == CMD_cfile
|
|
Karsten Hopp |
818852 |
|| eap->cmdidx == CMD_lfile))
|
|
Karsten Hopp |
818852 |
{
|
|
Karsten Hopp |
818852 |
+ #ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
818852 |
+ if (au_name != NULL)
|
|
Karsten Hopp |
818852 |
+ apply_autocmds(EVENT_QUICKFIXCMDPOST, au_name, NULL, FALSE, curbuf);
|
|
Karsten Hopp |
818852 |
+ #endif
|
|
Karsten Hopp |
818852 |
if (wp != NULL)
|
|
Karsten Hopp |
818852 |
qi = GET_LOC_LIST(wp);
|
|
Karsten Hopp |
818852 |
qf_jump(qi, 0, 0, eap->forceit); /* display first error */
|
|
Karsten Hopp |
818852 |
}
|
|
Karsten Hopp |
818852 |
+
|
|
Karsten Hopp |
818852 |
+ else
|
|
Karsten Hopp |
818852 |
+ {
|
|
Karsten Hopp |
818852 |
+ #ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
818852 |
+ if (au_name != NULL)
|
|
Karsten Hopp |
818852 |
+ apply_autocmds(EVENT_QUICKFIXCMDPOST, au_name, NULL, FALSE, curbuf);
|
|
Karsten Hopp |
818852 |
+ #endif
|
|
Karsten Hopp |
818852 |
+ }
|
|
Karsten Hopp |
818852 |
}
|
|
Karsten Hopp |
818852 |
|
|
Karsten Hopp |
818852 |
/*
|
|
Karsten Hopp |
818852 |
*** ../vim-7.3.467/src/version.c 2012-03-07 19:38:52.000000000 +0100
|
|
Karsten Hopp |
818852 |
--- src/version.c 2012-03-07 20:11:54.000000000 +0100
|
|
Karsten Hopp |
818852 |
***************
|
|
Karsten Hopp |
818852 |
*** 716,717 ****
|
|
Karsten Hopp |
818852 |
--- 716,719 ----
|
|
Karsten Hopp |
818852 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
818852 |
+ /**/
|
|
Karsten Hopp |
818852 |
+ 468,
|
|
Karsten Hopp |
818852 |
/**/
|
|
Karsten Hopp |
818852 |
|
|
Karsten Hopp |
818852 |
--
|
|
Karsten Hopp |
818852 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
818852 |
155. You forget to eat because you're too busy surfing the net.
|
|
Karsten Hopp |
818852 |
|
|
Karsten Hopp |
818852 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
818852 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
818852 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
818852 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|