when i type on "shell":
c:\Users\TR\Desktop\emacs-27.2-x86_64\bin\GAMES\game3>love .
works fine but when i put
(defun insert-file-name ()
(interactive)
(let ((compilation-ask-about-save nil))
(compile (concat (file-name-directory (buffer-file-name)) "love ."))))
(global-set-key (kbd "C-c C-v") #'insert-file-name)
in my initialization file using "C-c C-v" gives me the error message:
-- mode: compilation; default-directory: "c:/Users/TR/Desktop/emacs-27.2-x86_64/bin/GAMES/game3/" -- Compilation started at Sun Apr 18 23:30:16 c:/Users/TR/Desktop/emacs-27.2-x86_64/bin/GAMES/game3/love . 'c:/Users/TR/Desktop/emacs-27.2-x86_64/bin/GAMES/game3/love' is not recognized as an internal or external command, operable program or batch file.
Compilation exited abnormally with code 1 at Sun Apr 18 23:30:16
a similar code worked on Ubuntu emacs, but on Windows 7 it does not work!
How can i solve this problem?
/
vs\
?