From 588c545f649c6c11a267e0ca1f6d723b830d10e0 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Mon, 10 Nov 2008 02:53:46 +0000 Subject: [PATCH] document :echomsg --- content/ui.js | 6 +++--- locale/en-US/eval.txt | 23 +++++++++++++++-------- locale/en-US/index.txt | 5 +++-- 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/content/ui.js b/content/ui.js index 07907bd9..e2b320c0 100644 --- a/content/ui.js +++ b/content/ui.js @@ -470,17 +470,17 @@ function CommandLine() //{{{ var echoCommands = [ { name: "ec[ho]", - description: "Display a string at the bottom of the window", + description: "Echo the expression", action: liberator.echo }, { name: "echoe[rr]", - description: "Display an error string at the bottom of the window", + description: "Echo the expression as an error message", action: liberator.echoerr }, { name: "echom[sg]", - description: "Display a message at the bottom of the window saving it in the message history", + description: "Echo the expression as an informational message", action: liberator.echomsg } ]; diff --git a/locale/en-US/eval.txt b/locale/en-US/eval.txt index 922f633a..0aa8c385 100644 --- a/locale/en-US/eval.txt +++ b/locale/en-US/eval.txt @@ -7,20 +7,27 @@ INTRO TO BE WRITTEN... |:ec| |:echo| + ||:ec[ho] {expr}|| ________________________________________________________________________________ -Display a string at the bottom of the window. Useful for showing informational -messages. Multiple lines can be separated by \n. -{expr} can either be a quoted string, or any expression which can be fed to -eval() like 4+5. You can also view the source code of objects and functions if -the return value of {expr} is an object or function. +Echo the expression. Useful for showing informational messages. Multiple lines +can be separated by \n. {expr} can either be a quoted string, or any +expression which can be fed to eval() like 4+5. You can also view the source +code of objects and functions if the return value of {expr} is an object or +function. ________________________________________________________________________________ |:echoe| |:echoerr| ||:echoe[rr] {expr}|| + ________________________________________________________________________________ -Display an error string at the bottom of the window. Just like [c]:ec[ho][c], -but echoes the result highlighted in red. Useful for showing important -messages. +Echo the expression as an error message. Just like [c]:ec[ho][c], but echoes +the result highlighted as ErrorMsg and saves it to the message history. +________________________________________________________________________________ + + +|:echoe| |:echomsg| +||:echom[sg] {expr}|| + +________________________________________________________________________________ +Echo the expression as an infomational message. Just like [c]:ec[ho][c], but +also saves the message in the the message history. ________________________________________________________________________________ diff --git a/locale/en-US/index.txt b/locale/en-US/index.txt index f407de06..ee151fa3 100644 --- a/locale/en-US/index.txt +++ b/locale/en-US/index.txt @@ -167,8 +167,9 @@ section:Ex{nbsp}commands[ex-cmd-index,:index] ||:doautoall|| Apply the autocommands matching the specified URL to all buffers + ||:doautocmd|| Apply the autocommands matching the specified URL to the current buffer + ||:downloads|| Show progress of current downloads + -||:echo|| Display a string at the bottom of the window + -||:echoerr|| Display an error string at the bottom of the window + +||:echo|| Echo the expression + +||:echoerr|| Echo the expression as an error message + +||:echomsg|| Echo the expression as an informational message + ||:emenu|| Execute the specified menu item from the command-line + ||:execute|| Execute the argument as an Ex command + ||:exusage|| List all Ex commands with a short description +