Document new behavior of "delete" LFUNs

- Describe the change in RELEASE-NOTES.
- Update the example for inset-forall.

This commit follows 71623b88.
This commit is contained in:
Scott Kostyshak 2017-04-06 00:34:51 -04:00
parent 4a255ec9db
commit 22c4a24a36
2 changed files with 11 additions and 5 deletions

View File

@ -70,6 +70,12 @@
"inset-forall Quotes inset-modify changetype g.s"
=> change all quote insets to German single quotes, keeping left/right setting
* word-delete-forward, word-delete-backward, char-delete-forward,
char-delete-backward
The pre-2.3 behavior of these functions is equivalent to the 2.3 behavior with
the "force" option appended. The new default behavior (without "force") is
to select big insets on the first call and delete them only on the second.
This new behavior is consistent with how delete works in LyX's math editor.
!!!The following LyX documents have been moved in 2.3:

View File

@ -1093,7 +1093,7 @@ void LyXAction::init()
* \var lyx::FuncCode lyx::LFUN_CHAR_DELETE_BACKWARD
* \li Action: Deletes one character in the backward direction (usually the "BackSpace" key).
* \li Syntax: char-delete-backward [force]
* \li Params: force: Delete big insets, do no only select them.
* \li Params: force: Delete big insets, do not only select them.
* \endvar
*/
{ LFUN_CHAR_DELETE_BACKWARD, "char-delete-backward", SingleParUpdate, Edit },
@ -1102,7 +1102,7 @@ void LyXAction::init()
* \var lyx::FuncCode lyx::LFUN_CHAR_DELETE_FORWARD
* \li Action: Deletes one character in the backward direction (usually the "Delete" key).
* \li Syntax: char-delete-forward [force]
* \li Params: force: Delete big insets, do no only select them.
* \li Params: force: Delete big insets, do not only select them.
* \endvar
*/
{ LFUN_CHAR_DELETE_FORWARD, "char-delete-forward", SingleParUpdate, Edit },
@ -2031,7 +2031,7 @@ void LyXAction::init()
matches all note insets, while "Note:Note" only matches LyX
yellow note insets.
* \li Sample: Remove all index insets: \n
inset-forall Index char-delete-forward \n
inset-forall Index char-delete-forward force \n
Close all Notes (also works for a particular branch, for example): \n
inset-forall Note inset-toggle close \n
Transform all yellow notes to comments \n
@ -4032,7 +4032,7 @@ void LyXAction::init()
* \var lyx::FuncCode lyx::LFUN_WORD_DELETE_BACKWARD
* \li Action: Deletes characters to the beginning of the word (usually the "C+BackSpace" key).
* \li Syntax: word-delete-backward [force]
* \li Params: force: Delete big insets, do no only select them.
* \li Params: force: Delete big insets, do not only select them.
* \endvar
*/
{ LFUN_WORD_DELETE_BACKWARD, "word-delete-backward", Noop, Edit },
@ -4041,7 +4041,7 @@ void LyXAction::init()
* \var lyx::FuncCode lyx::LFUN_WORD_DELETE_FORWARD
* \li Action: Deletes characters to the end of the word (usually the "C+Delete" key).
* \li Syntax: word-delete-forward [force]
* \li Params: force: Delete big insets, do no only select them.
* \li Params: force: Delete big insets, do not only select them.
* \endvar
*/
{ LFUN_WORD_DELETE_FORWARD, "word-delete-forward", Noop, Edit },