From 8d46c1184d5127a7c10f73707cfd21653954a14b Mon Sep 17 00:00:00 2001 From: Lucas Sta Maria Date: Thu, 25 Jan 2024 00:09:04 -0500 Subject: [PATCH] fix(emacs): add boundary handling for `grade-next` Signed-off-by: Lucas Sta Maria --- .emacs.d/include/misc.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.emacs.d/include/misc.el b/.emacs.d/include/misc.el index 84523fa..9263896 100644 --- a/.emacs.d/include/misc.el +++ b/.emacs.d/include/misc.el @@ -171,7 +171,9 @@ (target-number-str (format "%02d" target-number)) (target-filename (format "%s.rkt" target-number-str)) (target-filepath (concat target-directory target-filename))) - (find-file target-filepath))))) + (if (file-exists-p target-filepath) + (find-file target-filepath) + (message (format "next grading file doesn't exist!"))))))) (defun start-grading () "Start grading."