diff options
| author | Radon Rosborough <radon.neon@gmail.com> | 2021-12-27 12:34:03 -0800 |
|---|---|---|
| committer | Radon Rosborough <radon.neon@gmail.com> | 2021-12-27 12:35:58 -0800 |
| commit | f0309b17bb8b8b1b8ef770ecfe2e253a21d31bc8 (patch) | |
| tree | f4557ae61f089972ba13d377c049de687e2b9ee6 | |
| parent | 2e9816513789c233acc79493523a7e1aa5b3eeb6 (diff) | |
[#60] Get coding-system from stdin conditionally
| -rw-r--r-- | CHANGELOG.md | 4 | ||||
| -rw-r--r-- | apheleia.el | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index d07eea6..b2f7ec4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,9 @@ The format is based on [Keep a Changelog]. ([#64], [#65]). Previously, when saving a number of files at the same time, the contents of those buffers could be corrupted by a race condition. +* In some circumstances the error `wrong-type-argument bufferp nil` + could be reported when running certain formatters under Apheleia. + This has been fixed. [#24]: https://github.com/raxod502/apheleia/pull/24 [#30]: https://github.com/raxod502/apheleia/issues/30 @@ -57,6 +60,7 @@ The format is based on [Keep a Changelog]. [#52]: https://github.com/raxod502/apheleia/issues/52 [#54]: https://github.com/raxod502/apheleia/pull/54 [#55]: https://github.com/raxod502/apheleia/issues/55 +[#60]: https://github.com/raxod502/apheleia/issues/60 [#62]: https://github.com/raxod502/apheleia/issues/62 [#64]: https://github.com/raxod502/apheleia/issues/64 [#65]: https://github.com/raxod502/apheleia/pull/65 diff --git a/apheleia.el b/apheleia.el index 6d46208..3d170d0 100644 --- a/apheleia.el +++ b/apheleia.el @@ -329,11 +329,11 @@ command succeeds provided that its exit status is 0." (kill-buffer stdout) (kill-buffer stderr))))))) (set-process-sentinel (get-buffer-process stderr) #'ignore) - (set-process-coding-system - apheleia--current-process - nil - (buffer-local-value 'buffer-file-coding-system stdin)) (when stdin + (set-process-coding-system + apheleia--current-process + nil + (buffer-local-value 'buffer-file-coding-system stdin)) (process-send-string apheleia--current-process (with-current-buffer stdin |
