Previously, errors could be signalled when mark_active_predicate was
called.

For example "g LEFT" would result in the following error:

Console error: [JavaScript Warning: "reference to undefined property 
I.minibuffer.current_state.mark_active" {file: 
"chrome://conkeror/content/minibuffer.js" line: 48}]
---

I think the errors are only seen with xulrunner-1.9.1.

An alternative fix is to avoid bare references by using expressions
like:

    function (I) I.minibuffer.current_state.mark_active ? true : false,

for the mark_active_predicate function.
---
 modules/buffer.js     |    1 +
 modules/minibuffer.js |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/buffer.js b/modules/buffer.js
index ffad001..ce04ee1 100644
--- a/modules/buffer.js
+++ b/modules/buffer.js
@@ -157,6 +157,7 @@ buffer.prototype = {
     dead : false, /* This is set when the buffer is killed */
 
     keymaps: null,
+    mark_active: false,
 
     // The property focusblocker is available for an external module to
     // put a function on which takes a buffer as its argument and returns
diff --git a/modules/minibuffer.js b/modules/minibuffer.js
index dc6ce55..db05c41 100644
--- a/modules/minibuffer.js
+++ b/modules/minibuffer.js
@@ -108,6 +108,7 @@ function minibuffer_input_state (window, keymap, prompt, 
input, selection_start,
 }
 minibuffer_input_state.prototype = {
     __proto__: minibuffer_state.prototype,
+    mark_active : false,
     destroy: function (window) {
         window.input.end_recursion();
         minibuffer_state.prototype.destroy.call(this, window);
-- 
1.6.5

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

Reply via email to