]> git.lyx.org Git - features.git/commitdiff
Document new behavior of "delete" LFUNs
authorScott Kostyshak <skostysh@lyx.org>
Thu, 6 Apr 2017 04:34:51 +0000 (00:34 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Thu, 6 Apr 2017 04:37:29 +0000 (00:37 -0400)
- Describe the change in RELEASE-NOTES.
- Update the example for inset-forall.

This commit follows 71623b88.

lib/RELEASE-NOTES
src/LyXAction.cpp

index 6ebd1c3a612659df2fbee72d9b74dcc30ff98895..757c0357bd784f2a61f6b6494e11f2652e6d275e 100644 (file)
   "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:
 
index 191d31b4c2668b4489758f69688aa5e385580dd3..5223d4a0d075cff269216328fab470dafde92932 100644 (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 },