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

Emacs

313 readers
3 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?

you are viewing a single comment's thread
view the rest of the comments
[–] geza42@alien.top 2 points 1 year ago (3 children)

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

[–] BlurbKey5b2e10fa@alien.top 1 points 1 year ago (1 children)

Tried switching to hl-diff, still happens sadly

[–] doolio_@alien.top 1 points 1 year ago (1 children)
[–] BlurbKey5b2e10fa@alien.top 1 points 1 year 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)
load more comments (1 replies)