branch: externals/dape commit 6dbb406f22fff3af6bb95680e9e4401d43b5200a Author: yilin <yzhang0...@outlook.com> Commit: GitHub <nore...@github.com>
Skip checking breakpoint file when the file doesn't exist (#229) Copyright-paperwork-exempt: yes --- dape.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dape.el b/dape.el index 1e14be688f..bc93d65612 100644 --- a/dape.el +++ b/dape.el @@ -3267,10 +3267,11 @@ Will use `dape-default-breakpoints-file' if FILE is nil." into serialized finally do (prin1 serialized (current-buffer))) ;; Skip write if nothing has changed since last save - (unless (equal (buffer-string) + (unless (and (file-exists-p file) + (equal (buffer-string) (with-temp-buffer (insert-file-contents file) - (buffer-string))) + (buffer-string)))) (write-region (point-min) (point-max) file nil (unless (called-interactively-p 'interactive) 'quiet)))))