diff --git a/NEWS b/NEWS index 60340eb5..f45b255e 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@
 2008-08-16:
     * version 2.0 (probably)
+    * add 'eventignore' option
     * add :tabdetach command
     * new ;b extended hint mode (thanks Daniel Schaffrath)
     * many bug fixes
diff --git a/content/events.js b/content/events.js
index 2b602a40..b270de95 100644
--- a/content/events.js
+++ b/content/events.js
@@ -46,6 +46,10 @@ liberator.AutoCommands = function () //{{{
     ////////////////////// OPTIONS /////////////////////////////////////////////////
     /////////////////////////////////////////////////////////////////////////////{{{
 
+    liberator.options.add(["eventignore", "ei"],
+        "List of autocommand event names which should be ignored",
+        "stringlist", "");
+
     liberator.options.add(["focuscontent", "fc"],
         "Try to stay in normal mode after loading a web page",
         "boolean", false);
@@ -220,6 +224,13 @@ liberator.AutoCommands = function () //{{{
 
         trigger: function (auEvent, url)
         {
+            if (liberator.options["eventignore"].split(",").some(function (event) {
+                    return event == "all" || event == auEvent;
+                }))
+            {
+                return;
+            }
+
             if (autoCommands[auEvent])
             {
                 for (var i = 0; i < autoCommands[auEvent].length; i++)
diff --git a/locale/en-US/options.txt b/locale/en-US/options.txt
index bbcaae98..ab799728 100644
--- a/locale/en-US/options.txt
+++ b/locale/en-US/options.txt
@@ -245,6 +245,14 @@ The XPath string of hintable elements activated by [m];[m].
 ____
 
 
+|\'ei'| |\'eventignore'|
+||'eventignore'|| stringlist (default: "")
+____
+A list of autocommand event names which should be ignored. If the list contains
+the value "all" then all events are ignored.
+____
+
+
 |\'nofc'| |\'nofocuscontent'| |\'fc'| |\'focuscontent'|
 ||'focuscontent' 'fc'|| boolean (default: off)
 ____
diff --git a/vimperator.vim b/vimperator.vim
index 14f73166..db05813a 100644
--- a/vimperator.vim
+++ b/vimperator.vim
@@ -1,7 +1,7 @@
 " Vim syntax file
 " Language:         VIMperator configuration file
 " Maintainer:       Doug Kearns 
-" Latest Revision:  2008 August 19
+" Last Change:      2008 Aug 28
 
 if exists("b:current_syntax")
   finish
@@ -40,13 +40,13 @@ syn match vimperatorCommandWrapper "\%(^\s*:\=\)\@<=\%(!\|\h\w*\>\)" contains=vi
 
 syn region vimperatorSet matchgroup=vimperatorCommand start="\%(^\s*:\=\)\@<=\" end="$" keepend oneline contains=vimperatorOption
 syn keyword vimperatorOption activate act activelinkfgcolor alfc activelinkbgcolor albc complete cpt defsearch ds editor
-    \ extendedhinttags eht focuscontent fc nofocuscontent nofc fullscreen fs nofullscreen nofs guioptions go hintmatching hm
-    \ hintstyle hs hinttags ht hinttimeout hto history hi hlsearch hls nohlsearch nohls hlsearchstyle hlss incsearch is
-    \ noincsearch nois ignorecase ic noignorecase noic insertmode im noinsertmode noim laststatus ls linkbgcolor lbc linkfgcolor
-    \ lfc linksearch lks nolinksearch nolks more newtab nextpattern nomore pageinfo pa popups pps preload nopreload previewheight
-    \ pvh previouspattern online noonline scroll scr shell sh shellcmdflag shcf showmode smd noshowmode nosmd showstatuslinks ssli
-    \ showtabline stal smartcase scs nosmartcase noscs suggestengines titlestring usermode um nousermode noum urlseparator verbose
-    \ vbs visualbell vb novisualbell novb visualbellstyle wildmode wim wildoptions wop wordseparators wsp
+    \ extendedhinttags eht eventignore ei focuscontent fc nofocuscontent nofc fullscreen fs nofullscreen nofs guioptions go
+    \ hintmatching hm hintstyle hs hinttags ht hinttimeout hto history hi hlsearch hls nohlsearch nohls hlsearchstyle hlss
+    \ incsearch is noincsearch nois ignorecase ic noignorecase noic insertmode im noinsertmode noim laststatus ls linkbgcolor lbc
+    \ linkfgcolor lfc linksearch lks nolinksearch nolks more newtab nextpattern nomore pageinfo pa popups pps preload nopreload
+    \ previewheight pvh previouspattern online noonline scroll scr shell sh shellcmdflag shcf showmode smd noshowmode nosmd
+    \ showstatuslinks ssli showtabline stal smartcase scs nosmartcase noscs suggestengines titlestring usermode um nousermode noum
+    \ urlseparator verbose vbs visualbell vb novisualbell novb visualbellstyle wildmode wim wildoptions wop wordseparators wsp
     \ contained
 
 syn region vimperatorJavascript start="\%(^\s*\%(javascript\|js\)\s\+\)\@<=" end="$" contains=@javascriptTop keepend oneline