1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: There is no good way to close a quickfix window when closing the
13 Solution: Add the QuitPre autocommand.
14 Files: src/ex_docmd.c, src/fileio.c, src/vim.h
17 *** ../vim-7.3.543/src/ex_docmd.c 2012-06-06 16:12:54.000000000 +0200
18 --- src/ex_docmd.c 2012-06-06 17:58:41.000000000 +0200
25 + apply_autocmds(EVENT_QUITPRE, NULL, NULL, FALSE, curbuf);
29 *** ../vim-7.3.543/src/fileio.c 2012-04-30 17:04:47.000000000 +0200
30 --- src/fileio.c 2012-06-06 17:32:12.000000000 +0200
34 {"MenuPopup", EVENT_MENUPOPUP},
35 {"QuickFixCmdPost", EVENT_QUICKFIXCMDPOST},
36 {"QuickFixCmdPre", EVENT_QUICKFIXCMDPRE},
37 + {"QuitPre", EVENT_QUITPRE},
38 {"RemoteReply", EVENT_REMOTEREPLY},
39 {"SessionLoadPost", EVENT_SESSIONLOADPOST},
40 {"ShellCmdPost", EVENT_SHELLCMDPOST},
41 *** ../vim-7.3.543/src/vim.h 2012-06-01 15:20:49.000000000 +0200
42 --- src/vim.h 2012-06-06 17:30:01.000000000 +0200
45 EVENT_INSERTENTER, /* when entering Insert mode */
46 EVENT_INSERTLEAVE, /* when leaving Insert mode */
47 EVENT_MENUPOPUP, /* just before popup menu is displayed */
48 ! EVENT_QUICKFIXCMDPOST, /* after :make, :grep etc */
49 ! EVENT_QUICKFIXCMDPRE, /* before :make, :grep etc */
50 EVENT_SESSIONLOADPOST, /* after loading a session file */
51 EVENT_STDINREADPOST, /* after reading from stdin */
52 EVENT_STDINREADPRE, /* before reading from stdin */
54 EVENT_INSERTENTER, /* when entering Insert mode */
55 EVENT_INSERTLEAVE, /* when leaving Insert mode */
56 EVENT_MENUPOPUP, /* just before popup menu is displayed */
57 ! EVENT_QUICKFIXCMDPOST, /* after :make, :grep etc. */
58 ! EVENT_QUICKFIXCMDPRE, /* before :make, :grep etc. */
59 ! EVENT_QUITPRE, /* before :quit */
60 EVENT_SESSIONLOADPOST, /* after loading a session file */
61 EVENT_STDINREADPOST, /* after reading from stdin */
62 EVENT_STDINREADPRE, /* before reading from stdin */
63 *** ../vim-7.3.543/src/version.c 2012-06-06 16:29:06.000000000 +0200
64 --- src/version.c 2012-06-06 18:02:09.000000000 +0200
68 { /* Add new patch number below this line */
74 How To Keep A Healthy Level Of Insanity:
75 3. Every time someone asks you to do something, ask if they want fries
78 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
79 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
80 \\\ an exciting new programming language -- http://www.Zimbu.org ///
81 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///