]> git.lyx.org Git - features.git/commitdiff
Add prefs2prefs code for vcs info inset renaming
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 18 Aug 2018 14:11:08 +0000 (16:11 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 12:39:47 +0000 (14:39 +0200)
lib/RELEASE-NOTES
lib/scripts/prefs2prefs_lfuns.py
src/LyXAction.h

index 5dceaa1486e12c60d4e302ee71a2a53fd1c766e9..2a1157eea52467f34a978040802d34a1fc6e0b0c 100644 (file)
 
 !!!The following new LyX functions have been introduced in 2.4:
 
-LFUN_EXPORT_CANCEL: Used to cancel background export processes.
+* export-cancel: Used to cancel background export processes.
 
 
 !!!The following LyX functions have been changed in 2.4:
 
-- LFUN_SET_GRAPHICS_GROUP was renamed into LFUN_GRAPHICS_SET_GROUP.
+* set-graphics-group was renamed to graphics-set-group.
+
+* info-insert buffer vcs-*: renamed to info-insert vcs *
 
 
 
index ff55a61e8dfa2bdcb8f03fdd8102a7c66c769585..2ffb7f1d74ee67fdf3967cc72c8397cec99839ba 100644 (file)
@@ -196,6 +196,27 @@ def label_copy_as_reference(line):
 def remove_print_support(line):
        return simple_remove(line, "dialog-show print")
 
+
+def info_rename_vcsauthor(line):
+       return simple_renaming(line, "info-insert buffer vcs-author", "info-insert vcs author")
+
+
+def info_rename_vcsdate(line):
+       return simple_renaming(line, "info-insert buffer vcs-date", "info-insert vcs date")
+
+
+def info_rename_vcstime(line):
+       return simple_renaming(line, "info-insert buffer vcs-time", "info-insert vcs time")
+
+
+def info_rename_vcsrevision(line):
+       return simple_renaming(line, "info-insert buffer vcs-revision", "info-insert vcs revision")
+
+
+def info_rename_vcstreerevision(line):
+       return simple_renaming(line, "info-insert buffer vcs-tree-revision", "info-insert vcs tree-revision")
+
+
 #
 ###########################################################
 
@@ -226,5 +247,12 @@ conversions = [
        ]],
        [ 4, [ # list of conversions to format 4, LyX 2.2
                redo_tabular_feature
+       ]],
+       [ 5, [ # list of conversions to format 5, LyX 2.4
+               info_rename_vcsauthor,
+               info_rename_vcsdate,
+               info_rename_vcstime,
+               info_rename_vcsrevision,
+               info_rename_vcstreerevision
        ]]
 ]
index f61772c56c9239ebfc98f5712d4bfe1f05b8d7b6..30aeac03d7e7bae29c36309835748336432a4d01 100644 (file)
@@ -22,7 +22,7 @@
 namespace lyx {
 
 // current LFUN format
-static unsigned int const LFUN_FORMAT = 4; // gm: tabular-feature
+static unsigned int const LFUN_FORMAT = 5; // spitz: 2.4.x changes
 
 class FuncRequest;
 class LyXErr;