Total Commander external editor emacs "permission denied" on editing files

1.4k Views Asked by At

I configured my Total Commander so I can open a file *.txt i.e. within emacs.

Therefore I setup my Editor D:\Tools\emacs\bin\emacsclientw.exe "%1"

When I now open my file everything is ok. But when I edit it and save it emacs tells me the following:

Saving file c:/log.txt...

basic-save-buffer-2: Opening output file: permission denied, c:/log.txt

How do I make it run so it can actually edit files?

1

There are 1 best solutions below

0
On

By Default you should not be saving anything to root C:\

It is just bad practice and by default a normal user does not have permission to it.

Instead, create a working DIR in your Documents folder and a log directory in that, then you will have something like:

C:\Users\Frank\Documents\Working\logs\log.txt

This should not create any permission errrors.