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 thread.
View all comments View context
1 point

Tried switching to hl-diff, still happens sadly

permalink
report
parent
reply
1 point

I think they meant diff-hl.

permalink
report
parent
reply
1 point

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)
permalink
report
parent
reply

Emacs

!emacs@communick.news

Create post

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

Get Emacs

  • Windows
  • Mac OS X
  • GNU/Linux and BSD (Just get it from your distribution’s package manager)

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

Community stats

  • 18

    Monthly active users

  • 562

    Posts

  • 2.4K

    Comments