From 7ae549a22225eb1dd099cd63726dc164109c92d7 Mon Sep 17 00:00:00 2001 From: Nicolas Petton Date: Sat, 13 Mar 2021 14:19:45 +0100 Subject: Fix #13 #10 * nroam.el (with-nroam-markers): Add an extra \n char in read-write so that text can be inserted at the end of the buffer. --- nroam.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nroam.el b/nroam.el index b0d9951..b5bb4ab 100644 --- a/nroam.el +++ b/nroam.el @@ -78,6 +78,10 @@ Make the region inserted by BODY read-only, and marked with ,@body (put-text-property beg (1+ beg) 'front-sticky '(read-only)) (put-text-property beg (point) 'read-only t) + ;; Add a non-read-only newline so that text can be inserted at the end of + ;; the buffer. + (let ((inhibit-read-only t)) + (insert "\n")) (set-marker nroam-end-marker (point)))) (defvar nroam-mode-map -- cgit v1.2.3-54-g00ecf