I am trying out few things on windows with emacs. In my case, I need to return the file path with backslash from elisp. But elisp always return the path with slash,etc.
(expand-file-name "text.log" "d:\\ProgramData\\temp")
=> d:/ProgramData/temp/text.log
My requirement:
(expand-file-name "text.log" "d:\\ProgramData\\temp")
=> d:\ProgramData\temp\text.log
It can be done with regexp, but I need more simple way.
Does convert-standard-filename
in (elisp) Standard File Names
fit your need?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With