e09d8f5
To: vim-dev@vim.org
e09d8f5
Subject: Patch 7.2.019
e09d8f5
Fcc: outbox
e09d8f5
From: Bram Moolenaar <Bram@moolenaar.net>
e09d8f5
Mime-Version: 1.0
e09d8f5
Content-Type: text/plain; charset=ISO-8859-1
e09d8f5
Content-Transfer-Encoding: 8bit
e09d8f5
------------
e09d8f5
e09d8f5
Patch 7.2.019
e09d8f5
Problem:    Completion of ":noautocmd" doesn't work and exists(":noautocmd")
e09d8f5
	    returns zero. (Ben Fritz)
e09d8f5
Solution:   Add "noautocmd" to the list of modifiers and commands.
e09d8f5
Files:	    src/ex_cmds.h, src/ex_docmd.c
e09d8f5
e09d8f5
e09d8f5
*** ../vim-7.2.018/src/ex_cmds.h	Wed Jun 25 00:44:40 2008
e09d8f5
--- src/ex_cmds.h	Sat Sep 13 18:37:25 2008
e09d8f5
***************
e09d8f5
*** 635,640 ****
e09d8f5
--- 635,642 ----
e09d8f5
  			RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
e09d8f5
  EX(CMD_noremap,		"noremap",	ex_map,
e09d8f5
  			BANG|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
e09d8f5
+ EX(CMD_noautocmd,	"noautocmd",	ex_wrongmodifier,
e09d8f5
+ 			NEEDARG|EXTRA|NOTRLCOM),
e09d8f5
  EX(CMD_nohlsearch,	"nohlsearch",	ex_nohlsearch,
e09d8f5
  			TRLBAR|SBOXOK|CMDWIN),
e09d8f5
  EX(CMD_noreabbrev,	"noreabbrev",	ex_abbreviate,
e09d8f5
*** ../vim-7.2.018/src/ex_docmd.c	Sat Jul 26 16:04:39 2008
e09d8f5
--- src/ex_docmd.c	Mon Sep 15 20:04:53 2008
e09d8f5
***************
e09d8f5
*** 2978,2983 ****
e09d8f5
--- 2979,2985 ----
e09d8f5
      {"keepmarks", 3, FALSE},
e09d8f5
      {"leftabove", 5, FALSE},
e09d8f5
      {"lockmarks", 3, FALSE},
e09d8f5
+     {"noautocmd", 3, FALSE},
e09d8f5
      {"rightbelow", 6, FALSE},
e09d8f5
      {"sandbox", 3, FALSE},
e09d8f5
      {"silent", 3, FALSE},
e09d8f5
*** ../vim-7.2.018/src/version.c	Sun Sep 14 21:40:26 2008
e09d8f5
--- src/version.c	Thu Sep 18 12:39:56 2008
e09d8f5
***************
e09d8f5
*** 678,679 ****
e09d8f5
--- 678,681 ----
e09d8f5
  {   /* Add new patch number below this line */
e09d8f5
+ /**/
e09d8f5
+     19,
e09d8f5
  /**/
e09d8f5
e09d8f5
-- 
e09d8f5
Proof techniques #2: Proof by Oddity.
e09d8f5
	SAMPLE: To prove that horses have an infinite number of legs.
e09d8f5
(1) Horses have an even number of legs.
e09d8f5
(2) They have two legs in back and fore legs in front.
e09d8f5
(3) This makes a total of six legs, which certainly is an odd number of
e09d8f5
    legs for a horse.
e09d8f5
(4) But the only number that is both odd and even is infinity.
e09d8f5
(5) Therefore, horses must have an infinite number of legs.
e09d8f5
e09d8f5
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
e09d8f5
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
e09d8f5
\\\        download, build and distribute -- http://www.A-A-P.org        ///
e09d8f5
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///