Reputation:
I am using C-x C-s to save a change in a buffer to a file. I am getting the following in my minibuffer:
symbol's variable as value is void: “/home/alex/\.emacs_backups/”
I added .emacs_backups/
a couple of days ago and I altered my .emacs
file to:
;; create a backup file directory
(defun make-backup-file-name (file)
(concat “/home/alex/.emacs_backups/” (file-name-nondirectory file) “~”))
This does not happen in every directory. In some directories I can save a buffer change to a file no problem.
Upvotes: 1
Views: 305
Reputation: 781096
You have "smart quotes" in your .emacs
. Elisp uses ASCII doublequotes as string delimiters:
(defun make-backup-file-name (file)
(concat "/home/alex/.emacs_backups/" (file-name-nondirectory file) "~"))
I replaced “
and ”
with "
After you edit your .emacs
, you should evaluate this new function definition with C-x C-e, so that you'll be able to save it without getting an error.
Upvotes: 1