Let's say I create a file called foo.txt in emacs. The time is 12:00. It's currently empty.
At 12:10, I use emacs to add text to the file. I save it. The new timestamp given with getfileinfo
is
created: 06/11/2020 12:10:00
modified: 06/11/2020 12:10:00
Obviously this isn't correct, and the created time should be 12:00 and the modified time should be 12:10. How can this problem be solved? As mentioned in the title I'm using a mac, specifically Mojave version 10.14, and emacs version 26.3.
(setq backup-by-copying t)
in your .init.el or equivalent file. – James Gatz Jun 11 '20 at 11:32(setq make-backup-files nil)
. The official doc about this: (emacs) Backup Copying – xuchunyang Jun 11 '20 at 11:45