this post was submitted on 24 Nov 2023
1 points (100.0% liked)

Emacs

305 readers
1 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

I'm running into an issue where Emacs (Spacemacs if relevant) would complain about invalid UTF-8 characters in the temp file buffer that was generated when saving a file I was editing with EPA. Telling me to select a fallback coding system.

These default coding systems were tried to encode the following problematic characters in the buffer ‘ *temp file*’:

  Coding System           Pos  Codepoint  Char

  utf-8                     1  #x3FFF84   �  
...

I don't think this makes sense, obviously the encrypted file would have bad UTF-8 characters but why would Emacs complain about this? This file is an org-mode file that was encrypted with GPG. The warning pops up reliably a few seconds after I save, and sporadically when I'm editing. It is making it unusable because it pops up even after I select an option.

Any suggestion on where I could even begin to try fixing this?

top 4 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 9 months ago (1 children)

I also had this, git-gutter caused it. I switched to hl-diff, it doesn't have this problem.

[–] [email protected] 1 points 9 months ago (1 children)

Tried switching to hl-diff, still happens sadly

[–] [email protected] 1 points 9 months ago (1 children)

I think they meant diff-hl.

[–] [email protected] 1 points 9 months ago

I did typo my comment too but I think I set it to diff-hl correctly.

     '(version-control :variables
                       version-control-diff-tool 'diff-hl)