[FarGroup/FarManager] master: LuaFAR: refactoring (b70a87641)

0 views
Skip to first unread message

farg...@farmanager.com

unread,
Apr 19, 2026, 3:45:52 PMApr 19
to farco...@googlegroups.com
Repository : https://github.com/FarGroup/FarManager
On branch : master
Link : https://github.com/FarGroup/FarManager/commit/b70a87641761ae1abc333443cb4e8b98be50d279

>---------------------------------------------------------------

commit b70a87641761ae1abc333443cb4e8b98be50d279
Author: Shmuel Zeigerman <solo...@gmail.com>
Date: Sun Apr 19 22:41:24 2026 +0300

LuaFAR: refactoring


>---------------------------------------------------------------

b70a87641761ae1abc333443cb4e8b98be50d279
enc/enc_lua/luafar_manual.tsi | 16 +++++-----
enc/tools/treespice/treespice_settings.ini | 48 ------------------------------
plugins/luamacro/_globalinfo.lua | 2 +-
plugins/luamacro/changelog | 4 +++
plugins/luamacro/luafar/lf_service.c | 4 +--
plugins/luamacro/luafar/lf_version.h | 2 +-
6 files changed, 16 insertions(+), 60 deletions(-)

diff --git a/enc/enc_lua/luafar_manual.tsi b/enc/enc_lua/luafar_manual.tsi
index 8a84fcb18..4d62b9360 100644
--- a/enc/enc_lua/luafar_manual.tsi
+++ b/enc/enc_lua/luafar_manual.tsi
@@ -10685,15 +10685,15 @@ article id=653 dt=Text ctime=3983596118 mtime=3983596118 nm=DM_SETHISTORY
#_{dm_sethistory}: $(ENC_URL)/dialogapi/dmsg/dm_sethistory.html
#_

-article id=654 dt=Text ctime=3983596118 mtime=3983598288 nm=DM_SETINPUTNOTIFY
+article id=654 dt=Text ctime=3983596118 mtime=3985799377 nm=DM_SETINPUTNOTIFY
#_Result = far.SendDlgMessage (hDlg, Msg, Param1, Param2)
#_ or
#_Result = hDlg:send (Msg, Param1, Param2)
#_
#_
#_DM_SETINPUTNOTIFY
-#_ Param1: integer (optional)
-#_ Param2: integer (optional)
+#_ Param1: boolean or integer (default = -1)
+#_ Param2: ignored
#_ Result: integer
#_
#_@@@
@@ -10748,15 +10748,15 @@ article id=657 dt=Text ctime=3983596118 mtime=3983596118 nm=DM_SETMAXTEXTLENGTH
#_{dm_setmaxtextlength}: $(ENC_URL)/dialogapi/dmsg/dm_setmaxtextlength.html
#_

-article id=658 dt=Text ctime=3983596118 mtime=3983598768 nm=DM_SETMOUSEEVENTNOTIFY
+article id=658 dt=Text ctime=3983596118 mtime=3985799507 nm=DM_SETMOUSEEVENTNOTIFY
#_Result = far.SendDlgMessage (hDlg, Msg, Param1, Param2)
#_ or
#_Result = hDlg:send (Msg, Param1, Param2)
#_
#_
#_DM_SETMOUSEEVENTNOTIFY
-#_ Param1: integer (optional)
-#_ Param2: integer (optional)
+#_ Param1: boolean or integer (default = -1)
+#_ Param2: ignored
#_ Result: integer
#_
#_@@@
@@ -10826,7 +10826,7 @@ article id=662 dt=Text ctime=3983596118 mtime=3983598850 nm=DM_SHOWDIALOG
#_{dm_showdialog}: $(ENC_URL)/dialogapi/dmsg/dm_showdialog.html
#_

-article id=663 dt=Text ctime=3983596118 mtime=3983596118 nm=DM_SHOWITEM
+article id=663 dt=Text ctime=3983596118 mtime=3985799307 nm=DM_SHOWITEM
#_Result = far.SendDlgMessage (hDlg, Msg, Param1, Param2)
#_ or
#_Result = hDlg:send (Msg, Param1, Param2)
@@ -10834,7 +10834,7 @@ article id=663 dt=Text ctime=3983596118 mtime=3983596118 nm=DM_SHOWITEM
#_
#_DM_SHOWITEM
#_ Param1: integer (ID of dialog item)
-#_ Param2: integer
+#_ Param2: boolean or integer (default = -1)
#_ Result: integer
#_
#_@@@
diff --git a/enc/tools/treespice/treespice_settings.ini b/enc/tools/treespice/treespice_settings.ini
deleted file mode 100644
index cce3d4f26..000000000
--- a/enc/tools/treespice/treespice_settings.ini
+++ /dev/null
@@ -1,48 +0,0 @@
-DefFont = {
- Name = "Courier New";
- Height = 0xFFFFFFF0;
- Bold = false;
- Italic = false;
- Underline = false;
- StrikeOut = false;
- Pitch = 0x0;
- Color = 0x80000008;
- Charset = 0xCC;
-}
-
-TreeFont = {
- Name = "Verdana";
- Height = 0xFFFFFFF1;
- Bold = false;
- Italic = false;
- Underline = false;
- StrikeOut = false;
- Pitch = 0x0;
- Color = 0x80000008;
- Charset = 0xCC;
-}
-
-Settings = {
- BkgrColor = 0x80000005;
- WordWrap = true;
- ForceRedraw = false;
- TreeColor = 0x80000005;
- TreeAutoExpand = false;
- TreeHotTrack = false;
- TreeShowLines = true;
- FavShowFullPath = false;
- Left = 0xD4;
- Top = 0x6B;
- Width = 0x4F7;
- Height = 0x323;
- WindowState = 0x0;
- TreeViewWidth = 0xDA;
-}
-
-Options = {
- RunScriptOnCreate = false;
- ScriptOnCreate = "";
- DefaultScriptDir = "";
- DefaultArticleType = "";
-}
-
diff --git a/plugins/luamacro/_globalinfo.lua b/plugins/luamacro/_globalinfo.lua
index 121ded884..52d463a69 100644
--- a/plugins/luamacro/_globalinfo.lua
+++ b/plugins/luamacro/_globalinfo.lua
@@ -1,6 +1,6 @@
function export.GetGlobalInfo()
return {
- Version = { 3, 0, 0, 921 },
+ Version = { 3, 0, 0, 922 },
MinFarVersion = { 3, 0, 0, 6678 },
Guid = win.Uuid("4EBBEFC8-2084-4B7F-94C0-692CE136894D"),
Title = "LuaMacro",
diff --git a/plugins/luamacro/changelog b/plugins/luamacro/changelog
index 7ee8f2c61..3f7242a64 100644
--- a/plugins/luamacro/changelog
+++ b/plugins/luamacro/changelog
@@ -1,3 +1,7 @@
+shmuel 2026-04-19 22:39:51+03:00 - build 922
+
+1. LuaFAR: refactoring.
+
MZK 2026-04-18 10:27:01-04:00 - build 921

1. gh-1006: Macro API to set menu item extended data: Menu.SetItemExtendedData.
diff --git a/plugins/luamacro/luafar/lf_service.c b/plugins/luamacro/luafar/lf_service.c
index 3bfdd1a43..f582b0ef8 100644
--- a/plugins/luamacro/luafar/lf_service.c
+++ b/plugins/luamacro/luafar/lf_service.c
@@ -3126,6 +3126,7 @@ static int DoSendDlgMessage (lua_State *L, intptr_t Msg, int delta)
break;

case DM_ENABLEREDRAW:
+ case DM_SETINPUTNOTIFY:
Param1 = GetEnableFromLua(L,pos3);
break;

@@ -3142,7 +3143,6 @@ static int DoSendDlgMessage (lua_State *L, intptr_t Msg, int delta)
case DM_MOVEDIALOG:
case DM_REDRAW:
case DM_RESIZEDIALOG:
- case DM_SETINPUTNOTIFY:
case DM_SHOWDIALOG:
case DM_USER:
// DN_*
@@ -3195,7 +3195,6 @@ static int DoSendDlgMessage (lua_State *L, intptr_t Msg, int delta)
case DM_SETMAXTEXTLENGTH: // alias: DM_SETTEXTLENGTH
case DM_SETINPUTNOTIFY:
case DM_SHOWDIALOG:
- case DM_SHOWITEM:
case DM_USER:
// DN_*
case DN_BTNCLICK:
@@ -3210,6 +3209,7 @@ static int DoSendDlgMessage (lua_State *L, intptr_t Msg, int delta)
break;

case DM_ENABLE:
+ case DM_SHOWITEM:
Param2 = (void*)GetEnableFromLua(L, pos4);
break;

diff --git a/plugins/luamacro/luafar/lf_version.h b/plugins/luamacro/luafar/lf_version.h
index 42d9e18a9..590f7d8c6 100644
--- a/plugins/luamacro/luafar/lf_version.h
+++ b/plugins/luamacro/luafar/lf_version.h
@@ -1,3 +1,3 @@
#include <farversion.hpp>

-#define PLUGIN_BUILD 921
+#define PLUGIN_BUILD 922


Reply all
Reply to author
Forward
0 new messages