From edb3d9d85d0c26bc1dc9294b954fe6efb2c49111 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 29 Jul 2011 05:57:11 -0400 Subject: [PATCH] Fix broken help links. --HG-- extra : rebase_source : 0b00734b80c4e60932bfb07567961ffc02c94e53 --- common/locale/en-US/map.xml | 8 ++++---- common/modules/config.jsm | 1 + common/modules/prefs.jsm | 10 +++++----- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/common/locale/en-US/map.xml b/common/locale/en-US/map.xml index 69b64959..31f2af54 100644 --- a/common/locale/en-US/map.xml +++ b/common/locale/en-US/map.xml @@ -471,8 +471,8 @@

Abbreviate a key sequence for Command Line mode. Same as - :abbreviate, but for - Command Line mode only. + :abbreviate, but for &mode.command-line; mode + only.

@@ -506,8 +506,8 @@

Remove abbreviation(s) for Command Line mode. Same as - :unabbreviate, but for - Command Line mode only. + :unabbreviate, but for &mode.command-line; mode + only.

diff --git a/common/modules/config.jsm b/common/modules/config.jsm index 11dd9488..4da5a88d 100644 --- a/common/modules/config.jsm +++ b/common/modules/config.jsm @@ -217,6 +217,7 @@ var ConfigBase = Class("ConfigBase", { "tag.command-line": command line, "tag.status-line": status line, + "mode.command-line": Command Line, }, dtdStrings: [ diff --git a/common/modules/prefs.jsm b/common/modules/prefs.jsm index 3fcaf4be..c7b09eec 100644 --- a/common/modules/prefs.jsm +++ b/common/modules/prefs.jsm @@ -324,7 +324,7 @@ var Prefs = Module("prefs", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]) * * @see #withContext */ - pushContext: function () { + pushContext: function pushContext() { this._prefContexts.push({}); }, @@ -333,7 +333,7 @@ var Prefs = Module("prefs", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]) * * @see #withContext */ - popContext: function () { + popContext: function popContext() { for (let [k, v] in Iterator(this._prefContexts.pop())) this.set(k, v); }, @@ -348,7 +348,7 @@ var Prefs = Module("prefs", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]) * @see #pushContext * @see #popContext */ - withContext: function (func, self) { + withContext: function withContext(func, self) { try { this.pushContext(); return func.call(self); @@ -359,7 +359,7 @@ var Prefs = Module("prefs", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]) } }, { }, { - completion: function (dactyl, modules) { + completion: function init_completion(dactyl, modules) { modules.completion.preference = function preference(context) { context.anchored = false; context.title = [config.host + " Preference", "Value"]; @@ -367,7 +367,7 @@ var Prefs = Module("prefs", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]) context.completions = prefs.getNames(); }; }, - javascript: function (dactyl, modules) { + javascript: function init_javascript(dactyl, modules) { modules.JavaScript.setCompleter([this.get, this.safeSet, this.set, this.reset, this.toggle], [function (context) (context.anchored=false, this.getNames().map(function (pref) [pref, ""]))]); }