Editor (F4) passes 8.3 filename

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
larsch
Junior Member
Junior Member
Posts: 5
Joined: 2005-04-05, 13:56 UTC

Editor (F4) passes 8.3 filename

Post by *larsch »

Hello,

Is there way to make TC pass full filenames instead of of 8.3 filenames to my edit command? This is somewhat annoying since my editor just accepts whatever name it given and displays that.

It only happens when I pass arguments to my editor: "emacsclientw -a runemacs -n". If I have just "emacsclientw" in the configuration option, I get long filenames.

Lars
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Add "%1" in command line, including the quotes.

Icfu
This account is for sale
larsch
Junior Member
Junior Member
Posts: 5
Joined: 2005-04-05, 13:56 UTC

Post by *larsch »

That works, thanks! 8)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It only happens when I pass arguments to my editor
If you do this, the function to check whether the program is 16- or 32-bit will fail, that's why TC falls back to 8.3 names. So when you use parameters, you must use the "%1" parameter for long names as described by icfu.
Author of Total Commander
https://www.ghisler.com
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Good evening, Christian.
ghisler(Author) wrote:
It only happens when I pass arguments to my editor
If you do this, the function to check whether the program is 16- or 32-bit will fail, that's why TC falls back to 8.3 names. So when you use parameters, you must use the "%1" parameter for long names as described by icfu.
At the time of writing this, Windows has started going from 32bit to 64bit, not from 16bit to 32bit (that was 10 years ago).

So either the function which tries to figure out whether the editor is still a pre-millenium model (16bit) needs to be corrected in such a way that it does its job properly.
Or if this is not feasible due to whichever limitations, then will it not be reasonable to assume that the editor is 32bit and pass long names to it?!

I.e. I suggest to revert the basic assumption. If you cannot identify it assume it is a 32bit application.

Regards,
Karl
larsch
Junior Member
Junior Member
Posts: 5
Joined: 2005-04-05, 13:56 UTC

Post by *larsch »

icfu wrote:Add "%1" in command line, including the quotes.

Icfu
This doesn't work when pressing Shift+F4 to create a new file. Then I still get 8.3 filenames :(
Post Reply