Karsten Hopp cbae78
To: vim_dev@googlegroups.com
Karsten Hopp cbae78
Subject: Patch 7.3.544
Karsten Hopp cbae78
Fcc: outbox
Karsten Hopp cbae78
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp cbae78
Mime-Version: 1.0
Karsten Hopp cbae78
Content-Type: text/plain; charset=UTF-8
Karsten Hopp cbae78
Content-Transfer-Encoding: 8bit
Karsten Hopp cbae78
------------
Karsten Hopp cbae78
Karsten Hopp cbae78
Patch 7.3.544
Karsten Hopp cbae78
Problem:    There is no good way to close a quickfix window when closing the
Karsten Hopp cbae78
	    last ordinary window.
Karsten Hopp cbae78
Solution:   Add the QuitPre autocommand.
Karsten Hopp cbae78
Files:	    src/ex_docmd.c, src/fileio.c, src/vim.h
Karsten Hopp cbae78
Karsten Hopp cbae78
Karsten Hopp cbae78
*** ../vim-7.3.543/src/ex_docmd.c	2012-06-06 16:12:54.000000000 +0200
Karsten Hopp cbae78
--- src/ex_docmd.c	2012-06-06 17:58:41.000000000 +0200
Karsten Hopp cbae78
***************
Karsten Hopp cbae78
*** 6458,6463 ****
Karsten Hopp cbae78
--- 6458,6464 ----
Karsten Hopp cbae78
  	return;
Karsten Hopp cbae78
      }
Karsten Hopp cbae78
  #ifdef FEAT_AUTOCMD
Karsten Hopp cbae78
+     apply_autocmds(EVENT_QUITPRE, NULL, NULL, FALSE, curbuf);
Karsten Hopp cbae78
      if (curbuf_locked())
Karsten Hopp cbae78
  	return;
Karsten Hopp cbae78
  #endif
Karsten Hopp cbae78
*** ../vim-7.3.543/src/fileio.c	2012-04-30 17:04:47.000000000 +0200
Karsten Hopp cbae78
--- src/fileio.c	2012-06-06 17:32:12.000000000 +0200
Karsten Hopp cbae78
***************
Karsten Hopp cbae78
*** 7678,7683 ****
Karsten Hopp cbae78
--- 7678,7684 ----
Karsten Hopp cbae78
      {"MenuPopup",	EVENT_MENUPOPUP},
Karsten Hopp cbae78
      {"QuickFixCmdPost",	EVENT_QUICKFIXCMDPOST},
Karsten Hopp cbae78
      {"QuickFixCmdPre",	EVENT_QUICKFIXCMDPRE},
Karsten Hopp cbae78
+     {"QuitPre",		EVENT_QUITPRE},
Karsten Hopp cbae78
      {"RemoteReply",	EVENT_REMOTEREPLY},
Karsten Hopp cbae78
      {"SessionLoadPost",	EVENT_SESSIONLOADPOST},
Karsten Hopp cbae78
      {"ShellCmdPost",	EVENT_SHELLCMDPOST},
Karsten Hopp cbae78
*** ../vim-7.3.543/src/vim.h	2012-06-01 15:20:49.000000000 +0200
Karsten Hopp cbae78
--- src/vim.h	2012-06-06 17:30:01.000000000 +0200
Karsten Hopp cbae78
***************
Karsten Hopp cbae78
*** 1264,1271 ****
Karsten Hopp cbae78
      EVENT_INSERTENTER,		/* when entering Insert mode */
Karsten Hopp cbae78
      EVENT_INSERTLEAVE,		/* when leaving Insert mode */
Karsten Hopp cbae78
      EVENT_MENUPOPUP,		/* just before popup menu is displayed */
Karsten Hopp cbae78
!     EVENT_QUICKFIXCMDPOST,	/* after :make, :grep etc */
Karsten Hopp cbae78
!     EVENT_QUICKFIXCMDPRE,	/* before :make, :grep etc */
Karsten Hopp cbae78
      EVENT_SESSIONLOADPOST,	/* after loading a session file */
Karsten Hopp cbae78
      EVENT_STDINREADPOST,	/* after reading from stdin */
Karsten Hopp cbae78
      EVENT_STDINREADPRE,		/* before reading from stdin */
Karsten Hopp cbae78
--- 1264,1272 ----
Karsten Hopp cbae78
      EVENT_INSERTENTER,		/* when entering Insert mode */
Karsten Hopp cbae78
      EVENT_INSERTLEAVE,		/* when leaving Insert mode */
Karsten Hopp cbae78
      EVENT_MENUPOPUP,		/* just before popup menu is displayed */
Karsten Hopp cbae78
!     EVENT_QUICKFIXCMDPOST,	/* after :make, :grep etc. */
Karsten Hopp cbae78
!     EVENT_QUICKFIXCMDPRE,	/* before :make, :grep etc. */
Karsten Hopp cbae78
!     EVENT_QUITPRE,		/* before :quit */
Karsten Hopp cbae78
      EVENT_SESSIONLOADPOST,	/* after loading a session file */
Karsten Hopp cbae78
      EVENT_STDINREADPOST,	/* after reading from stdin */
Karsten Hopp cbae78
      EVENT_STDINREADPRE,		/* before reading from stdin */
Karsten Hopp cbae78
*** ../vim-7.3.543/src/version.c	2012-06-06 16:29:06.000000000 +0200
Karsten Hopp cbae78
--- src/version.c	2012-06-06 18:02:09.000000000 +0200
Karsten Hopp cbae78
***************
Karsten Hopp cbae78
*** 716,717 ****
Karsten Hopp cbae78
--- 716,719 ----
Karsten Hopp cbae78
  {   /* Add new patch number below this line */
Karsten Hopp cbae78
+ /**/
Karsten Hopp cbae78
+     544,
Karsten Hopp cbae78
  /**/
Karsten Hopp cbae78
Karsten Hopp cbae78
-- 
Karsten Hopp cbae78
How To Keep A Healthy Level Of Insanity:
Karsten Hopp cbae78
3. Every time someone asks you to do something, ask if they want fries
Karsten Hopp cbae78
   with that.
Karsten Hopp cbae78
Karsten Hopp cbae78
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp cbae78
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp cbae78
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp cbae78
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///