1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 09:27:58 +01:00

Use FORCE_SINGLELINE in a few more places

This commit is contained in:
Kris Maglione
2008-12-08 12:33:23 -05:00
parent ab730160bd
commit 29de1f0e8a
5 changed files with 11 additions and 12 deletions

View File

@@ -476,7 +476,7 @@ function Buffer() //{{{
var aps = options.getPref("print.always_print_silent");
var spp = options.getPref("print.show_print_progress");
liberator.echo("Sending to printer...");
liberator.echomsg("Sending to printer...");
options.setPref("print.always_print_silent", args.bang);
options.setPref("print.show_print_progress", !args.bang);
@@ -484,7 +484,7 @@ function Buffer() //{{{
options.setPref("print.always_print_silent", aps);
options.setPref("print.show_print_progress", spp);
liberator.echo("Print job sent.");
liberator.echomsg("Print job sent.");
},
{
argCount: "0",

View File

@@ -1036,7 +1036,7 @@ function Events() //{{{
break;
}
else
liberator.echo("Waiting for page to load...");
liberator.echomsg("Waiting for page to load...");
}
modes.show();
@@ -1236,7 +1236,7 @@ function Events() //{{{
{
modes.isRecording = false;
liberator.log("Recorded " + currentMacro + ": " + macros.get(currentMacro), 9);
liberator.echo("Recorded macro '" + currentMacro + "'");
liberator.echomsg("Recorded macro '" + currentMacro + "'");
event.preventDefault();
event.stopPropagation();
return true;
@@ -1259,7 +1259,7 @@ function Events() //{{{
if (key == "<C-c>" && !event.isMacro)
{
events.feedingKeys = false;
setTimeout(function () { liberator.echo("Canceled playback of macro '" + lastMacro + "'") }, 100);
setTimeout(function () { liberator.echomsg("Canceled playback of macro '" + lastMacro + "'") }, 100);
event.preventDefault();
event.stopPropagation();
return true;

View File

@@ -345,7 +345,7 @@ function Search() //{{{
found = fastFind.find(searchString, linksOnly) != Components.interfaces.nsITypeAheadFind.FIND_NOTFOUND;
if (!found)
setTimeout(function () { liberator.echoerr("E486: Pattern not found: " + searchPattern); }, 0);
setTimeout(function () liberator.echoerr("E486: Pattern not found: " + searchPattern, commandline.FORCE_SINGLELINE), 0);
return found;
},
@@ -364,7 +364,7 @@ function Search() //{{{
if (result == Components.interfaces.nsITypeAheadFind.FIND_NOTFOUND)
{
liberator.echoerr("E486: Pattern not found: " + lastSearchPattern);
liberator.echoerr("E486: Pattern not found: " + lastSearchPattern, commandline.FORCE_SINGLELINE);
}
else if (result == Components.interfaces.nsITypeAheadFind.FIND_WRAPPED)
{
@@ -373,10 +373,10 @@ function Search() //{{{
setTimeout(function () {
if (up)
commandline.echo("search hit TOP, continuing at BOTTOM",
commandline.HL_WARNINGMSG, commandline.APPEND_TO_MESSAGES);
commandline.HL_WARNINGMSG, commandline.APPEND_TO_MESSAGES | commandline.FORCE_SINGLELINE);
else
commandline.echo("search hit BOTTOM, continuing at TOP",
commandline.HL_WARNINGMSG, commandline.APPEND_TO_MESSAGES);
commandline.HL_WARNINGMSG, commandline.APPEND_TO_MESSAGES | commandline.FORCE_SINGLELINE);
}, 0);
}
else

View File

@@ -889,8 +889,7 @@ lookup:
// should be appended to and the MOW opened
liberator.echoerr("Error detected while processing " + file.path,
commandline.FORCE_MULTILINE);
commandline.echo("line " + lineNumber + ":", commandline.HL_LINENR,
commandline.APPEND_TO_MESSAGES);
commandline.echomsg("line " + lineNumber + ":", commandline.HL_LINENR);
liberator.echoerr("E492: Not an editor command: " + line);
}
else

View File

@@ -1712,7 +1712,7 @@ function StatusLine() //{{{
if (value == 0)
document.getElementById("status-bar").collapsed = true;
else if (value == 1)
liberator.echo("show status line only with > 1 window not implemented yet");
liberator.echoerr("show status line only with > 1 window not implemented yet");
else
document.getElementById("status-bar").collapsed = false;