diff --git a/common/content/commands.js b/common/content/commands.js index 2baa56f0..396d7b82 100644 --- a/common/content/commands.js +++ b/common/content/commands.js @@ -986,7 +986,7 @@ const Commands = Module("commands", { var completer = liberator.eval(completeOpt); if (!(completer instanceof Function)) - throw new TypeError("User-defined custom completer '" + completeOpt + "' is not a function"); + throw new TypeError("User-defined custom completer " + completeOpt.quote() + " is not a function"); } catch (e) { liberator.echo(":" + this.name + " ..."); diff --git a/common/content/events.js b/common/content/events.js index 955cf38f..cfab6641 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -80,7 +80,7 @@ const Events = Module("events", { if (dirs.length > 0) { for (let [, dir] in Iterator(dirs)) { - liberator.echomsg('Searching for "macros/*" in "' + dir.path + '"', 2); + liberator.echomsg('Searching for "macros/*" in ' + dir.path.quote(), 2); liberator.log("Sourcing macros directory: " + dir.path + "...", 3); for (let file in dir.iterDirectory()) { diff --git a/common/content/hints.js b/common/content/hints.js index 6ba8f37d..d9323da1 100644 --- a/common/content/hints.js +++ b/common/content/hints.js @@ -117,13 +117,13 @@ const Hints = Module("hints", { * @returns [text, showText] */ _getInputHint: function (elem, doc) { - // Always use the value - // Use the value if it is not numeric or label or name - // Never use the value, use label or name - //