Questions tagged [saving]

55 questions
5
votes
1 answer

Fix 'changed on disk'/'Reread from disk' when file has not changed

Is there any way to get emacs to actually check the contents of files on disk when determining this? E.g. if I have some unsaved changes to a file, and temporarily switch source control branches (to make changes to other files), then switch back…
EoghanM
  • 205
  • 1
  • 4
2
votes
1 answer

Syncronize on save

Is there any extension or easy way to configure a feature like the Visual Code Studio's extension SSFTP? The ideal behaviour should be like the following one, by using ftp or sftp: Allow a manual request for sync remote -> local a full folder or…
ABu
  • 280
  • 1
  • 7
1
vote
0 answers

Is there an easy way to check (in elisp) if only one character has changed in a buffer before saving it?

I have a typing problem in Emacs under WSL. Sometimes it misses my typing ^x as in ^xp and ^xo (prev and next window in my bindings) and I get a stray p or o character in the buffer I want to leave (and I often don't notice it). But it I save all…
intel_chris
  • 329
  • 2
  • 12
1
vote
1 answer

Save current location in Emacs tutorial

I am learning Emacs by doing built-in tutorial (C-h t). However, when I decide to take a break and exit the editor (C-x C-c) and then later rerun the tutorial the position when I finished before is not saved. The tutorial starts over from the…
lukeg
  • 111
  • 1
0
votes
0 answers

How to change SIGTERM behavior?

I run emacs in konsole terminals in KDE. If I accidentally alt-F4 such a window, it dies with emacs and I lose unsaved data. I believe it is emacs responding to A SIGTERM sent by the Alt-F4, as opposed to konsole. Is there any way to change how…
0
votes
1 answer

Prevent emacs from saving previous versions of text files

I am editing a lot of text files in emacs and the automatic saving of previous versions is creating a massive amount of extraneous files. For example, if I edit a file called numbers.txt and save, then there will be a number.txt file as…