Skip to content

Commit c2ba802

Browse files
wyuenhovermiculus
authored andcommitted
Temporarily disable require-final-newline when writing cache
1 parent 6efe913 commit c2ba802

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

RelNotes/0.2.org

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33

44
#+LINK: PR https://www.github.com/vermiculus/magithub/pull/%s
55
#+LINK: BUG https://www.github.com/vermiculus/magithub/issues/%s
6+
7+
* Bug Fixes
8+
- ~magithub-cache-write-to-disk~ now will write to the disk without prompting
9+
when ~require-final-newline~ is set to t. [[PR:343]]

magithub-core.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,9 @@ The cache is written to `magithub-cache-file' in
237237
(when magithub-cache--needs-write
238238
(magithub-in-data-dir
239239
(with-temp-buffer
240-
(insert (prin1-to-string magithub-cache--cache))
241-
(write-file magithub-cache-file)))
240+
(let ((require-final-newline nil))
241+
(insert (prin1-to-string magithub-cache--cache))
242+
(write-file magithub-cache-file))))
242243
(setq magithub-cache--needs-write nil)
243244
(magithub-debug-message "wrote cache to disk: %S"
244245
(expand-file-name magithub-cache-file

0 commit comments

Comments
 (0)