Closed riccardomurri closed 4 years ago
Unfortunately I cannot give steps for deterministically reproducing it. It happens frequenty on my setup, but I could not yet find out the exact conditions that trigger the bug.
Observed behaviour: :eyes: :broken_heart:
C-x C-s
saves content to auto-save file.
Expected behaviour: :heart: :smile:
C-x C-s
saves content to the file name that was originally opened.
(auto-completion ansible better-defaults c-c++ common-lisp emacs-lisp git github gtags html latex markdown mu4e pandoc python org shell-scripts spell-checking syntax-checking version-control yaml)
Screenshot shows the wrong filename (on line 1 of Emacs' buffer list).
I am having the same problem, and it seems intermittent. Happened twice today when I was frequently using 'SPC f s' (save-buffer), but I can not reproduce it. I have this in my .spacemacs file, defun dotspacemacs/init () (setq-default :
dotspacemacs-auto-save-file-location 'original
(c-c++ emacs-lisp evil-snipe ivy org shell spell-checking)
This issue is probably related to https://github.com/syl20bnr/spacemacs/issues/10348
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!
Description :octocat:
Auto save file name
#file#
replaces the "real" file name inC-x C-s
save operations. In other words, when I pressC-x C-s
the auto-save file is updated and the file that I had originally opened is not written to.In the buffer that shows this behavior, I can see this from Lisp code:
(buffer-file-name)
returns the "wrong" (i.e., auto-save) filenamebuffer-file-truename
returns the "right" (i.e., original) filenameI have this in my
.spacemacs.d/init.el
::