Solved [TC 10.50] Missing parameter for cm_commands in Help

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 14792
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Solved [TC 10.50] Missing parameter for cm_commands in Help

Post by *petermad »

history.txt wrote:21.09.16 Added: For the sorting commands like CM_SRCBYNAME, add parameter 4 to sort by additional columns, e.g. CM_SRCBYSIZE 5 adds sort by size, ascending (32/64)
This feature is not mentioned in the Help file (dlg_choosecommand.htm)
Last edited by petermad on 2022-08-17, 11:21 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
white
Power Member
Power Member
Posts: 4615
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 10.50] Missing parameter for cm_commands in Help

Post by *white »

Moreover, -1 seems to do the same as 6. And 1 and 2 are not described accurately. (1=sort ascending, 2=sort descending)
Help - Dialog box: Choose command wrote:CM_*BYNAME, CM_*BYEXT, CM_*BYSIZE, CM_*BYDATETIME, CM_*NEGORDER
0 or no parameter=toggle, 1=set, -1 or 2=reset
8: Store current sort order, sort direction and additional sort columns internally
9: Restore all sort order parameters stored with option 8
User avatar
petermad
Power Member
Power Member
Posts: 14792
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.50] Missing parameter for cm_commands in Help

Post by *petermad »

2white
-1 seems to do the same as 6
Confirmed - there is a bug there - it goes all the way back to TC 9.0 beta 15 where the feature was intruduced.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
white
Power Member
Power Member
Posts: 4615
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 10.50] Missing parameter for cm_commands in Help

Post by *white »

2petermad
HISTORY.TXT wrote: 20.09.16 Added: The following internal commands now accept parameters 0 (toggle, default), 1 (true), and 2 (false), except in main menu (* stands for LEFT, RIGHT, and SRC): CM_VERTICALPANELS,CM_*THUMBS,CM_*BYNAME,CM_*BYEXT,CM_*BYSIZE,CM_*BYDATETIME,CM_*NEGORDER (32/64)
I think parameter -1 was not added and the current behavior is a side effect and the bug is that the help says -1 is supported.
User avatar
petermad
Power Member
Power Member
Posts: 14792
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.50] Missing parameter for cm_commands in Help

Post by *petermad »

2white
I meant the feature of adding 4 - mentioned in my first post - was intruduced.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 14792
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.50] Missing parameter for cm_commands in Help

Post by *petermad »

Confirmed that:
4: When added, sort by additional columns, e.g. CM_SRCBYSIZE 5 adds sort by size, ascending
Is added to the Help in TC 10.51 rc1 :-)

BUT - the bug that CM_SRCBYSIZE -1 and CM_SRCBYSIZE 6 has the same effect still persists. CM_SRCBYSIZE -1 should have the same effct as CM_SRCBYSIZE 2 - according to the old Help (TC 10.50)

On the other hand -1 is no longer mentioned as a parameter for the CM_*BY* parameters in the Help for TC 10.51 - and -1 was never mentioned in history.txt for the CM_*BY* parameters.

But since -1 is still accepted as a parameter - i think it should do the same as 2 - to match parameters for commands like CM_*COMMENTS
CM_DIRBRANCH and CM_LEFTDIRBRANCH

And maybe using undocumented parameters like 3 (works as 0), and 7 (works like 6 and -1) and -2 (works as 6) - should result in an error message - or should all work as 0...
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48075
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10.50] Missing parameter for cm_commands in Help

Post by *ghisler(Author) »

On the other hand -1 is no longer mentioned as a parameter for the CM_*BY* parameters in the Help
Exactly. -1 interferes with the possibility to add values like 4 to the total parameter. Therefore it's no longer mentioned. What happens when you pass it to the command is not defined.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4615
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 10.50] Missing parameter for cm_commands in Help

Post by *white »

Help erroneously states that parameters 4,5,6 are supported for CM_*NEGORDER and that 1=ascending and 2=descending for these commands as well.

CM_*NEGORDER should be described separately:

0 or no parameter=toggle, 1=set, -1 or 2=reset.
8: Store current sort order, sort direction and additional sort columns internally
9: Restore all sort order parameters stored with option 8
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48075
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10.50] Missing parameter for cm_commands in Help

Post by *ghisler(Author) »

I agree.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14792
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.50] Missing parameter for cm_commands in Help

Post by *petermad »

2ghisler(Author)
What happens when you pass it to the command is not defined.
-1 works like 6
3 works like 0
7 works like -1 and 6
-2 works like 6
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 14792
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.50] Missing parameter for cm_commands in Help

Post by *petermad »

Help confirmed fixed in TC 10.51rc2:
Help wrote:CM_*BYNAME, CM_*BYEXT, CM_*BYSIZE, CM_*BYDATETIME
0 or no parameter=toggle, 1=ascending, 2=descending
4: When added, sort by additional columns, e.g. CM_SRCBYSIZE 5 adds sort by size, ascending
8: Store current sort order, sort direction and additional sort columns internally
9: Restore all sort order parameters stored with option 8

CM_*NEGORDER 0 or no parameter=toggle, 1=set, -1 or 2=reset
8: Store current sort order, sort direction and additional sort columns internally
9: Restore all sort order parameters stored with option 8

history.txt wrote:16.08.22 Fixed: Ignore commands CM_*BYNAME, CM*BYSIZE etc. when the parameter passed to it is negative (32/64)
Confirmed fixed in TC 10.51rc2 :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
white
Power Member
Power Member
Posts: 4615
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 10.50] Missing parameter for cm_commands in Help

Post by *white »

petermad wrote: 2022-08-17, 11:20 UTC Confirmed fixed in TC 10.51rc2 :-)
Confirmed.

Moderator message from: white » 2022-08-17, 15:40 UTC

Moved to Fixed bugs.
Post Reply