[#39] Don't mess up temporary buffers

This commit is contained in:
Radon Rosborough 2021-03-28 15:25:15 -07:00
parent 87115f5cda
commit 64cb9e7d70
2 changed files with 5 additions and 2 deletions

View file

@ -6,9 +6,11 @@ The format is based on [Keep a Changelog].
## Unreleased ## Unreleased
### Bugs fixed ### Bugs fixed
* Fix spelling error in generated process names ([#32]). * Fix spelling error in generated process names ([#32]).
* Apheleia no longer conflicts with undo-fu (#[39]).
[#30]: https://github.com/raxod502/apheleia/issues/30 [#30]: https://github.com/raxod502/apheleia/issues/30
[#32]: https://github.com/raxod502/apheleia/pull/32 [#32]: https://github.com/raxod502/apheleia/pull/32
[#39]: https://github.com/raxod502/apheleia/issues/39
## 1.1.2 (released 2021-02-26) ## 1.1.2 (released 2021-02-26)
### Enhancements ### Enhancements

View file

@ -340,9 +340,10 @@ mark the buffer as visiting FILENAME."
(cl-letf* ((write-region (symbol-function #'write-region)) (cl-letf* ((write-region (symbol-function #'write-region))
((symbol-function #'write-region) ((symbol-function #'write-region)
(lambda (start end filename &optional (lambda (start end filename &optional
append _visit lockname mustbenew) append visit lockname mustbenew)
(apheleia--write-region-silently (apheleia--write-region-silently
start end filename append t lockname mustbenew write-region))) start end filename append visit
lockname mustbenew write-region)))
(message (symbol-function #'message)) (message (symbol-function #'message))
((symbol-function #'message) ((symbol-function #'message)
(lambda (format &rest args) (lambda (format &rest args)