about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-09-08 12:32:32 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-09-08 12:32:32 +0000
commit7e5a7a91354825cb01cf1f3c26995bcf0c2c27a7 (patch)
treee941fcb24ce74dceb1d3c6517e44ffcef5f81721 /Doc
parent5ae3e384f52c9d9ef9aecb955deecf236d01bbd9 (diff)
downloadzsh-7e5a7a91354825cb01cf1f3c26995bcf0c2c27a7.tar.gz
zsh-7e5a7a91354825cb01cf1f3c26995bcf0c2c27a7.tar.xz
zsh-7e5a7a91354825cb01cf1f3c26995bcf0c2c27a7.zip
28237: new parameter ZLE_LINE_ABORTED
28241: don't list .safe with bindkey -lL
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/params.yo7
-rw-r--r--Doc/Zsh/zle.yo8
2 files changed, 13 insertions, 2 deletions
diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo
index b78896020..5d85f58e3 100644
--- a/Doc/Zsh/params.yo
+++ b/Doc/Zsh/params.yo
@@ -1448,6 +1448,13 @@ item(tt(ZDOTDIR))(
 The directory to search for shell startup files (.zshrc, etc),
 if not tt($HOME).
 )
+vindex(ZLE_LINE_ABORTED)
+item(tt(ZLE_LINE_ABORTED))(
+This parameter is set by the line editor when an error occurs.  It
+contains the line that was being edited at the point of the error.
+`tt(print -zr -- $ZLE_LINE_ABORTED)' can be used to recover the line.
+Only the most recent line of this kind is remembered.
+)
 vindex(ZLE_REMOVE_SUFFIX_CHARS)
 vindex(ZLE_SPACE_SUFFIX_CHARS)
 xitem(tt(ZLE_REMOVE_SUFFIX_CHARS))
diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo
index 37b8187c1..87933b93d 100644
--- a/Doc/Zsh/zle.yo
+++ b/Doc/Zsh/zle.yo
@@ -185,7 +185,10 @@ those keymaps.
 If the tt(-L) option is also used, list in the form of tt(bindkey)
 commands to create or link the keymaps.  `tt(bindkey -lL
 main)' shows which keymap is linked to `tt(main)', if any, and hence if
-the standard emacs or vi emulation is in effect.
+the standard emacs or vi emulation is in effect.  This option does
+not show the tt(.safe) keymap because it cannot be created in that
+fashion; however, neither is `tt(bindkey -lL .safe)' reported as an
+error, it simply outputs nothing.
 )
 item(tt(-d))(
 Delete all existing keymaps and reset to the default state.
@@ -2057,7 +2060,8 @@ tindex(send-break)
 item(tt(send-break) (^G ESC-^G) (unbound) (unbound))(
 Abort the current editor function, e.g. tt(execute-named-command), or the
 editor itself, e.g. if you are in tt(vared). Otherwise abort the parsing of
-the current line.
+the current line; in this case the aborted line is available in the shell
+variable tt(ZLE_LINE_ABORTED).
 )
 tindex(run-help)
 item(tt(run-help) (ESC-H ESC-h) (unbound) (unbound))(