Skip to content

Commit

Permalink
LuaFAR (generic plugin): "%FARPROFILE%\luafar_init.lua" is run by def…
Browse files Browse the repository at this point in the history
…ault
  • Loading branch information
shmuz committed Jan 29, 2025
1 parent ab23357 commit a54fdb0
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions enc/enc_lua/luafar_manual.tsi
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ lv=2
dt=Text
nm=luafar_init.lua
ctime=3639761849
mtime=3639831155
mtime=3947344487
<article>
#_<markdown>
#_
Expand All @@ -215,7 +215,7 @@ mtime=3639831155
#_It is **not** executed when the default script is reloaded due to `far.ReloadDefaultScript == true`.
#_
#_### Note
#_This feature is disabled by default. To enable it, add `-DRUN_LUAFAR_INIT` to compilation flags.
#_This feature is enabled by default. To disable it, add `-DNO_RUN_LUAFAR_INIT` to compilation flags.
#_
#_See also:<br>
#_[`LF_LuafarInit`](510.html)<br>
Expand Down
2 changes: 1 addition & 1 deletion plugins/luamacro/_globalinfo.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function export.GetGlobalInfo()
return {
Version = { 3, 0, 0, 865 },
Version = { 3, 0, 0, 866 },
MinFarVersion = { 3, 0, 0, 6422 },
Guid = win.Uuid("4EBBEFC8-2084-4B7F-94C0-692CE136894D"),
Title = "LuaMacro",
Expand Down
8 changes: 8 additions & 0 deletions plugins/luamacro/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
shmuel 2025-01-29 20:14:04+02:00 - build 866

1. LuaFAR (generic plugin): "%FARPROFILE%\luafar_init.lua" is run by default.
That can be prevented by defining a compilation flag -DNO_RUN_LUAFAR_INIT.

2. Plugin LuaMacro is built with this flag not defined.


MZK 2025-01-25 20:59:20-05:00 - build 865

1. gh-802: Macro API to report VMenu alignment state: Menu.HorizontalAlignment.
Expand Down
2 changes: 1 addition & 1 deletion plugins/luamacro/luafar/luaplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ __declspec(dllexport) int luaopen_luaplug(lua_State *L)
static void InitLuaState2(lua_State *L, TPluginData* PluginData)
{
LF_InitLuaState2(L, PluginData);
#ifdef RUN_LUAFAR_INIT
#ifndef NO_RUN_LUAFAR_INIT
LF_RunLuafarInit(L);
#endif
lua_pushcfunction(L, luaopen_luaplug);
Expand Down
2 changes: 1 addition & 1 deletion plugins/luamacro/luafar/version.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#include <farversion.hpp>

#define PLUGIN_BUILD 865
#define PLUGIN_BUILD 866
2 changes: 1 addition & 1 deletion plugins/luamacro/luamacro.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</ImportGroup>
<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions>EXPORT_OPEN;EXPORT_PROCESSEDITOREVENT;EXPORT_PROCESSEDITORINPUT;EXPORT_PROCESSCONSOLEINPUT;EXPORT_PROCESSVIEWEREVENT;EXPORT_PROCESSDIALOGEVENT;EXPORT_CONFIGURE;EXPORT_ANALYSE;EXPORT_CLOSEPANEL;EXPORT_COMPARE;EXPORT_DELETEFILES;EXPORT_GETFILES;EXPORT_GETFINDDATA;EXPORT_GETOPENPANELINFO;EXPORT_MAKEDIRECTORY;EXPORT_PROCESSHOSTFILE;EXPORT_PROCESSPANELEVENT;EXPORT_PROCESSPANELINPUT;EXPORT_PUTFILES;EXPORT_SETDIRECTORY;EXPORT_SETFINDLIST;EXPORT_GETCONTENTDATA;RUN_LUAFAR_INIT;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>EXPORT_OPEN;EXPORT_PROCESSEDITOREVENT;EXPORT_PROCESSEDITORINPUT;EXPORT_PROCESSCONSOLEINPUT;EXPORT_PROCESSVIEWEREVENT;EXPORT_PROCESSDIALOGEVENT;EXPORT_CONFIGURE;EXPORT_ANALYSE;EXPORT_CLOSEPANEL;EXPORT_COMPARE;EXPORT_DELETEFILES;EXPORT_GETFILES;EXPORT_GETFINDDATA;EXPORT_GETOPENPANELINFO;EXPORT_MAKEDIRECTORY;EXPORT_PROCESSHOSTFILE;EXPORT_PROCESSPANELEVENT;EXPORT_PROCESSPANELINPUT;EXPORT_PUTFILES;EXPORT_SETDIRECTORY;EXPORT_SETFINDLIST;EXPORT_GETCONTENTDATA;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>luasdk/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
Expand Down
1 change: 0 additions & 1 deletion plugins/luamacro/makefile_gcc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ USERC = \
-DEXPORT_SETDIRECTORY \
-DEXPORT_SETFINDLIST \
-DEXPORT_GETCONTENTDATA \
-DRUN_LUAFAR_INIT \

USERC += \
-Wno-cast-align \
Expand Down
3 changes: 1 addition & 2 deletions plugins/luamacro/makefile_vc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ USERCPP=/Iluasdk/include /DEXPORT_OPEN /DEXPORT_CONFIGURE \
/DEXPORT_ANALYSE /DEXPORT_CLOSEPANEL /DEXPORT_COMPARE /DEXPORT_DELETEFILES \
/DEXPORT_GETFILES /DEXPORT_GETFINDDATA /DEXPORT_GETOPENPANELINFO /DEXPORT_MAKEDIRECTORY \
/DEXPORT_PROCESSHOSTFILE /DEXPORT_PROCESSPANELEVENT /DEXPORT_PROCESSPANELINPUT \
/DEXPORT_PUTFILES /DEXPORT_SETDIRECTORY /DEXPORT_SETFINDLIST /DEXPORT_GETCONTENTDATA \
/DRUN_LUAFAR_INIT
/DEXPORT_PUTFILES /DEXPORT_SETDIRECTORY /DEXPORT_SETFINDLIST /DEXPORT_GETCONTENTDATA

LUALIB=$(INTDIR)\luafar3.lib

Expand Down

0 comments on commit a54fdb0

Please sign in to comment.