Replaces the hints_information variable.
---
 contrib/config/common.js |    2 +-
 modules/hints.js         |   14 ++++++++------
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/contrib/config/common.js b/contrib/config/common.js
index ab5ee4b..a9fa987 100644
--- a/contrib/config/common.js
+++ b/contrib/config/common.js
@@ -20,7 +20,7 @@ hints_ambiguous_auto_exit_delay = 500;
 
 // display properties of the current selected node during
 // the hints interaction.
-hints_information = true;
+hints_minibuffer_annotation_mode(true);
 
 
 // default directory for downloads and shell commands.
diff --git a/modules/hints.js b/modules/hints.js
index 989f94f..02a41fd 100644
--- a/modules/hints.js
+++ b/modules/hints.js
@@ -461,11 +461,13 @@ hints_info.prototype = {
     }
 };
 
-define_variable("hints_information", false,
-    "When selecting a hint, the URL and other information can be "+
-    "displayed in the minibuffer.  This is useful for confirming that "+
-    "the correct link is selected and that the URL is not evil.  This "+
-    "option is most useful when hints_auto_exit_delay is long or disabled.");
+define_global_mode("hints_minibuffer_annotation_mode",
+    function enable () {
+        minibuffer_annotation_mode.register(hints_minibuffer_annotation_mode);
+    },
+    function disable () {
+        
minibuffer_annotation_mode.unregister(hints_minibuffer_annotation_mode);
+    })                   
 
 /**
  * keyword arguments:
@@ -479,7 +481,7 @@ function hints_minibuffer_state (minibuffer, continuation, 
buffer) {
     keywords(arguments, $keymap = hint_keymap, $auto);
     basic_minibuffer_state.call(this, minibuffer, $prompt = arguments.$prompt,
                                 $keymap = arguments.$keymap);
-    if (hints_information)
+    if (hints_minibuffer_annotation_mode_enabled)
        this.hints_info = new hints_info(this, buffer.window);
     this.original_prompt = arguments.$prompt;
     this.continuation = continuation;
-- 
1.7.9.1

_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to